#include <BesEmcHit.hh>
Public Member Functions | |
void | AddCrystal (G4double de, G4double dl) |
void | AddCrystal (G4double de, G4double dl) |
BesEmcHit (const BesEmcHit &) | |
BesEmcHit () | |
BesEmcHit (const BesEmcHit &) | |
BesEmcHit () | |
void | Draw () |
void | Draw () |
G4double | GetEdepCasing () |
G4double | GetEdepCasing () |
G4double | GetEdepCrystal () |
G4double | GetEdepCrystal () |
G4int | GetG4Index () |
G4int | GetG4Index () |
G4ThreeVector | GetMomentum () |
G4ThreeVector | GetMomentum () |
G4int | GetNumPhiCrystal () |
G4int | GetNumPhiCrystal () |
G4int | GetNumThetaCrystal () |
G4int | GetNumThetaCrystal () |
G4int | GetPartId () |
G4int | GetPartId () |
G4ThreeVector | GetPosCrystal () |
G4ThreeVector | GetPosCrystal () |
G4double | GetTimeCrystal () |
G4double | GetTimeCrystal () |
G4double | GetTotalEdepCrystal () |
G4double | GetTotalEdepCrystal () |
G4double | GetTotalTrakCrystal () |
G4double | GetTotalTrakCrystal () |
G4int | GetTrackIndex () |
G4int | GetTrackIndex () |
G4double | GetTrakCrystal () |
G4double | GetTrakCrystal () |
void | operator delete (void *) |
void | operator delete (void *) |
void * | operator new (size_t) |
void * | operator new (size_t) |
const BesEmcHit & | operator= (const BesEmcHit &) |
const BesEmcHit & | operator= (const BesEmcHit &) |
int | operator== (const BesEmcHit &) const |
int | operator== (const BesEmcHit &) const |
void | Print () |
void | Print (G4int) |
void | Print () |
void | Print (G4int) |
void | SetEdepCasing (G4double de) |
void | SetEdepCasing (G4double de) |
void | SetEdepCrystal (G4double de) |
void | SetEdepCrystal (G4double de) |
void | SetG4Index (G4int index) |
void | SetG4Index (G4int index) |
void | SetMomentum (G4ThreeVector momen) |
void | SetMomentum (G4ThreeVector momen) |
void | SetNumCrystal (G4int id, G4int numTheta, G4int numPhi) |
void | SetNumCrystal (G4int id, G4int numTheta, G4int numPhi) |
void | SetPosCrystal (G4ThreeVector position) |
void | SetPosCrystal (G4ThreeVector position) |
void | SetTimeCrystal (G4double t) |
void | SetTimeCrystal (G4double t) |
void | SetTrackIndex (G4int index) |
void | SetTrackIndex (G4int index) |
void | SetTrakCrystal (G4double dl) |
void | SetTrakCrystal (G4double dl) |
~BesEmcHit () | |
~BesEmcHit () | |
Private Attributes | |
G4double | EdepCasing |
G4double | EdepCrystal |
G4int | g4Index |
G4ThreeVector | momentum |
G4int | NumPhi |
G4int | NumTheta |
G4int | PartId |
G4ThreeVector | PositionCrystal |
G4double | TimeCrystal |
G4double | TotalEdepCrystal |
G4double | TotalTrackLengthCrystal |
G4int | trackIndex |
G4double | 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 }
|
|
00041 {}
|
|
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 }
|
|
|
|
|
|
|
|
00042 {TotalEdepCrystal += de; TotalTrackLengthCrystal += dl;};
|
|
00042 {TotalEdepCrystal += de; TotalTrackLengthCrystal += dl;};
|
|
|
|
00089 {}
|
|
00057 { return EdepCasing; };
|
|
00057 { return EdepCasing; };
|
|
00056 { return EdepCrystal; };
|
|
00056 { return EdepCrystal; };
|
|
00065 {return g4Index;}
|
|
00065 {return g4Index;}
|
|
00066 {return momentum;}
|
|
00066 {return momentum;}
|
|
00063 {return NumPhi;};
|
|
00063 {return NumPhi;};
|
|
00062 {return NumTheta;};
|
|
00062 {return NumTheta;};
|
|
00061 {return PartId;};
|
|
00061 {return PartId;};
|
|
00059 { return PositionCrystal;};
|
|
00059 { return PositionCrystal;};
|
|
00060 {return TimeCrystal;};
|
|
00060 {return TimeCrystal;};
|
|
00054 { return TotalEdepCrystal; };
|
|
00054 { return TotalEdepCrystal; };
|
|
00055 { return TotalTrackLengthCrystal; };
|
|
00055 { return TotalTrackLengthCrystal; };
|
|
00064 {return trackIndex;}
|
|
00064 {return trackIndex;}
|
|
00058 { return TrackLengthCrystal; };
|
|
00058 { return TrackLengthCrystal; };
|
|
|
|
00099 { 00100 BesEmcHitAllocator.FreeSingle((BesEmcHit*) aHit); 00101 }
|
|
|
|
00090 { 00091 void* aHit; 00092 aHit = (void*) BesEmcHitAllocator.MallocSingle(); 00093 return aHit; 00094 }
|
|
|
|
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 }
|
|
|
|
00082 { 00083 return (this==&right) ? 1 : 0; 00084 }
|
|
|
|
|
|
00108 { 00109 G4cout<<"time: "<<TimeCrystal<<" edep: "<<EdepCrystal<<G4endl; 00110 }
|
|
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 }
|
|
00045 {EdepCasing=de;};
|
|
00045 {EdepCasing=de;};
|
|
00044 {EdepCrystal=de;};
|
|
00044 {EdepCrystal=de;};
|
|
00051 { g4Index = index;}
|
|
00051 { g4Index = index;}
|
|
00052 {momentum = momen;}
|
|
00052 {momentum = momen;}
|
|
|
|
|
|
00047 {PositionCrystal=position;};
|
|
00047 {PositionCrystal=position;};
|
|
00048 {TimeCrystal=t;};
|
|
00048 {TimeCrystal=t;};
|
|
00050 { trackIndex = index;}
|
|
00050 { trackIndex = index;}
|
|
00046 {TrackLengthCrystal=dl;};
|
|
00046 {TrackLengthCrystal=dl;};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|