QwGeant4
QweakSimUserTriggerScintillator_DetectorEvent.cc
Go to the documentation of this file.
1 
2 // QweakSimUserTriggerScintillator_DetectorEvent.cc
3 // Klaus Hans Grimm
4 // 2005-12-27
5 
6 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
7 
9 
10 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
11 
13 
14 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
16 {
17  SecondaryElectronCount = 0;
18  Initialize();
19 }
20 
21 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
23 {;}
24 
25 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
27 {
28  TrackID = 0;
29  HasBeenHit = 0;
30  NbOfHits = 0;
31  GlobalTimeOfHit = 0.0;
32  EdgeEventFlag = 0;
33 
34 
36 
37  SecElecLocalOriginX.clear();
38  SecElecLocalOriginY.clear();
39  SecElecLocalOriginZ.clear();
40 
41  SecElecLocalMomentumX.clear();
42  SecElecLocalMomentumY.clear();
43  SecElecLocalMomentumZ.clear();
44 
45  SecElecLocalEnergy.clear();
46  }
47 
49 
50  HitLocalPositionX = 0.0;
51  HitLocalPositionY = 0.0;
52  HitLocalPositionZ = 0.0;
53 
54  HitGlobalPositionX = 0.0;
55  HitGlobalPositionY = 0.0;
56  HitGlobalPositionZ = 0.0;
57 
61 
65 
70 
71  EdgeEventFlag = 0;
72 
73  GlobalPhiAngle = 0.;
74  GlobalThetaAngle = 0.;
75 
76  ParticleName.clear();
77  ParticleType.clear();
78 
79  DepositedEnergy.clear();
81 }
82 
83 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
85  Float_t XM, Float_t YM, Float_t ZM,
86  Float_t energy)
87 {
88  SecElecLocalOriginX.push_back(XO);
89  SecElecLocalOriginY.push_back(YO);
90  SecElecLocalOriginZ.push_back(ZO);
91 
92  SecElecLocalMomentumX.push_back(XM);
93  SecElecLocalMomentumY.push_back(YM);
94  SecElecLocalMomentumZ.push_back(ZM);
95 
96  SecElecLocalEnergy.push_back(energy);
97 
99 }
100 
Float_t GlobalPhiAngle
(degrees, but 90 degrees rotated to keep things interesting)
Float_t GlobalTimeOfHit
Global time when this hit was generated.
Int_t TrackID
ID of the track from which this hit was generated.
std::vector< Int_t > ParticleType
Lund type of the particle that caused this hit (until r4757 this used the geant3 type of the particle...
std::vector< TString > ParticleName
Name of the particle that caused this hit.
void AddSecondaryElectronEvent(Float_t XO, Float_t YO, Float_t ZO, Float_t XM, Float_t YM, Float_t ZM, Float_t energy)
Int_t HasBeenHit
Has this detector been hit? 0 = no, 5 = yes.
ROOT Subtree structure for Trigger Scintillator DetectorEvent.