Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
ExN04CalorimeterHit Class Reference

#include <ExN04CalorimeterHit.hh>

Inheritance diagram for ExN04CalorimeterHit:
G4VHit G4VHit ShadowedMarshaledExN04CalorimeterHit

Public Member Functions

 ExN04CalorimeterHit ()
 
 ExN04CalorimeterHit (G4LogicalVolume *logVol, G4int z, G4int phi)
 
 ExN04CalorimeterHit (const ExN04CalorimeterHit &right)
 
virtual ~ExN04CalorimeterHit ()
 
const ExN04CalorimeterHitoperator= (const ExN04CalorimeterHit &right)
 
G4int operator== (const ExN04CalorimeterHit &right) const
 
voidoperator new (size_t)
 
void operator delete (void *aHit)
 
virtual void Draw ()
 
virtual void Print ()
 
void SetCellID (G4int z, G4int phi)
 
G4int GetZ ()
 
G4int GetPhi ()
 
void SetEdep (G4double de)
 
void AddEdep (G4double de)
 
G4double GetEdep ()
 
void SetPos (G4ThreeVector xyz)
 
G4ThreeVector GetPos ()
 
void SetRot (G4RotationMatrix rmat)
 
G4RotationMatrix GetRot ()
 
const G4LogicalVolumeGetLogV ()
 
 ExN04CalorimeterHit ()
 
 ExN04CalorimeterHit (G4LogicalVolume *logVol, G4int z, G4int phi)
 
 ~ExN04CalorimeterHit ()
 
 ExN04CalorimeterHit (const ExN04CalorimeterHit &right)
 
const ExN04CalorimeterHitoperator= (const ExN04CalorimeterHit &right)
 
G4int operator== (const ExN04CalorimeterHit &right) const
 
voidoperator new (size_t)
 
void operator delete (void *aHit)
 
void Draw ()
 
void Print ()
 
void SetCellID (G4int z, G4int phi)
 
G4int GetZ ()
 
G4int GetPhi ()
 
void SetEdep (G4double de)
 
void AddEdep (G4double de)
 
G4double GetEdep ()
 
void SetPos (G4ThreeVector xyz)
 
G4ThreeVector GetPos ()
 
void SetRot (G4RotationMatrix rmat)
 
G4RotationMatrix GetRot ()
 
const G4LogicalVolumeGetLogV ()
 
- Public Member Functions inherited from G4VHit
 G4VHit ()
 
virtual ~G4VHit ()
 
G4int operator== (const G4VHit &right) const
 
virtual const std::map
< G4String, G4AttDef > * 
GetAttDefs () const
 
virtual std::vector< G4AttValue > * CreateAttValues () const
 

Detailed Description

Definition at line 43 of file eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh.

Constructor & Destructor Documentation

ExN04CalorimeterHit::ExN04CalorimeterHit ( )

Definition at line 41 of file eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc.

42  : fpLogV(NULL)
43 {
44 }
ExN04CalorimeterHit::ExN04CalorimeterHit ( G4LogicalVolume logVol,
G4int  z,
G4int  phi 
)

Definition at line 47 of file eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc.

49  : fZCellID(z), fPhiCellID(phi), fpLogV(logVol)
50 {
51 }
G4double z
Definition: TRTMaterials.hh:39
ExN04CalorimeterHit::ExN04CalorimeterHit ( const ExN04CalorimeterHit right)

Definition at line 54 of file eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc.

55  : G4VHit()
56 {
57  fZCellID = right.fZCellID;
58  fPhiCellID = right.fPhiCellID;
59  fedep = right.fedep;
60  fpos = right.fpos;
61  frot = right.frot;
62  fpLogV = right.fpLogV;
63 }
G4VHit()
Definition: G4VHit.cc:34
ExN04CalorimeterHit::~ExN04CalorimeterHit ( )
virtual

Definition at line 66 of file eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc.

