#include <BesEmcHit.hh>
Public Member Functions | |
BesEmcHit () | |
~BesEmcHit () | |
BesEmcHit (const BesEmcHit &) | |
const BesEmcHit & | operator= (const BesEmcHit &) |
int | operator== (const BesEmcHit &) const |
void * | operator new (size_t) |
void | operator delete (void *) |
void | Draw () |
void | Print (G4int) |
void | Print () |
void | AddCrystal (G4double de, G4double dl) |
void | SetEdepCrystal (G4double de) |
void | SetEdepCasing (G4double de) |
void | SetTrakCrystal (G4double dl) |
void | SetPosCrystal (G4ThreeVector position) |
void | SetTimeCrystal (G4double t) |
void | SetNumCrystal (G4int id, G4int numTheta, G4int numPhi) |
void | SetTrackIndex (G4int index) |
void | SetG4Index (G4int index) |
void | SetMomentum (G4ThreeVector momen) |
G4double | GetTotalEdepCrystal () |
G4double | GetTotalTrakCrystal () |
G4double | GetEdepCrystal () |
G4double | GetEdepCasing () |
G4double | GetTrakCrystal () |
G4ThreeVector | GetPosCrystal () |
G4double | GetTimeCrystal () |
G4int | GetPartId () |
G4int | GetNumThetaCrystal () |
G4int | GetNumPhiCrystal () |
G4int | GetTrackIndex () |
G4int | GetG4Index () |
G4ThreeVector | GetMomentum () |
Private Attributes | |
G4double | TotalEdepCrystal |
G4double | TotalTrackLengthCrystal |
G4double | EdepCrystal |
G4double | TrackLengthCrystal |
G4double | EdepCasing |
G4ThreeVector | PositionCrystal |
G4double | TimeCrystal |
G4int | PartId |
G4int | NumTheta |
G4int | NumPhi |
G4int | trackIndex |
G4int | g4Index |
G4ThreeVector | momentum |
Definition at line 23 of file BesEmcHit.hh.
BesEmcHit::BesEmcHit | ( | ) |
Definition at line 23 of file BesEmcHit.cc.
References EdepCasing, EdepCrystal, g4Index, momentum, NumPhi, NumTheta, PartId, PositionCrystal, TimeCrystal, TotalEdepCrystal, TotalTrackLengthCrystal, trackIndex, and TrackLengthCrystal.
00024 { 00025 TotalEdepCrystal = 0.; TotalTrackLengthCrystal = 0.; 00026 EdepCrystal = 0.; TrackLengthCrystal = 0.; 00027 EdepCasing = 0.; 00028 PositionCrystal= G4ThreeVector(0,0,0); 00029 TimeCrystal=0.; 00030 PartId=0; 00031 NumTheta=0; 00032 NumPhi=0; 00033 trackIndex=0; 00034 g4Index=0; 00035 momentum = G4ThreeVector(0,0,0); 00036 }
BesEmcHit::~BesEmcHit | ( | ) |
BesEmcHit::BesEmcHit | ( | const BesEmcHit & | ) |
Definition at line 45 of file BesEmcHit.cc.
References EdepCasing, EdepCrystal, g4Index, momentum, NumPhi, NumTheta, PartId, PositionCrystal, TimeCrystal, trackIndex, and TrackLengthCrystal.
00046 : G4VHit() 00047 { 00048 EdepCrystal = right.EdepCrystal; 00049 TrackLengthCrystal = right.TrackLengthCrystal; 00050 EdepCasing = right.EdepCasing; 00051 PositionCrystal= right.PositionCrystal; 00052 TimeCrystal = right.TimeCrystal; 00053 PartId = right.PartId; 00054 NumTheta = right.NumTheta; 00055 NumPhi = right.NumPhi; 00056 trackIndex = right.trackIndex; 00057 g4Index = right.g4Index; 00058 momentum = right.momentum; 00059 }
void BesEmcHit::AddCrystal | ( | G4double | de, | |
G4double | dl | |||
) | [inline] |
Definition at line 42 of file BesEmcHit.hh.
References TotalEdepCrystal, and TotalTrackLengthCrystal.
00042 {TotalEdepCrystal += de; TotalTrackLengthCrystal += dl;};
void BesEmcHit::Draw | ( | ) |
G4double BesEmcHit::GetEdepCasing | ( | ) | [inline] |
G4double BesEmcHit::GetEdepCrystal | ( | ) | [inline] |
Definition at line 56 of file BesEmcHit.hh.
References EdepCrystal.
Referenced by BesEmcDigitizer::Digitize(), BesEmcDigitizer::GroupHits(), BesMcTruthWriter::SaveEmcTruth(), BesAsciiIO::SaveEmcTruth(), and BesEmcWaveform::updateWaveform().
00056 { return EdepCrystal; };
G4int BesEmcHit::GetG4Index | ( | ) | [inline] |
G4ThreeVector BesEmcHit::GetMomentum | ( | ) | [inline] |
Definition at line 66 of file BesEmcHit.hh.
References momentum.
Referenced by BesMcTruthWriter::SaveEmcTruth(), and BesAsciiIO::SaveEmcTruth().
00066 {return momentum;}
G4int BesEmcHit::GetNumPhiCrystal | ( | ) | [inline] |
Definition at line 63 of file BesEmcHit.hh.
References NumPhi.
Referenced by BesEmcDigitizer::GroupHits(), BesMcTruthWriter::SaveEmcTruth(), and BesAsciiIO::SaveEmcTruth().
00063 {return NumPhi;};
G4int BesEmcHit::GetNumThetaCrystal | ( | ) | [inline] |
Definition at line 62 of file BesEmcHit.hh.
References NumTheta.
Referenced by BesEmcDigitizer::GroupHits(), BesMcTruthWriter::SaveEmcTruth(), and BesAsciiIO::SaveEmcTruth().
00062 {return NumTheta;};
G4int BesEmcHit::GetPartId | ( | ) | [inline] |
Definition at line 61 of file BesEmcHit.hh.
References PartId.
Referenced by BesEmcDigitizer::GroupHits(), BesMcTruthWriter::SaveEmcTruth(), and BesAsciiIO::SaveEmcTruth().
00061 {return PartId;};
G4ThreeVector BesEmcHit::GetPosCrystal | ( | ) | [inline] |
Definition at line 59 of file BesEmcHit.hh.
References PositionCrystal.
Referenced by BesMcTruthWriter::SaveEmcTruth(), and BesAsciiIO::SaveEmcTruth().
00059 { return PositionCrystal;};
G4double BesEmcHit::GetTimeCrystal | ( | ) | [inline] |
Definition at line 60 of file BesEmcHit.hh.
References TimeCrystal.
Referenced by BesEmcWaveform::updateWaveform().
00060 {return TimeCrystal;};
G4double BesEmcHit::GetTotalEdepCrystal | ( | ) | [inline] |
Definition at line 54 of file BesEmcHit.hh.
References TotalEdepCrystal.
00054 { return TotalEdepCrystal; };
G4double BesEmcHit::GetTotalTrakCrystal | ( | ) | [inline] |
Definition at line 55 of file BesEmcHit.hh.
References TotalTrackLengthCrystal.
00055 { return TotalTrackLengthCrystal; };
G4int BesEmcHit::GetTrackIndex | ( | ) | [inline] |
Definition at line 64 of file BesEmcHit.hh.
References trackIndex.
Referenced by BesEmcDigitizer::Digitize(), BesMcTruthWriter::SaveEmcTruth(), and BesAsciiIO::SaveEmcTruth().
00064 {return trackIndex;}
G4double BesEmcHit::GetTrakCrystal | ( | ) | [inline] |
Definition at line 58 of file BesEmcHit.hh.
References TrackLengthCrystal.
00058 { return TrackLengthCrystal; };
void BesEmcHit::operator delete | ( | void * | ) | [inline] |
Definition at line 98 of file BesEmcHit.hh.
References BesEmcHitAllocator.
00099 { 00100 BesEmcHitAllocator.FreeSingle((BesEmcHit*) aHit); 00101 }
void * BesEmcHit::operator new | ( | size_t | ) | [inline] |
Definition at line 89 of file BesEmcHit.hh.
References BesEmcHitAllocator.
00090 { 00091 void* aHit; 00092 aHit = (void*) BesEmcHitAllocator.MallocSingle(); 00093 return aHit; 00094 }
Definition at line 63 of file BesEmcHit.cc.
References EdepCasing, EdepCrystal, g4Index, momentum, NumPhi, NumTheta, PartId, PositionCrystal, TimeCrystal, trackIndex, and TrackLengthCrystal.
00064 { 00065 EdepCrystal = right.EdepCrystal; 00066 TrackLengthCrystal = right.TrackLengthCrystal; 00067 EdepCasing = right.EdepCasing; 00068 PositionCrystal= right.PositionCrystal; 00069 TimeCrystal = right.TimeCrystal; 00070 PartId = right.PartId; 00071 NumTheta = right.NumTheta; 00072 NumPhi = right.NumPhi; 00073 trackIndex = right.trackIndex; 00074 g4Index = right.g4Index; 00075 momentum = right.momentum; 00076 return *this; 00077 }
int BesEmcHit::operator== | ( | const BesEmcHit & | ) | const |
void BesEmcHit::Print | ( | ) |
Definition at line 107 of file BesEmcHit.cc.
References EdepCrystal, and TimeCrystal.
00108 { 00109 G4cout<<"time: "<<TimeCrystal<<" edep: "<<EdepCrystal<<G4endl; 00110 }
void BesEmcHit::Print | ( | G4int | ) |
Definition at line 93 of file BesEmcHit.cc.
References EdepCrystal, NumPhi, NumTheta, PositionCrystal, TimeCrystal, and TrackLengthCrystal.
00094 { 00095 if(verboseLevel>0) 00096 G4cout << "Hit in crystal:" <<NumTheta<<","<<NumPhi<<G4endl 00097 <<"Energy deposited:"<<G4BestUnit(EdepCrystal,"Energy") <<G4endl; 00098 if(verboseLevel>1) 00099 G4cout <<"Hit time :"<<G4BestUnit(TimeCrystal,"Time")<<G4endl 00100 <<" position :"<<G4BestUnit(PositionCrystal,"Length")<<G4endl; 00101 if(verboseLevel>2) 00102 G4cout <<"Track length :"<<G4BestUnit(TrackLengthCrystal,"Length")<<G4endl; 00103 00104 00105 }
void BesEmcHit::SetEdepCasing | ( | G4double | de | ) | [inline] |
void BesEmcHit::SetEdepCrystal | ( | G4double | de | ) | [inline] |
Definition at line 44 of file BesEmcHit.hh.
References EdepCrystal.
Referenced by BesEmcSD::ProcessHits().
00044 {EdepCrystal=de;};
void BesEmcHit::SetG4Index | ( | G4int | index | ) | [inline] |
Definition at line 51 of file BesEmcHit.hh.
References g4Index.
Referenced by BesEmcSD::ProcessHits().
00051 { g4Index = index;}
void BesEmcHit::SetMomentum | ( | G4ThreeVector | momen | ) | [inline] |
Definition at line 52 of file BesEmcHit.hh.
References momentum.
Referenced by BesEmcSD::ProcessHits().
00052 {momentum = momen;}
void BesEmcHit::SetNumCrystal | ( | G4int | id, | |
G4int | numTheta, | |||
G4int | numPhi | |||
) | [inline] |
Definition at line 49 of file BesEmcHit.hh.
References NumPhi, NumTheta, and PartId.
Referenced by BesEmcSD::ProcessHits().
void BesEmcHit::SetPosCrystal | ( | G4ThreeVector | position | ) | [inline] |
Definition at line 47 of file BesEmcHit.hh.
References PositionCrystal.
Referenced by BesEmcSD::ProcessHits().
00047 {PositionCrystal=position;};
void BesEmcHit::SetTimeCrystal | ( | G4double | t | ) | [inline] |
Definition at line 48 of file BesEmcHit.hh.
References TimeCrystal.
Referenced by BesEmcSD::ProcessHits().
00048 {TimeCrystal=t;};
void BesEmcHit::SetTrackIndex | ( | G4int | index | ) | [inline] |
Definition at line 50 of file BesEmcHit.hh.
References trackIndex.
Referenced by BesEmcSD::ProcessHits().
00050 { trackIndex = index;}
void BesEmcHit::SetTrakCrystal | ( | G4double | dl | ) | [inline] |
Definition at line 46 of file BesEmcHit.hh.
References TrackLengthCrystal.
Referenced by BesEmcSD::ProcessHits().
00046 {TrackLengthCrystal=dl;};
G4double BesEmcHit::EdepCasing [private] |
Definition at line 72 of file BesEmcHit.hh.
Referenced by BesEmcHit(), GetEdepCasing(), operator=(), and SetEdepCasing().
G4double BesEmcHit::EdepCrystal [private] |
Definition at line 71 of file BesEmcHit.hh.
Referenced by BesEmcHit(), GetEdepCrystal(), operator=(), Print(), and SetEdepCrystal().
G4int BesEmcHit::g4Index [private] |
Definition at line 77 of file BesEmcHit.hh.
Referenced by BesEmcHit(), GetG4Index(), operator=(), and SetG4Index().
G4ThreeVector BesEmcHit::momentum [private] |
Definition at line 78 of file BesEmcHit.hh.
Referenced by BesEmcHit(), GetMomentum(), operator=(), and SetMomentum().
G4int BesEmcHit::NumPhi [private] |
Definition at line 75 of file BesEmcHit.hh.
Referenced by BesEmcHit(), GetNumPhiCrystal(), operator=(), Print(), and SetNumCrystal().
G4int BesEmcHit::NumTheta [private] |
Definition at line 75 of file BesEmcHit.hh.
Referenced by BesEmcHit(), GetNumThetaCrystal(), operator=(), Print(), and SetNumCrystal().
G4int BesEmcHit::PartId [private] |
Definition at line 75 of file BesEmcHit.hh.
Referenced by BesEmcHit(), GetPartId(), operator=(), and SetNumCrystal().
G4ThreeVector BesEmcHit::PositionCrystal [private] |
Definition at line 73 of file BesEmcHit.hh.
Referenced by BesEmcHit(), GetPosCrystal(), operator=(), Print(), and SetPosCrystal().
G4double BesEmcHit::TimeCrystal [private] |
Definition at line 74 of file BesEmcHit.hh.
Referenced by BesEmcHit(), GetTimeCrystal(), operator=(), Print(), and SetTimeCrystal().
G4double BesEmcHit::TotalEdepCrystal [private] |
Definition at line 70 of file BesEmcHit.hh.
Referenced by AddCrystal(), BesEmcHit(), and GetTotalEdepCrystal().
G4double BesEmcHit::TotalTrackLengthCrystal [private] |
Definition at line 70 of file BesEmcHit.hh.
Referenced by AddCrystal(), BesEmcHit(), and GetTotalTrakCrystal().
G4int BesEmcHit::trackIndex [private] |
Definition at line 76 of file BesEmcHit.hh.
Referenced by BesEmcHit(), GetTrackIndex(), operator=(), and SetTrackIndex().
G4double BesEmcHit::TrackLengthCrystal [private] |
Definition at line 71 of file BesEmcHit.hh.
Referenced by BesEmcHit(), GetTrakCrystal(), operator=(), Print(), and SetTrakCrystal().