ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimSilHit.hh
Go to the documentation of this file.
1 // - AUTHOR: Hector Alvarez-Pol 04/2008
2 /******************************************************************
3  * Copyright (C) 2005-2016, Hector Alvarez-Pol *
4  * All rights reserved. *
5  * *
6  * License according to GNU LESSER GPL (see lgpl-3.0.txt). *
7  * For the list of contributors see CREDITS. *
8  ******************************************************************/
9 
10 #ifndef ActarSimSilHit_h
11 #define ActarSimSilHit_h 1
12 
13 #include "TROOT.h" //for including Rtypes.h
14 
15 #include "TObject.h"
16 
17 class ActarSimSilHit : public TObject {
18 private:
19  Int_t detectorID; ///< Tracker model (depends on tracker geo)
20 
21  Double_t xpos; ///< Hit X position in the silicon
22  Double_t ypos; ///< Hit Y position in the silicon
23  Double_t zpos; ///< Hit > position in the silicon
24 
25  Double_t time; ///< Pulse time (w.r.t. vertex emission)
26  Double_t energy; ///< Total energy deposited
27  Double_t eBeforeSil; ///< Energy before entering silicon
28  Double_t eAfterSil; ///< Energy left after silicon
29 
30  UInt_t trackID; ///< Track ID
31  UInt_t eventID; ///< Event ID
32  UInt_t runID; ///< Run ID
33 
34  UInt_t particleID; ///< Particle ID
35  Double_t particleCharge; ///< Particle charge
36  Double_t particleMass; ///< Particle mass
37 
38  UInt_t stepsContributing; ///< Steps included in the hit. Neccessary for iterative means
39 
40 public:
43 
44  void SetDetectorID(Int_t det){detectorID = det;}
45 
46  void SetXPos(Double_t x){xpos = x;}
47  void SetYPos(Double_t y){ypos = y;}
48  void SetZPos(Double_t z){zpos = z;}
49 
50  void SetTime(Double_t ti){time = ti;}
51  void SetEnergy(Double_t ed){energy = ed;}
52  void SetEBeforeSil(Double_t eb){eBeforeSil = eb;}
53  void SetEAfterSil(Double_t ea){eAfterSil = ea;}
54 
55  void SetTrackID(UInt_t tr){trackID = tr;}
56  void SetEventID(UInt_t ev){eventID = ev;}
57  void SetRunID(UInt_t run){runID = run;}
58 
59  void SetParticleID(UInt_t pdgID){particleID = pdgID;}
60  void SetParticleCharge(Double_t pdgCharge){particleCharge = pdgCharge;}
61  void SetParticleMass(Double_t pdgMass){particleMass = pdgMass;}
62 
63  void SetStepsContributing(UInt_t step){stepsContributing = step;}
64 
65  Int_t GetDetectorID(){return detectorID;}
66 
67  Double_t GetXPos(){return xpos;}
68  Double_t GetYPos(){return ypos;}
69  Double_t GetZPos(){return zpos;}
70 
71  Double_t GetEnergy(){return energy;}
72  Double_t GetTime(){return time;}
73  Double_t GetEBeforeSil(){return eBeforeSil;}
74  Double_t GetEAfterSil(){return eAfterSil;}
75 
76  UInt_t GetTrackID(){return trackID;}
77  UInt_t GetEventID(){return eventID;}
78  UInt_t GetRunID(){return runID;}
79 
80  UInt_t GetParticleID(){return particleID;}
81  Double_t GetParticleCharge(){return particleCharge;}
82  Double_t GetParticleMass(){return particleMass;}
83 
85 
86  void print(void);
87 
88  ClassDef(ActarSimSilHit,1) //ROOT CINT
89 };
90 #endif
Int_t detectorID
Tracker model (depends on tracker geo)
Double_t xpos
Hit X position in the silicon.
void SetRunID(UInt_t run)
UInt_t particleID
Particle ID.
void SetStepsContributing(UInt_t step)
Double_t GetParticleCharge()
void SetTrackID(UInt_t tr)
void SetEventID(UInt_t ev)
UInt_t GetTrackID()
Double_t time
Pulse time (w.r.t. vertex emission)
void SetEAfterSil(Double_t ea)
void SetZPos(Double_t z)
Double_t energy
Total energy deposited.
UInt_t GetParticleID()
void SetParticleMass(Double_t pdgMass)
Double_t GetEnergy()
void SetYPos(Double_t y)
Double_t GetEBeforeSil()
void print(void)
Printing data information. Not implemented yet.
UInt_t GetEventID()
Double_t GetXPos()
~ActarSimSilHit()
Destructor, nothing to do.
UInt_t stepsContributing
Steps included in the hit. Neccessary for iterative means.
Double_t GetTime()
Double_t GetParticleMass()
Double_t eAfterSil
Energy left after silicon.
void SetEBeforeSil(Double_t eb)
Double_t ypos
Hit Y position in the silicon.
void SetParticleID(UInt_t pdgID)
Double_t eBeforeSil
Energy before entering silicon.
UInt_t eventID
Event ID.
Double_t GetYPos()
Double_t GetZPos()
UInt_t trackID
Track ID.
void SetXPos(Double_t x)
UInt_t runID
Run ID.
Double_t GetEAfterSil()
Int_t GetDetectorID()
UInt_t GetStepsContributing()
Double_t zpos
Hit > position in the silicon.
Double_t particleMass
Particle mass.
Double_t particleCharge
Particle charge.
void SetDetectorID(Int_t det)
void SetParticleCharge(Double_t pdgCharge)
void SetEnergy(Double_t ed)
void SetTime(Double_t ti)