67 {
68 }
ExN04CalorimeterHit::ExN04CalorimeterHit ( )
ExN04CalorimeterHit::ExN04CalorimeterHit ( G4LogicalVolume logVol,
G4int  z,
G4int  phi 
)
ExN04CalorimeterHit::~ExN04CalorimeterHit ( )
ExN04CalorimeterHit::ExN04CalorimeterHit ( const ExN04CalorimeterHit right)

Member Function Documentation

void ExN04CalorimeterHit::AddEdep ( G4double  de)
inline

Definition at line 103 of file eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh.

104 {
105  fedep += de;
106 }
void ExN04CalorimeterHit::AddEdep ( G4double  de)
inline

Definition at line 102 of file parallel/TopC/ParN04/include/ExN04CalorimeterHit.hh.

103  { edep += de; }
void ExN04CalorimeterHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 92 of file eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc.

References G4VVisManager::GetConcreteInstance(), G4VisAttributes::SetColour(), G4VisAttributes::SetForceSolid(), and G4VisAttributes::SetForceWireframe().

93 {
95 
96  if(pVVisManager) {
97  G4Transform3D trans(frot, fpos);
98  G4VisAttributes attribs;
99  const G4VisAttributes* pVA = fpLogV-> GetVisAttributes();
100  if ( pVA ) attribs = *pVA;
101  G4Colour colour(1., 0., 0.);
102  attribs.SetColour(colour);
103  attribs.SetForceWireframe(false);
104  attribs.SetForceSolid(true);
105  pVVisManager-> Draw(*fpLogV, attribs, trans);
106  }
107 }
void SetColour(const G4Colour &)
void SetForceWireframe(G4bool)
static G4VVisManager * GetConcreteInstance()
void SetForceSolid(G4bool)
void ExN04CalorimeterHit::Draw ( )
virtual

Reimplemented from G4VHit.

G4double ExN04CalorimeterHit::GetEdep ( )
inline

Definition at line 108 of file eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh.

Referenced by MarshaledExN04CalorimeterHit::marshal3().

109 {
110  return fedep;
111 }
G4double ExN04CalorimeterHit::GetEdep ( )
inline

Definition at line 104 of file parallel/TopC/ParN04/include/ExN04CalorimeterHit.hh.

105  { return edep; }
const G4LogicalVolume * ExN04CalorimeterHit::GetLogV ( )
inline

Definition at line 133 of file eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh.

134 {
135  return fpLogV;
136 }
const G4LogicalVolume* ExN04CalorimeterHit::GetLogV ( )
inline

Definition at line 114 of file parallel/TopC/ParN04/include/ExN04CalorimeterHit.hh.

115  { return pLogV; }
G4int ExN04CalorimeterHit::GetPhi ( )
inline
G4int ExN04CalorimeterHit::GetPhi ( )
inline

Definition at line 99 of file parallel/TopC/ParN04/include/ExN04CalorimeterHit.hh.

99 { return PhiCellID; }
G4ThreeVector ExN04CalorimeterHit::GetPos ( )
inline

Definition at line 118 of file eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh.

Referenced by MarshaledExN04CalorimeterHit::marshal4().

119 {
120  return fpos;
121 }
G4ThreeVector ExN04CalorimeterHit::GetPos ( )
inline

Definition at line 108 of file parallel/TopC/ParN04/include/ExN04CalorimeterHit.hh.

109  { return pos; }
G4RotationMatrix ExN04CalorimeterHit::GetRot ( )
inline

Definition at line 128 of file eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh.

129 {
130  return frot;
131 }
G4RotationMatrix ExN04CalorimeterHit::GetRot ( )
inline

Definition at line 112 of file parallel/TopC/ParN04/include/ExN04CalorimeterHit.hh.

113  { return rot; }
G4int ExN04CalorimeterHit::GetZ ( )
inline
G4int ExN04CalorimeterHit::GetZ ( )
inline

Definition at line 98 of file parallel/TopC/ParN04/include/ExN04CalorimeterHit.hh.

