ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimPlaHit.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 ActarSimPlaHit_h
11 #define ActarSimPlaHit_h 1
12 
13 #include "TROOT.h" //for including Rtypes.h
14 
15 #include "TObject.h"
16 
17 class ActarSimPlaHit : public TObject {
18 private:
19  Int_t detectorID; ///< Tracker model (depends on tracker geo)
20 
21  Double_t xpos; ///< X position in plastic
22  Double_t ypos; ///< Y position in plastic
23  Double_t zpos; ///< Z position in plastic
24 
25  Double_t time; ///< Pulse time (w.r.t. vertex emission)
26  Double_t energy; ///< Total energy deposited
27  Double_t eBeforePla; ///< Energy before entering plastic
28  Double_t eAfterPla; ///< Energy left after plastic
29 
30  UInt_t eventID; ///< Event ID
31  UInt_t runID; ///< Run ID
32  UInt_t trackID; ///< Track 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 contributing to the stride, neccesary for iterative mean values
39 
40 public:
43 
44  void SetDetectorID(Int_t det){detectorID = det;}
45  void SetXPos(Double_t x){xpos = x;}
46  void SetYPos(Double_t y){ypos = y;}
47  void SetZPos(Double_t z){zpos = z;}
48 
49  void SetTime(Double_t ti){time = ti;}
50  void SetEnergy(Double_t ed){energy = ed;}
51  void SetEBeforePla(Double_t eb){eBeforePla = eb;}
52  void SetEAfterPla(Double_t ea){eAfterPla = ea;}
53 
54  void SetEventID(UInt_t ev){eventID = ev;}
55  void SetRunID(UInt_t run){runID = run;}
56  void SetTrackID(UInt_t track){trackID = track;}
57 
58  void SetParticleID(UInt_t pdgID){particleID = pdgID;}
59  void SetParticleCharge(Double_t pdgCharge){particleCharge = pdgCharge;}
60  void SetParticleMass(Double_t pdgMass){particleMass = pdgMass;}
61 
62  void SetStepsContributing(UInt_t step){stepsContributing = step;}
63 
64  Int_t GetDetectorID(){return detectorID;}
65 
66  Double_t GetXPos(){return xpos;}
67  Double_t GetYPos(){return ypos;}
68  Double_t GetZPos(){return zpos;}
69 
70  Double_t GetEnergy(){return energy;}
71  Double_t GetTime(){return time;}
72  Double_t GetEBeforePla(){return eBeforePla;}
73  Double_t GetEAfterPla(){return eAfterPla;}
74 
75  UInt_t GetEventID(){return eventID;}
76  UInt_t GetRunID(){return runID;}
77  UInt_t GetTrackID(){return trackID;}
78 
79  UInt_t GetParticleID(){return particleID;}
80  Double_t GetParticleCharge(){return particleCharge;}
81  Double_t GetParticleMass(){return particleMass;}
82 
84 
85  void print(void);
86 
87  ClassDef(ActarSimPlaHit,1) //ROOT CINT
88 };
89 #endif
Double_t particleCharge
Particle charge.
Double_t GetParticleCharge()
void SetEBeforePla(Double_t eb)
UInt_t GetEventID()
UInt_t GetTrackID()
void print(void)
Printing data information (NOT IMPLEMENTED!)
void SetParticleCharge(Double_t pdgCharge)
Double_t GetEnergy()
Double_t GetZPos()
Double_t GetParticleMass()
Double_t ypos
Y position in plastic.
void SetStepsContributing(UInt_t step)
void SetXPos(Double_t x)
UInt_t GetStepsContributing()
Double_t GetXPos()
Double_t eAfterPla
Energy left after plastic.
Int_t detectorID
Tracker model (depends on tracker geo)
UInt_t stepsContributing
Steps contributing to the stride, neccesary for iterative mean values.
Double_t xpos
X position in plastic.
Double_t GetTime()
UInt_t GetParticleID()
UInt_t particleID
Particle ID.
void SetEnergy(Double_t ed)
void SetEAfterPla(Double_t ea)
void SetZPos(Double_t z)
Double_t particleMass
Particle mass.
Double_t GetEBeforePla()
void SetEventID(UInt_t ev)
~ActarSimPlaHit()
Destructor, nothing to do.
void SetDetectorID(Int_t det)
void SetRunID(UInt_t run)
Double_t GetEAfterPla()
void SetParticleMass(Double_t pdgMass)
UInt_t eventID
Event ID.
Double_t eBeforePla
Energy before entering plastic.
void SetYPos(Double_t y)
void SetTrackID(UInt_t track)
UInt_t trackID
Track ID.
Double_t time
Pulse time (w.r.t. vertex emission)
Double_t zpos
Z position in plastic.
Int_t GetDetectorID()
Double_t GetYPos()
void SetParticleID(UInt_t pdgID)
UInt_t runID
Run ID.
void SetTime(Double_t ti)
Double_t energy
Total energy deposited.