CMS 3D CMS Logo

TotemG4Hit.h
Go to the documentation of this file.
1 #ifndef Forward_TotemG4Hit_h
2 #define Forward_TotemG4Hit_h 1
3 // -*- C++ -*-
4 //
5 // Package: Forward
6 // Class : TotemG4Hit
7 //
25 //
26 // Original Author:
27 // Created: Tue May 16 10:14:34 CEST 2006
28 //
29 
30 // system include files
31 
32 // user include files
33 
34 #include "G4VHit.hh"
36 #include <cstdint>
37 #include <iostream>
38 
39 class TotemG4Hit : public G4VHit {
40 public:
41  // ---------- Constructor and destructor -----------------
42  TotemG4Hit();
43  ~TotemG4Hit() override;
44  TotemG4Hit(const TotemG4Hit& right);
45 
46  // ---------- operators ----------------------------------
47  const TotemG4Hit& operator=(const TotemG4Hit& right);
48  int operator==(const TotemG4Hit&) { return 0; }
49 
50  // ---------- member functions ---------------------------
51  void Draw() override {}
52  void Print() override;
53 
54  math::XYZPoint getEntry() const;
55  void setEntry(double x, double y, double z) { entry.SetCoordinates(x, y, z); }
56 
57  double getEM() const;
58  void setEM(double e);
59 
60  double getHadr() const;
61  void setHadr(double e);
62 
63  double getIncidentEnergy() const;
64  void setIncidentEnergy(double e);
65 
66  int getTrackID() const;
67  void setTrackID(int i);
68 
69  uint32_t getUnitID() const;
70  void setUnitID(uint32_t i);
71 
72  double getTimeSlice() const;
73  void setTimeSlice(double d);
74  int getTimeSliceID() const;
75 
76  void addEnergyDeposit(double em, double hd);
77  void addEnergyDeposit(const TotemG4Hit& aHit);
78 
79  double getEnergyDeposit() const;
80 
81  float getPabs() const;
82  float getTof() const;
83  float getEnergyLoss() const;
84  int getParticleType() const;
85 
86  void setPabs(float e);
87  void setTof(float e);
88  void setEnergyLoss(float e);
89  void setParticleType(short i);
90 
91  float getThetaAtEntry() const;
92  float getPhiAtEntry() const;
93 
94  void setThetaAtEntry(float t);
95  void setPhiAtEntry(float f);
96 
97  float getX() const;
98  float getY() const;
99  float getZ() const;
100  void setX(float t);
101  void setY(float t);
102  void setZ(float t);
103 
104  int getParentId() const;
105  float getVx() const;
106  float getVy() const;
107  float getVz() const;
108 
109  void setParentId(int p);
110  void setVx(float p);
111  void setVy(float p);
112  void setVz(float p);
113 
114 private:
115  math::XYZPoint entry; //Entry point
116  double elem; //EnergyDeposit of EM particles
117  double hadr; //EnergyDeposit of HD particles
118  double theIncidentEnergy; //Energy of the primary particle
119  int theTrackID; //Identification number of the primary
120  //particle
121  uint32_t theUnitID; //Totem Unit Number
122  double theTimeSlice; //Time Slice Identification
123 
124  float theX;
125  float theY;
126  float theZ;
127  float thePabs;
128  float theTof;
131 
136 
138  float theVx;
139  float theVy;
140  float theVz;
141 };
142 
143 std::ostream& operator<<(std::ostream&, const TotemG4Hit&);
144 
145 #endif
TotemG4Hit::addEnergyDeposit
void addEnergyDeposit(double em, double hd)
Definition: TotemG4Hit.cc:135
TotemG4Hit::setParticleType
void setParticleType(short i)
Definition: TotemG4Hit.cc:150
TotemG4Hit::theEntryPoint
math::XYZPoint theEntryPoint
Definition: TotemG4Hit.h:134
TotemG4Hit::theZ
float theZ
Definition: TotemG4Hit.h:126
DDAxes::y
TotemG4Hit::setUnitID
void setUnitID(uint32_t i)
Definition: TotemG4Hit.cc:129
TotemG4Hit::setTof
void setTof(float e)
Definition: TotemG4Hit.cc:148
mps_fire.i
i
Definition: mps_fire.py:355
TotemG4Hit::getThetaAtEntry
float getThetaAtEntry() const
Definition: TotemG4Hit.cc:152
TotemG4Hit::thePhiAtEntry
float thePhiAtEntry
Definition: TotemG4Hit.h:133
TotemG4Hit::setTimeSlice
void setTimeSlice(double d)
Definition: TotemG4Hit.cc:132
TotemG4Hit::getTrackID
int getTrackID() const
Definition: TotemG4Hit.cc:125
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
TotemG4Hit::getUnitID
uint32_t getUnitID() const
Definition: TotemG4Hit.cc:128
TotemG4Hit::Draw
void Draw() override
Definition: TotemG4Hit.h:51
TotemG4Hit::getEntry
math::XYZPoint getEntry() const
Definition: TotemG4Hit.cc:114
TotemG4Hit::operator=
const TotemG4Hit & operator=(const TotemG4Hit &right)
Definition: TotemG4Hit.cc:78
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TotemG4Hit::setVy
void setVy(float p)
Definition: TotemG4Hit.cc:174
TotemG4Hit::getIncidentEnergy
double getIncidentEnergy() const
Definition: TotemG4Hit.cc:122
TotemG4Hit::setHadr
void setHadr(double e)
Definition: TotemG4Hit.cc:120
TotemG4Hit::setParentId
void setParentId(int p)
Definition: TotemG4Hit.cc:168
TotemG4Hit::theTimeSlice
double theTimeSlice
Definition: TotemG4Hit.h:122
DDAxes::x
TotemG4Hit::setEntry
void setEntry(double x, double y, double z)
Definition: TotemG4Hit.h:55
TotemG4Hit::theUnitID
uint32_t theUnitID
Definition: TotemG4Hit.h:121
TotemG4Hit::getZ
float getZ() const
Definition: TotemG4Hit.cc:164
TotemG4Hit::setZ
void setZ(float t)
Definition: TotemG4Hit.cc:165
operator<<
std::ostream & operator<<(std::ostream &, const TotemG4Hit &)
Definition: TotemG4Hit.cc:179
TotemG4Hit::setX
void setX(float t)
Definition: TotemG4Hit.cc:159
TotemG4Hit::getVz
float getVz() const
Definition: TotemG4Hit.cc:176
TotemG4Hit::setTrackID
void setTrackID(int i)
Definition: TotemG4Hit.cc:126
TotemG4Hit::setEnergyLoss
void setEnergyLoss(float e)
Definition: TotemG4Hit.cc:149
TotemG4Hit::setPhiAtEntry
void setPhiAtEntry(float f)
Definition: TotemG4Hit.cc:156
TotemG4Hit::getTimeSliceID
int getTimeSliceID() const
Definition: TotemG4Hit.cc:133
TotemG4Hit::theParentId
int theParentId
Definition: TotemG4Hit.h:137
TotemG4Hit::theExitPoint
math::XYZPoint theExitPoint
Definition: TotemG4Hit.h:135
TotemG4Hit::getPhiAtEntry
float getPhiAtEntry() const
Definition: TotemG4Hit.cc:153
TotemG4Hit::Print
void Print() override
Definition: TotemG4Hit.cc:112
DDAxes::z
TotemG4Hit::theVz
float theVz
Definition: TotemG4Hit.h:140
TotemG4Hit::getPabs
float getPabs() const
Definition: TotemG4Hit.cc:142
TotemG4Hit::getTof
float getTof() const
Definition: TotemG4Hit.cc:143
TotemG4Hit::theParticleType
int theParticleType
Definition: TotemG4Hit.h:130
TotemG4Hit::getVy
float getVy() const
Definition: TotemG4Hit.cc:173
OrderedSet.t
t
Definition: OrderedSet.py:90
TotemG4Hit::setVx
void setVx(float p)
Definition: TotemG4Hit.cc:171
TotemG4Hit::getVx
float getVx() const
Definition: TotemG4Hit.cc:170
TotemG4Hit::theVx
float theVx
Definition: TotemG4Hit.h:138
TotemG4Hit::setY
void setY(float t)
Definition: TotemG4Hit.cc:162
TotemG4Hit::getTimeSlice
double getTimeSlice() const
Definition: TotemG4Hit.cc:131
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
TotemG4Hit::theEnergyLoss
float theEnergyLoss
Definition: TotemG4Hit.h:129
TotemG4Hit::theTrackID
int theTrackID
Definition: TotemG4Hit.h:119
TotemG4Hit::getX
float getX() const
Definition: TotemG4Hit.cc:158
TotemG4Hit::TotemG4Hit
TotemG4Hit()
Definition: TotemG4Hit.cc:22
TotemG4Hit::setThetaAtEntry
void setThetaAtEntry(float t)
Definition: TotemG4Hit.cc:155
TotemG4Hit::theX
float theX
Definition: TotemG4Hit.h:124
TotemG4Hit::setVz
void setVz(float p)
Definition: TotemG4Hit.cc:177
TotemG4Hit::elem
double elem
Definition: TotemG4Hit.h:116
TotemG4Hit::getHadr
double getHadr() const
Definition: TotemG4Hit.cc:119
TotemG4Hit::~TotemG4Hit
~TotemG4Hit() override
Definition: TotemG4Hit.cc:49
TotemG4Hit::getEM
double getEM() const
Definition: TotemG4Hit.cc:116
TotemG4Hit::theVy
float theVy
Definition: TotemG4Hit.h:139
TotemG4Hit::getEnergyLoss
float getEnergyLoss() const
Definition: TotemG4Hit.cc:144
TotemG4Hit::getParticleType
int getParticleType() const
Definition: TotemG4Hit.cc:145
TotemG4Hit::theTof
float theTof
Definition: TotemG4Hit.h:128
TotemG4Hit::getParentId
int getParentId() const
Definition: TotemG4Hit.cc:167
TotemG4Hit::getY
float getY() const
Definition: TotemG4Hit.cc:161
TotemG4Hit::setEM
void setEM(double e)
Definition: TotemG4Hit.cc:117
TotemG4Hit::entry
math::XYZPoint entry
Definition: TotemG4Hit.h:115
Point3D.h
TotemG4Hit::thePabs
float thePabs
Definition: TotemG4Hit.h:127
TotemG4Hit::hadr
double hadr
Definition: TotemG4Hit.h:117
TotemG4Hit::theIncidentEnergy
double theIncidentEnergy
Definition: TotemG4Hit.h:118
ztail.d
d
Definition: ztail.py:151
TotemG4Hit::operator==
int operator==(const TotemG4Hit &)
Definition: TotemG4Hit.h:48
TotemG4Hit
Definition: TotemG4Hit.h:39
TotemG4Hit::theThetaAtEntry
float theThetaAtEntry
Definition: TotemG4Hit.h:132
TotemG4Hit::getEnergyDeposit
double getEnergyDeposit() const
Definition: TotemG4Hit.cc:140
TotemG4Hit::setPabs
void setPabs(float e)
Definition: TotemG4Hit.cc:147
TotemG4Hit::setIncidentEnergy
void setIncidentEnergy(double e)
Definition: TotemG4Hit.cc:123
TotemG4Hit::theY
float theY
Definition: TotemG4Hit.h:125
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37