CMS 3D CMS Logo

PPSPixelG4Hit.h
Go to the documentation of this file.
1 #ifndef _PPS_PixelG4Hit_h
2 #define _PPS_PixelG4Hit_h 1
3 // -*- C++ -*-
4 //
5 // Package: PPS
6 // Class : PPSPixelG4Hit
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"
35 #include "G4ThreeVector.hh"
36 #include <iostream>
37 
38 class PPSPixelG4Hit : public G4VHit {
39 public:
40  // ---------- Constructor and destructor -----------------
41  PPSPixelG4Hit();
42  ~PPSPixelG4Hit() override = default;
43  PPSPixelG4Hit(const PPSPixelG4Hit& right);
44 
45  // ---------- operators ----------------------------------
46  const PPSPixelG4Hit& operator=(const PPSPixelG4Hit& right);
47  int operator==(const PPSPixelG4Hit&) { return 0; }
48 
49  // ---------- member functions ---------------------------
50  void Draw() override {}
51  void Print() override;
52 
53  const G4ThreeVector& meanPosition() const { return MeanPosition_; };
54  void setMeanPosition(const G4ThreeVector& a) { MeanPosition_ = a; };
55 
56  const G4ThreeVector& entryPoint() const;
57  void setEntryPoint(const G4ThreeVector&);
58  const G4ThreeVector& exitPoint() const;
59  void setExitPoint(const G4ThreeVector&);
60 
61  double eM() const;
62  void setEM(double e);
63 
64  double hadr() const;
65  void setHadr(double e);
66 
67  double incidentEnergy() const;
68  void setIncidentEnergy(double e);
69 
70  int trackID() const;
71  void setTrackID(int i);
72 
73  uint32_t unitID() const;
74  void setUnitID(uint32_t i);
75 
76  double timeSlice() const;
77  void setTimeSlice(double d);
78  int timeSliceID() const;
79 
80  void addEnergyDeposit(double em, double hd);
81  void addEnergyDeposit(const PPSPixelG4Hit& aHit);
82 
83  double energyDeposit() const;
84 
85  float p() const;
86  float tof() const;
87  float energyLoss() const;
88  int particleType() const;
89 
90  void setP(float e);
91  void setTof(float e);
92  void setEnergyLoss(float e);
93  void setParticleType(short i);
94 
95  float thetaAtEntry() const;
96  float phiAtEntry() const;
97 
98  void setThetaAtEntry(float t);
99  void setPhiAtEntry(float f);
100  float px() const;
101  float py() const;
102  float pz() const;
103  float vPx() const;
104  float vPy() const;
105  float vPz() const;
106 
107  void setPx(float e);
108  void setPy(float e);
109  void setPz(float e);
110  void setVPx(float e);
111  void setVPy(float e);
112  void setVPz(float e);
113  float x() const;
114  float y() const;
115  float z() const;
116  void setX(float t);
117  void setY(float t);
118  void setZ(float t);
119 
120  int parentId() const;
121  float vx() const;
122  float vy() const;
123  float vz() const;
124 
125  void setParentId(int p);
126  void setVx(float p);
127  void setVy(float p);
128  void setVz(float p);
129 
130 private:
131  G4ThreeVector MeanPosition_;
132  double elem_; //EnergyDeposit of EM particles
133  double hadr_; //EnergyDeposit of HD particles
134  double theIncidentEnergy_; //Energy of the primary particle
135  int theTrackID_; //Identification number of the primary
136  //particle
137  uint32_t theUnitID_; //PPS Unit Number
138  double theTimeSlice_; //Time Slice Identification
139 
140  float theX_;
141  float theY_;
142  float theZ_;
143  float thePabs_;
144  float theTof_;
147 
150  G4ThreeVector theEntryPoint_;
151  G4ThreeVector theExitPoint_;
154  float theVx_;
155  float theVy_;
156  float theVz_;
157 };
158 
159 std::ostream& operator<<(std::ostream&, const PPSPixelG4Hit&);
160 
161 #endif
PPSPixelG4Hit::setX
void setX(float t)
Definition: PPSPixelG4Hit.cc:192
PPSPixelG4Hit::eM
double eM() const
Definition: PPSPixelG4Hit.cc:137
PPSPixelG4Hit::setTrackID
void setTrackID(int i)
Definition: PPSPixelG4Hit.cc:147
PPSPixelG4Hit::theEnergyLoss_
float theEnergyLoss_
Definition: PPSPixelG4Hit.h:145
PPSPixelG4Hit::setParentId
void setParentId(int p)
Definition: PPSPixelG4Hit.cc:201
PPSPixelG4Hit::theVPy_
float theVPy_
Definition: PPSPixelG4Hit.h:152
PPSPixelG4Hit::setTimeSlice
void setTimeSlice(double d)
Definition: PPSPixelG4Hit.cc:153
mps_fire.i
i
Definition: mps_fire.py:428
PPSPixelG4Hit::theVx_
float theVx_
Definition: PPSPixelG4Hit.h:154
PPSPixelG4Hit::~PPSPixelG4Hit
~PPSPixelG4Hit() override=default
PPSPixelG4Hit::setThetaAtEntry
void setThetaAtEntry(float t)
Definition: PPSPixelG4Hit.cc:188
PPSPixelG4Hit::setVz
void setVz(float p)
Definition: PPSPixelG4Hit.cc:210
PPSPixelG4Hit::theThetaAtEntry_
float theThetaAtEntry_
Definition: PPSPixelG4Hit.h:148
PPSPixelG4Hit::theUnitID_
uint32_t theUnitID_
Definition: PPSPixelG4Hit.h:137
PPSPixelG4Hit::theY_
float theY_
Definition: PPSPixelG4Hit.h:141
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
PPSPixelG4Hit::energyLoss
float energyLoss() const
Definition: PPSPixelG4Hit.cc:165
PPSPixelG4Hit
Definition: PPSPixelG4Hit.h:38
PPSPixelG4Hit::vz
float vz() const
Definition: PPSPixelG4Hit.cc:209
PPSPixelG4Hit::tof
float tof() const
Definition: PPSPixelG4Hit.cc:164
PPSPixelG4Hit::timeSlice
double timeSlice() const
Definition: PPSPixelG4Hit.cc:152
PPSPixelG4Hit::x
float x() const
Definition: PPSPixelG4Hit.cc:191
PPSPixelG4Hit::thetaAtEntry
float thetaAtEntry() const
Definition: PPSPixelG4Hit.cc:185
PPSPixelG4Hit::setPx
void setPx(float e)
Definition: PPSPixelG4Hit.cc:175
PPSPixelG4Hit::theVPz_
float theVPz_
Definition: PPSPixelG4Hit.h:152
PPSPixelG4Hit::theEntryPoint_
G4ThreeVector theEntryPoint_
Definition: PPSPixelG4Hit.h:150
PPSPixelG4Hit::setVPx
void setVPx(float e)
Definition: PPSPixelG4Hit.cc:178
PPSPixelG4Hit::MeanPosition_
G4ThreeVector MeanPosition_
Definition: PPSPixelG4Hit.h:131
PPSPixelG4Hit::setUnitID
void setUnitID(uint32_t i)
Definition: PPSPixelG4Hit.cc:150
PPSPixelG4Hit::setParticleType
void setParticleType(short i)
Definition: PPSPixelG4Hit.cc:183
PPSPixelG4Hit::vPy
float vPy() const
Definition: PPSPixelG4Hit.cc:171
PPSPixelG4Hit::setVy
void setVy(float p)
Definition: PPSPixelG4Hit.cc:207
PPSPixelG4Hit::theZ_
float theZ_
Definition: PPSPixelG4Hit.h:142
PPSPixelG4Hit::thePx_
float thePx_
Definition: PPSPixelG4Hit.h:152
PPSPixelG4Hit::pz
float pz() const
Definition: PPSPixelG4Hit.cc:169
PPSPixelG4Hit::theExitPoint_
G4ThreeVector theExitPoint_
Definition: PPSPixelG4Hit.h:151
PPSPixelG4Hit::theIncidentEnergy_
double theIncidentEnergy_
Definition: PPSPixelG4Hit.h:134
PPSPixelG4Hit::theVy_
float theVy_
Definition: PPSPixelG4Hit.h:155
PPSPixelG4Hit::exitPoint
const G4ThreeVector & exitPoint() const
Definition: PPSPixelG4Hit.cc:133
PPSPixelG4Hit::theTrackID_
int theTrackID_
Definition: PPSPixelG4Hit.h:135
PPSPixelG4Hit::unitID
uint32_t unitID() const
Definition: PPSPixelG4Hit.cc:149
PPSPixelG4Hit::theTof_
float theTof_
Definition: PPSPixelG4Hit.h:144
PPSPixelG4Hit::setEM
void setEM(double e)
Definition: PPSPixelG4Hit.cc:138
PPSPixelG4Hit::setZ
void setZ(float t)
Definition: PPSPixelG4Hit.cc:198
PPSPixelG4Hit::thePabs_
float thePabs_
Definition: PPSPixelG4Hit.h:143
PPSPixelG4Hit::setMeanPosition
void setMeanPosition(const G4ThreeVector &a)
Definition: PPSPixelG4Hit.h:54
PPSPixelG4Hit::setExitPoint
void setExitPoint(const G4ThreeVector &)
Definition: PPSPixelG4Hit.cc:135
PPSPixelG4Hit::thePhiAtEntry_
float thePhiAtEntry_
Definition: PPSPixelG4Hit.h:149
PPSPixelG4Hit::parentId
int parentId() const
Definition: PPSPixelG4Hit.cc:200
PPSPixelG4Hit::phiAtEntry
float phiAtEntry() const
Definition: PPSPixelG4Hit.cc:186
PPSPixelG4Hit::z
float z() const
Definition: PPSPixelG4Hit.cc:197
PPSPixelG4Hit::vPz
float vPz() const
Definition: PPSPixelG4Hit.cc:172
a
double a
Definition: hdecay.h:119
PPSPixelG4Hit::theTimeSlice_
double theTimeSlice_
Definition: PPSPixelG4Hit.h:138
PPSPixelG4Hit::py
float py() const
Definition: PPSPixelG4Hit.cc:168
PPSPixelG4Hit::particleType
int particleType() const
Definition: PPSPixelG4Hit.cc:166
PPSPixelG4Hit::setIncidentEnergy
void setIncidentEnergy(double e)
Definition: PPSPixelG4Hit.cc:144
PPSPixelG4Hit::timeSliceID
int timeSliceID() const
Definition: PPSPixelG4Hit.cc:154
PPSPixelG4Hit::thePy_
float thePy_
Definition: PPSPixelG4Hit.h:152
PPSPixelG4Hit::addEnergyDeposit
void addEnergyDeposit(double em, double hd)
Definition: PPSPixelG4Hit.cc:156
PPSPixelG4Hit::setEnergyLoss
void setEnergyLoss(float e)
Definition: PPSPixelG4Hit.cc:182
PPSPixelG4Hit::theVz_
float theVz_
Definition: PPSPixelG4Hit.h:156
PPSPixelG4Hit::operator=
const PPSPixelG4Hit & operator=(const PPSPixelG4Hit &right)
Definition: PPSPixelG4Hit.cc:87
PPSPixelG4Hit::meanPosition
const G4ThreeVector & meanPosition() const
Definition: PPSPixelG4Hit.h:53
PPSPixelG4Hit::p
float p() const
Definition: PPSPixelG4Hit.cc:163
PPSPixelG4Hit::incidentEnergy
double incidentEnergy() const
Definition: PPSPixelG4Hit.cc:143
PPSPixelG4Hit::entryPoint
const G4ThreeVector & entryPoint() const
Definition: PPSPixelG4Hit.cc:129
PPSPixelG4Hit::theParentId_
int theParentId_
Definition: PPSPixelG4Hit.h:153
PPSPixelG4Hit::setY
void setY(float t)
Definition: PPSPixelG4Hit.cc:195
PPSPixelG4Hit::setHadr
void setHadr(double e)
Definition: PPSPixelG4Hit.cc:141
operator<<
std::ostream & operator<<(std::ostream &, const PPSPixelG4Hit &)
Definition: PPSPixelG4Hit.cc:212
PPSPixelG4Hit::px
float px() const
Definition: PPSPixelG4Hit.cc:167
PPSPixelG4Hit::hadr_
double hadr_
Definition: PPSPixelG4Hit.h:133
PPSPixelG4Hit::setPy
void setPy(float e)
Definition: PPSPixelG4Hit.cc:176
PPSPixelG4Hit::setVPy
void setVPy(float e)
Definition: PPSPixelG4Hit.cc:179
PPSPixelG4Hit::elem_
double elem_
Definition: PPSPixelG4Hit.h:132
PPSPixelG4Hit::trackID
int trackID() const
Definition: PPSPixelG4Hit.cc:146
PPSPixelG4Hit::setP
void setP(float e)
Definition: PPSPixelG4Hit.cc:174
PPSPixelG4Hit::theParticleType_
int theParticleType_
Definition: PPSPixelG4Hit.h:146
PPSPixelG4Hit::vx
float vx() const
Definition: PPSPixelG4Hit.cc:203
PPSPixelG4Hit::setTof
void setTof(float e)
Definition: PPSPixelG4Hit.cc:181
PPSPixelG4Hit::Print
void Print() override
Definition: PPSPixelG4Hit.cc:127
PPSPixelG4Hit::y
float y() const
Definition: PPSPixelG4Hit.cc:194
ztail.d
d
Definition: ztail.py:151
PPSPixelG4Hit::hadr
double hadr() const
Definition: PPSPixelG4Hit.cc:140
PPSPixelG4Hit::setEntryPoint
void setEntryPoint(const G4ThreeVector &)
Definition: PPSPixelG4Hit.cc:131
PPSPixelG4Hit::theVPx_
float theVPx_
Definition: PPSPixelG4Hit.h:152
PPSPixelG4Hit::setPz
void setPz(float e)
Definition: PPSPixelG4Hit.cc:177
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
PPSPixelG4Hit::theX_
float theX_
Definition: PPSPixelG4Hit.h:140
PPSPixelG4Hit::thePz_
float thePz_
Definition: PPSPixelG4Hit.h:152
PPSPixelG4Hit::vPx
float vPx() const
Definition: PPSPixelG4Hit.cc:170
PPSPixelG4Hit::energyDeposit
double energyDeposit() const
Definition: PPSPixelG4Hit.cc:161
PPSPixelG4Hit::PPSPixelG4Hit
PPSPixelG4Hit()
Definition: PPSPixelG4Hit.cc:24
PPSPixelG4Hit::operator==
int operator==(const PPSPixelG4Hit &)
Definition: PPSPixelG4Hit.h:47
PPSPixelG4Hit::setVPz
void setVPz(float e)
Definition: PPSPixelG4Hit.cc:180
PPSPixelG4Hit::setPhiAtEntry
void setPhiAtEntry(float f)
Definition: PPSPixelG4Hit.cc:189
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
PPSPixelG4Hit::setVx
void setVx(float p)
Definition: PPSPixelG4Hit.cc:204
PPSPixelG4Hit::Draw
void Draw() override
Definition: PPSPixelG4Hit.h:50
PPSPixelG4Hit::vy
float vy() const
Definition: PPSPixelG4Hit.cc:206