Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ExN04CalorimeterHit Class Reference

#include <Doxymodules_eventgenerator.h>

Inheritance diagram for ExN04CalorimeterHit:
G4VHit

Public Member Functions

 ExN04CalorimeterHit ()
 
 ExN04CalorimeterHit (G4LogicalVolume *logVol, G4int z, G4int phi)
 
 ExN04CalorimeterHit (const ExN04CalorimeterHit &right)
 
virtual ~ExN04CalorimeterHit ()
 
const ExN04CalorimeterHitoperator= (const ExN04CalorimeterHit &right)
 
G4bool operator== (const ExN04CalorimeterHit &right) const
 
void * operator 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 ()
 

Private Attributes

G4int fZCellID
 
G4int fPhiCellID
 
G4double fedep
 
G4ThreeVector fpos
 
G4RotationMatrix frot
 
const G4LogicalVolumefpLogV
 

Detailed Description

Definition at line 34 of file Doxymodules_eventgenerator.h.

Constructor & Destructor Documentation

◆ ExN04CalorimeterHit() [1/3]

ExN04CalorimeterHit::ExN04CalorimeterHit ( )

Definition at line 40 of file ExN04CalorimeterHit.cc.

41 : G4VHit(), fpLogV(NULL)
42{
43}
const G4LogicalVolume * fpLogV

◆ ExN04CalorimeterHit() [2/3]

ExN04CalorimeterHit::ExN04CalorimeterHit ( G4LogicalVolume logVol,
G4int  z,
G4int  phi 
)

Definition at line 46 of file ExN04CalorimeterHit.cc.

◆ ExN04CalorimeterHit() [3/3]

ExN04CalorimeterHit::ExN04CalorimeterHit ( const ExN04CalorimeterHit right)

Definition at line 53 of file ExN04CalorimeterHit.cc.

54 : G4VHit()
55{
56 fZCellID = right.fZCellID;
57 fPhiCellID = right.fPhiCellID;
58 fedep = right.fedep;
59 fpos = right.fpos;
60 frot = right.frot;
61 fpLogV = right.fpLogV;
62}

◆ ~ExN04CalorimeterHit()

ExN04CalorimeterHit::~ExN04CalorimeterHit ( )
virtual

Definition at line 65 of file ExN04CalorimeterHit.cc.

66{
67}

Member Function Documentation

◆ operator=()

const ExN04CalorimeterHit & ExN04CalorimeterHit::operator= ( const ExN04CalorimeterHit right)

Definition at line 70 of file ExN04CalorimeterHit.cc.

72{
73 fZCellID = right.fZCellID;
74 fPhiCellID = right.fPhiCellID;
75 fedep = right.fedep;
76 fpos = right.fpos;
77 frot = right.frot;
78 fpLogV = right.fpLogV;
79
80 return *this;
81}

◆ operator==()

G4bool ExN04CalorimeterHit::operator== ( const ExN04CalorimeterHit right) const

Definition at line 84 of file ExN04CalorimeterHit.cc.

85{
86 return ( (fZCellID == right.fZCellID) &&
87 (fPhiCellID == right.fPhiCellID) );
88}

◆ operator new()

void * ExN04CalorimeterHit::operator new ( size_t  )
inline

Definition at line 142 of file ExN04CalorimeterHit.hh.

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

◆ operator delete()

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

◆ Draw()

void ExN04CalorimeterHit::Draw ( )
virtual

Definition at line 91 of file ExN04CalorimeterHit.cc.

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

◆ Print()

void ExN04CalorimeterHit::Print ( )
virtual

Definition at line 109 of file ExN04CalorimeterHit.cc.

110{
111}

◆ SetCellID()

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

Definition at line 81 of file ExN04CalorimeterHit.hh.

82 {
83 fZCellID = z;
84 fPhiCellID = phi;
85}

◆ GetZ()

G4int ExN04CalorimeterHit::GetZ ( )
inline

Definition at line 87 of file ExN04CalorimeterHit.hh.

88{
89 return fZCellID;
90}

◆ GetPhi()

G4int ExN04CalorimeterHit::GetPhi ( )
inline

Definition at line 92 of file ExN04CalorimeterHit.hh.

93{
94 return fPhiCellID;
95}

◆ SetEdep()

void ExN04CalorimeterHit::SetEdep ( G4double  de)
inline

Definition at line 97 of file ExN04CalorimeterHit.hh.

98{
99 fedep = de;
100}

◆ AddEdep()

void ExN04CalorimeterHit::AddEdep ( G4double  de)
inline

Definition at line 102 of file ExN04CalorimeterHit.hh.

103{
104 fedep += de;
105}

◆ GetEdep()

G4double ExN04CalorimeterHit::GetEdep ( )
inline

Definition at line 107 of file ExN04CalorimeterHit.hh.

108{
109 return fedep;
110}

◆ SetPos()

void ExN04CalorimeterHit::SetPos ( G4ThreeVector  xyz)
inline

Definition at line 112 of file ExN04CalorimeterHit.hh.

113{
114 fpos = xyz;
115}

◆ GetPos()

G4ThreeVector ExN04CalorimeterHit::GetPos ( )
inline

Definition at line 117 of file ExN04CalorimeterHit.hh.

118{
119 return fpos;
120}

◆ SetRot()

void ExN04CalorimeterHit::SetRot ( G4RotationMatrix  rmat)
inline

Definition at line 122 of file ExN04CalorimeterHit.hh.

123{
124 frot = rmat;
125}

◆ GetRot()

G4RotationMatrix ExN04CalorimeterHit::GetRot ( )
inline

Definition at line 127 of file ExN04CalorimeterHit.hh.

128{
129 return frot;
130}

◆ GetLogV()

const G4LogicalVolume * ExN04CalorimeterHit::GetLogV ( )
inline

Definition at line 132 of file ExN04CalorimeterHit.hh.

133{
134 return fpLogV;
135}

Member Data Documentation

◆ fZCellID

G4int ExN04CalorimeterHit::fZCellID
private

Definition at line 72 of file ExN04CalorimeterHit.hh.

◆ fPhiCellID

G4int ExN04CalorimeterHit::fPhiCellID
private

Definition at line 73 of file ExN04CalorimeterHit.hh.

◆ fedep

G4double ExN04CalorimeterHit::fedep
private

Definition at line 74 of file ExN04CalorimeterHit.hh.

◆ fpos

G4ThreeVector ExN04CalorimeterHit::fpos
private

Definition at line 75 of file ExN04CalorimeterHit.hh.

◆ frot

G4RotationMatrix ExN04CalorimeterHit::frot
private

Definition at line 76 of file ExN04CalorimeterHit.hh.

◆ fpLogV

const G4LogicalVolume* ExN04CalorimeterHit::fpLogV
private

Definition at line 77 of file ExN04CalorimeterHit.hh.


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

Applications | User Support | Publications | Collaboration