Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExN04CalorimeterHit Class Reference

#include <ExN04CalorimeterHit.hh>

Inheritance diagram for ExN04CalorimeterHit:
Collaboration diagram for ExN04CalorimeterHit:

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 ExN04CalorimeterHit.hh.

Constructor & Destructor Documentation

ExN04CalorimeterHit::ExN04CalorimeterHit ( )

Definition at line 41 of file ExN04CalorimeterHit.cc.

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

Definition at line 47 of file ExN04CalorimeterHit.cc.

49  : fZCellID(z), fPhiCellID(phi), fpLogV(logVol)
50 {
51 }
tuple z
Definition: test.py:28
ExN04CalorimeterHit::ExN04CalorimeterHit ( const ExN04CalorimeterHit right)

Definition at line 54 of file 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 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 ExN04CalorimeterHit.hh.

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

Definition at line 102 of file ExN04CalorimeterHit.hh.

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

Reimplemented from G4VHit.

Definition at line 92 of file ExN04CalorimeterHit.cc.

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 &)
static G4VVisManager * GetConcreteInstance()
void SetForceSolid(G4bool=true)
void SetForceWireframe(G4bool=true)

Here is the call graph for this function:

void ExN04CalorimeterHit::Draw ( )
virtual

Reimplemented from G4VHit.

G4double ExN04CalorimeterHit::GetEdep ( )
inline

Definition at line 108 of file ExN04CalorimeterHit.hh.

109 {
110  return fedep;
111 }

Here is the caller graph for this function:

G4double ExN04CalorimeterHit::GetEdep ( )
inline

Definition at line 104 of file ExN04CalorimeterHit.hh.

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

Definition at line 133 of file ExN04CalorimeterHit.hh.

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

Definition at line 114 of file ExN04CalorimeterHit.hh.

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

Definition at line 93 of file ExN04CalorimeterHit.hh.

94 {
95  return fPhiCellID;
96 }

Here is the caller graph for this function:

G4int ExN04CalorimeterHit::GetPhi ( )
inline

Definition at line 99 of file ExN04CalorimeterHit.hh.

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

Definition at line 118 of file ExN04CalorimeterHit.hh.

119 {
120  return fpos;
121 }

Here is the caller graph for this function:

G4ThreeVector ExN04CalorimeterHit::GetPos ( )
inline

Definition at line 108 of file ExN04CalorimeterHit.hh.

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

Definition at line 128 of file ExN04CalorimeterHit.hh.

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

Definition at line 112 of file ExN04CalorimeterHit.hh.

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

Definition at line 88 of file ExN04CalorimeterHit.hh.

89 {
90  return fZCellID;
91 }

Here is the caller graph for this function:

G4int ExN04CalorimeterHit::GetZ ( )
inline

Definition at line 98 of file ExN04CalorimeterHit.hh.

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

Definition at line 150 of file ExN04CalorimeterHit.hh.

151 {
153 }
G4Allocator< ExN04CalorimeterHit > ExN04CalorimeterHitAllocator

Here is the call graph for this function:

void ExN04CalorimeterHit::operator delete ( void aHit)
inline
void * ExN04CalorimeterHit::operator new ( size_t  )
inline

Definition at line 143 of file ExN04CalorimeterHit.hh.

144 {
145  void* aHit;
146  aHit = (void*) ExN04CalorimeterHitAllocator.MallocSingle();
147  return aHit;
148 }
G4Allocator< ExN04CalorimeterHit > ExN04CalorimeterHitAllocator

Here is the call graph for this function:

void* ExN04CalorimeterHit::operator new ( size_t  )
inline
const ExN04CalorimeterHit & ExN04CalorimeterHit::operator= ( const ExN04CalorimeterHit right)

Definition at line 72 of file ExN04CalorimeterHit.cc.

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 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 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 ExN04CalorimeterHit.hh.

83  {
84  fZCellID = z;
85  fPhiCellID = phi;
86 }
tuple z
Definition: test.py:28

Here is the caller graph for this function:

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

Definition at line 93 of file ExN04CalorimeterHit.hh.

94  {
95  ZCellID = z;
96  PhiCellID = phi;
97  }
tuple z
Definition: test.py:28
void ExN04CalorimeterHit::SetEdep ( G4double  de)
inline

Definition at line 98 of file ExN04CalorimeterHit.hh.

99 {
100  fedep = de;
101 }

Here is the caller graph for this function:

void ExN04CalorimeterHit::SetEdep ( G4double  de)
inline

Definition at line 100 of file ExN04CalorimeterHit.hh.

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

Definition at line 113 of file ExN04CalorimeterHit.hh.

114 {
115  fpos = xyz;
116 }

Here is the caller graph for this function:

void ExN04CalorimeterHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 106 of file ExN04CalorimeterHit.hh.

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

Definition at line 123 of file ExN04CalorimeterHit.hh.

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

Definition at line 110 of file ExN04CalorimeterHit.hh.

111  { rot = rmat; }

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