98 { return ZCellID; }
void ExN04CalorimeterHit::operator delete ( void aHit)
inline
void ExN04CalorimeterHit::operator delete ( void aHit)
inline
void * ExN04CalorimeterHit::operator new ( size_t  )
inline

Definition at line 143 of file eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh.

References G4Allocator< Type >::MallocSingle().

144 {
145  void* aHit;
146  aHit = (void*) ExN04CalorimeterHitAllocator.MallocSingle();
147  return aHit;
148 }
G4Allocator< ExN04CalorimeterHit > ExN04CalorimeterHitAllocator
void* ExN04CalorimeterHit::operator new ( size_t  )
inline
const ExN04CalorimeterHit & ExN04CalorimeterHit::operator= ( const ExN04CalorimeterHit right)

Definition at line 72 of file eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc.

References right.

73 {
74  fZCellID = right.fZCellID;
75  fPhiCellID = right.fPhiCellID;
76  fedep = right.fedep;
77  fpos = right.fpos;
78  frot = right.frot;
79  fpLogV = right.fpLogV;
80 
81  return *this;
82 }
const ExN04CalorimeterHit& ExN04CalorimeterHit::operator= ( const ExN04CalorimeterHit right)
G4int ExN04CalorimeterHit::operator== ( const ExN04CalorimeterHit right) const

Definition at line 85 of file eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc.

86 {
87  return ( (fZCellID == right.fZCellID) &&
88  (fPhiCellID == right.fPhiCellID) );
89 }
G4int ExN04CalorimeterHit::operator== ( const ExN04CalorimeterHit right) const
void ExN04CalorimeterHit::Print ( void  )
virtual

Reimplemented from G4VHit.

Definition at line 110 of file eventgenerator/HepMC/HepMCEx01/src/ExN04CalorimeterHit.cc.

111 {
112 }
void ExN04CalorimeterHit::Print ( )
virtual

Reimplemented from G4VHit.

void ExN04CalorimeterHit::SetCellID ( G4int  z,
G4int  phi 
)
inline

Definition at line 82 of file eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh.

References z.

Referenced by MarshaledExN04CalorimeterHit::unmarshal1(), and MarshaledExN04CalorimeterHit::unmarshal2().

83  {
84  fZCellID = z;
85  fPhiCellID = phi;
86 }
G4double z
Definition: TRTMaterials.hh:39
void ExN04CalorimeterHit::SetCellID ( G4int  z,
G4int  phi 
)
inline

Definition at line 93 of file parallel/TopC/ParN04/include/ExN04CalorimeterHit.hh.

References z.

94  {
95  ZCellID = z;
96  PhiCellID = phi;
97  }
G4double z
Definition: TRTMaterials.hh:39
void ExN04CalorimeterHit::SetEdep ( G4double  de)
inline

Definition at line 98 of file eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh.

Referenced by MarshaledExN04CalorimeterHit::unmarshal3().

99 {
100  fedep = de;
101 }
void ExN04CalorimeterHit::SetEdep ( G4double  de)
inline

Definition at line 100 of file parallel/TopC/ParN04/include/ExN04CalorimeterHit.hh.

101  { edep = de; }
void ExN04CalorimeterHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 113 of file eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh.

Referenced by MarshaledExN04CalorimeterHit::unmarshal4().

114 {
115  fpos = xyz;
116 }
void ExN04CalorimeterHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 106 of file parallel/TopC/ParN04/include/ExN04CalorimeterHit.hh.

107  { pos = xyz; }
void ExN04CalorimeterHit::SetRot ( G4RotationMatrix  rmat)
inline

Definition at line 123 of file eventgenerator/HepMC/HepMCEx01/include/ExN04CalorimeterHit.hh.

124 {
125  frot = rmat;
126 }
void ExN04CalorimeterHit::SetRot ( G4RotationMatrix  rmat)
inline

Definition at line 110 of file parallel/TopC/ParN04/include/ExN04CalorimeterHit.hh.

111  { rot = rmat; }

The documentation for this class was generated from the following files: