#include <BesTofHit.hh>
Public Member Functions | |
void | AddEdep (G4double de) |
void | AddEdep (G4double de) |
void | AddHit (const BesTofHit &) |
void | AddHit (const BesTofHit &) |
BesTofHit (const BesTofHit &) | |
BesTofHit () | |
BesTofHit (const BesTofHit &) | |
BesTofHit () | |
virtual void | Draw () |
virtual void | Draw () |
G4double | GetCharge () |
G4double | GetCharge () |
G4double | GetDeltaT () |
G4double | GetDeltaT () |
G4double | GetEdep () |
G4double | GetEdep () |
G4int | GetG4Index () |
G4int | GetG4Index () |
G4ThreeVector | GetMomentum () |
G4ThreeVector | GetMomentum () |
G4int | GetPartId () |
G4int | GetPartId () |
G4ThreeVector | GetPDirection () |
G4ThreeVector | GetPDirection () |
G4ThreeVector | GetPos () |
G4ThreeVector | GetPos () |
G4int | GetScinNb () |
G4int | GetScinNb () |
G4double | GetStepL () |
G4double | GetStepL () |
G4double | GetTime () |
G4double | GetTime () |
G4int | GetTrackIndex () |
G4int | GetTrackIndex () |
G4double | GetTrackL () |
G4double | GetTrackL () |
void | operator delete (void *) |
void | operator delete (void *) |
void * | operator new (size_t) |
void * | operator new (size_t) |
const BesTofHit & | operator= (const BesTofHit &) |
const BesTofHit & | operator= (const BesTofHit &) |
virtual G4int | operator== (const BesTofHit &) const |
virtual G4int | operator== (const BesTofHit &) const |
virtual void | Print () |
virtual void | Print () |
void | SetCharge (G4double charge) |
void | SetCharge (G4double charge) |
void | SetDeltaT (G4double deltaT) |
void | SetDeltaT (G4double deltaT) |
void | SetEdep (G4double edep) |
void | SetEdep (G4double edep) |
void | SetG4Index (G4int index) |
void | SetG4Index (G4int index) |
void | SetMomentum (G4ThreeVector momentum) |
void | SetMomentum (G4ThreeVector momentum) |
void | SetPartId (G4int partId) |
void | SetPartId (G4int partId) |
void | SetPDirection (G4ThreeVector pDirection) |
void | SetPDirection (G4ThreeVector pDirection) |
void | SetPos (G4ThreeVector pos) |
void | SetPos (G4ThreeVector pos) |
void | SetScinNb (G4int scinNb) |
void | SetScinNb (G4int scinNb) |
void | SetStepL (G4double stepL) |
void | SetStepL (G4double stepL) |
void | SetTime (G4double time) |
void | SetTime (G4double time) |
void | SetTrackIndex (G4int trackIndex) |
void | SetTrackIndex (G4int trackIndex) |
void | SetTrackL (G4double length) |
void | SetTrackL (G4double length) |
virtual | ~BesTofHit () |
virtual | ~BesTofHit () |
Private Attributes | |
G4double | m_charge |
G4double | m_deltaT |
G4double | m_edep |
G4int | m_g4Index |
G4ThreeVector | m_momentum |
G4int | m_partId |
G4ThreeVector | m_pDirection |
G4ThreeVector | m_pos |
G4int | m_scinNb |
G4double | m_stepL |
G4double | m_time |
G4int | m_trackIndex |
G4double | m_trackL |
|
00022 {}
|
|
00024 {}
|
|
00027 :G4VHit() 00028 { 00029 m_trackIndex=right.m_trackIndex; 00030 m_g4Index=right.m_g4Index; 00031 m_partId=right.m_partId; 00032 m_scinNb=right.m_scinNb; 00033 m_edep=right.m_edep; 00034 m_stepL=right.m_stepL; 00035 m_trackL=right.m_trackL; 00036 m_pos=right.m_pos; 00037 m_time=right.m_time; 00038 m_deltaT=right.m_deltaT; 00039 m_pDirection=right.m_pDirection; 00040 m_momentum=right.m_momentum; 00041 //m_scinMaterial = right.m_scinMaterial; 00042 m_charge = right.m_charge; 00043 }
|
|
|
|
|
|
|
|
00073 { m_edep += de; }
|
|
00073 { m_edep += de; }
|
|
|
|
00073 { 00074 m_edep += newHit.m_edep; 00075 if (m_edep>newHit.m_edep) 00076 { 00077 m_time = newHit.m_time; 00078 m_pos = newHit.m_pos; 00079 } 00080 }
|
|
|
|
00083 {
00084 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
00085 if (pVVisManager)
00086 {
00087 G4Circle circle(m_pos);
00088 circle.SetScreenSize(1.);
00089 circle.SetFillStyle(G4Circle::filled);
00090 G4Colour colour(0.,0.,1.);
00091 G4VisAttributes attribs(colour);
00092 circle.SetVisAttributes(attribs);
00093 pVVisManager->Draw(circle);
00094 }
00095 }
|
|
00071 {return m_charge; }
|
|
00071 {return m_charge; }
|
|
00066 {return m_deltaT;}
|
|
00066 {return m_deltaT;}
|
|
00061 { return m_edep; }
|
|
00061 { return m_edep; }
|
|
00058 {return m_g4Index;}
|
|
00058 {return m_g4Index;}
|
|
00068 {return m_momentum;}
|
|
00068 {return m_momentum;}
|
|
00059 { return m_partId; }
|
|
00059 { return m_partId; }
|
|
00067 {return m_pDirection;}
|
|
00067 {return m_pDirection;}
|
|
00064 { return m_pos; }
|
|
00064 { return m_pos; }
|
|
00060 { return m_scinNb; }
|
|
00060 { return m_scinNb; }
|
|
00062 { return m_stepL; }
|
|
00062 { return m_stepL; }
|
|
00065 { return m_time;}
|
|
00065 { return m_time;}
|
|
00057 { return m_trackIndex; }
|
|
00057 { return m_trackIndex; }
|
|
00063 {return m_trackL; }
|
|
00063 {return m_trackL; }
|
|
|
|
00108 { 00109 BesTofHitAllocator.FreeSingle((BesTofHit*) aHit); 00110 }
|
|
|
|
00100 { 00101 void *aHit; 00102 aHit = (void *) BesTofHitAllocator.MallocSingle(); 00103 return aHit; 00104 }
|
|
|
|
00047 { 00048 m_trackIndex=right.m_trackIndex; 00049 m_g4Index=right.m_g4Index; 00050 m_partId=right.m_partId; 00051 m_scinNb=right.m_scinNb; 00052 m_edep=right.m_edep; 00053 m_stepL=right.m_stepL; 00054 m_trackL=right.m_trackL; 00055 m_pos=right.m_pos; 00056 m_time=right.m_time; 00057 m_deltaT=right.m_deltaT; 00058 m_pDirection=right.m_pDirection; 00059 m_momentum=right.m_momentum; 00060 //m_scinMaterial = right.m_scinMaterial; 00061 m_charge = right.m_charge; 00062 return *this; 00063 }
|
|
|
|
00068 { 00069 return (this==&right) ? 1 : 0; 00070 }
|
|
|
|
00099 { 00100 G4cout<<m_trackIndex<<" "<<m_g4Index<<" "<<m_partId<<" "<<m_scinNb<<" "; 00101 G4double posx = m_pos.x(); 00102 G4double posy = m_pos.y(); 00103 G4double posr = sqrt(posx*posx + posy*posy); 00104 G4cout<<posr<<" "<<m_edep<<" "<<m_stepL<<G4endl; 00105 }
|
|
00055 {m_charge = charge;}
|
|
00055 {m_charge = charge;}
|
|
00050 { m_deltaT = deltaT;}
|
|
00050 { m_deltaT = deltaT;}
|
|
00045 { m_edep = edep; }
|
|
00045 { m_edep = edep; }
|
|
00042 {m_g4Index = index;}
|
|
00042 {m_g4Index = index;}
|
|
00052 { m_momentum = momentum; }
|
|
00052 { m_momentum = momentum; }
|
|
00043 {m_partId = partId;}
|
|
00043 {m_partId = partId;}
|
|
00051 { m_pDirection = pDirection; }
|
|
00051 { m_pDirection = pDirection; }
|
|
00048 { m_pos = pos; }
|
|
00048 { m_pos = pos; }
|
|
00044 { m_scinNb = scinNb; }
|
|
00044 { m_scinNb = scinNb; }
|
|
00046 { m_stepL = stepL;}
|
|
00046 { m_stepL = stepL;}
|
|
00049 { m_time=time;}
|
|
00049 { m_time=time;}
|
|
00041 { m_trackIndex = trackIndex; };
|
|
00041 { m_trackIndex = trackIndex; };
|
|
00047 { m_trackL = length; }
|
|
00047 { m_trackL = length; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|