CMS 3D CMS Logo

PPSDiamondG4Hit.h
Go to the documentation of this file.
1 // Author
3 // Seyed Mohsen Etesami setesami@cern.ch
4 // Feb 2016
6 #ifndef PPS_PPSDiamondG4Hit_h
7 #define PPS_PPSDiamondG4Hit_h
8 
9 #include "G4VHit.hh"
10 #include "G4ThreeVector.hh"
11 #include <iostream>
12 
13 class PPSDiamondG4Hit : public G4VHit {
14 public:
16  ~PPSDiamondG4Hit() override;
17  PPSDiamondG4Hit(const PPSDiamondG4Hit &right);
18  const PPSDiamondG4Hit &operator=(const PPSDiamondG4Hit &right);
19  int operator==(const PPSDiamondG4Hit &) { return 0; }
20 
21  void Draw() override {}
22  void Print() override;
23 
24 public:
25  const G4ThreeVector &entry() const;
26  void setEntry(const G4ThreeVector &xyz);
27  const G4ThreeVector &exit() const;
28  void setExit(const G4ThreeVector &xyz);
29 
30  void setLocalEntry(const G4ThreeVector &theLocalEntryPoint);
31  void setLocalExit(const G4ThreeVector &theLocalExitPoint);
32  const G4ThreeVector &localEntry() const;
33  const G4ThreeVector &localExit() const;
34 
35  double incidentEnergy() const;
36  void setIncidentEnergy(double e);
37 
38  unsigned int trackID() const;
39  void setTrackID(int i);
40 
41  int unitID() const;
42  void setUnitID(unsigned int i);
43 
44  double timeSlice() const;
45  void setTimeSlice(double d);
46  int timeSliceID() const;
47 
48  double p() const;
49  double tof() const;
50  double energyLoss() const;
51  int particleType() const;
52 
53  void setP(double e);
54  void setTof(double e);
55  void setEnergyLoss(double e);
56  void setParticleType(short i);
57 
58  void addEnergyLoss(double e);
59 
60  double thetaAtEntry() const;
61  double phiAtEntry() const;
62 
63  void setThetaAtEntry(double t);
64  void setPhiAtEntry(double f);
65 
66  double x() const;
67  double y() const;
68  double z() const;
69 
70  void setX(double t);
71  void setY(double t);
72  void setZ(double t);
73 
74  int parentId() const;
75  double vx() const;
76  double vy() const;
77  double vz() const;
78 
79  void setParentId(int p);
80  void setVx(double p);
81  void setVy(double p);
82  void setVz(double p);
83 
84  void setPx(double p);
85  void setPy(double p);
86  void setPz(double p);
87  double px() const;
88  double py() const;
89  double pz() const;
90 
91  double globalTimehit() const;
92  void setGlobalTimehit(double h);
93 
94 private:
95  G4ThreeVector entry_; //Entry point
96  G4ThreeVector exit_; //Exit point
97  G4ThreeVector local_entry_; //local entry point
98  G4ThreeVector local_exit_; //local exit point
99  double theIncidentEnergy_; //Energy of the primary particle
100  int theTrackID_; //Identification number of the primary particle
101  uint32_t theUnitID_; //PPS DetectorId
102  double theTimeSlice_; //Time Slice Identification
104  double theX_;
105  double theY_;
106  double theZ_;
107  double thePabs_;
108  double theTof_;
112  double theVx_;
113  double theVy_;
114  double theVz_;
115  double thePx_;
116  double thePy_;
117  double thePz_;
120 };
121 
122 std::ostream &operator<<(std::ostream &, const PPSDiamondG4Hit &);
123 
124 #endif //PPSDiamondG4Hit_h
PPSDiamondG4Hit::thetaAtEntry
double thetaAtEntry() const
Definition: PPSDiamondG4Hit.cc:127
PPSDiamondG4Hit::entry
const G4ThreeVector & entry() const
Definition: PPSDiamondG4Hit.cc:92
PPSDiamondG4Hit::setTimeSlice
void setTimeSlice(double d)
Definition: PPSDiamondG4Hit.cc:113
PPSDiamondG4Hit::setTof
void setTof(double e)
Definition: PPSDiamondG4Hit.cc:122
PPSDiamondG4Hit::theZ_
double theZ_
Definition: PPSDiamondG4Hit.h:106
mps_fire.i
i
Definition: mps_fire.py:428
PPSDiamondG4Hit::setVz
void setVz(double p)
Definition: PPSDiamondG4Hit.cc:152
PPSDiamondG4Hit::z
double z() const
Definition: PPSDiamondG4Hit.cc:139
PPSDiamondG4Hit::energyLoss
double energyLoss() const
Definition: PPSDiamondG4Hit.cc:118
PPSDiamondG4Hit::theTof_
double theTof_
Definition: PPSDiamondG4Hit.h:108
PPSDiamondG4Hit::globalTimehit
double globalTimehit() const
Definition: PPSDiamondG4Hit.cc:162
PPSDiamondG4Hit::x
double x() const
Definition: PPSDiamondG4Hit.cc:133
PPSDiamondG4Hit::theY_
double theY_
Definition: PPSDiamondG4Hit.h:105
PPSDiamondG4Hit::theParticleType_
int theParticleType_
Definition: PPSDiamondG4Hit.h:110
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
PPSDiamondG4Hit::theVx_
double theVx_
Definition: PPSDiamondG4Hit.h:112
PPSDiamondG4Hit::theParentId_
int theParentId_
Definition: PPSDiamondG4Hit.h:111
PPSDiamondG4Hit::trackID
unsigned int trackID() const
Definition: PPSDiamondG4Hit.cc:106
PPSDiamondG4Hit::unitID
int unitID() const
Definition: PPSDiamondG4Hit.cc:109
PPSDiamondG4Hit::theVy_
double theVy_
Definition: PPSDiamondG4Hit.h:113
PPSDiamondG4Hit::thePz_
double thePz_
Definition: PPSDiamondG4Hit.h:117
PPSDiamondG4Hit::exit_
G4ThreeVector exit_
Definition: PPSDiamondG4Hit.h:96
PPSDiamondG4Hit::thePy_
double thePy_
Definition: PPSDiamondG4Hit.h:116
PPSDiamondG4Hit::vz
double vz() const
Definition: PPSDiamondG4Hit.cc:151
PPSDiamondG4Hit::p
double p() const
Definition: PPSDiamondG4Hit.cc:116
PPSDiamondG4Hit::theTimeSlice_
double theTimeSlice_
Definition: PPSDiamondG4Hit.h:102
PPSDiamondG4Hit::setEnergyLoss
void setEnergyLoss(double e)
Definition: PPSDiamondG4Hit.cc:123
PPSDiamondG4Hit::thePhiAtEntry_
double thePhiAtEntry_
Definition: PPSDiamondG4Hit.h:119
PPSDiamondG4Hit::px
double px() const
Definition: PPSDiamondG4Hit.cc:158
PPSDiamondG4Hit::setVx
void setVx(double p)
Definition: PPSDiamondG4Hit.cc:146
PPSDiamondG4Hit::localEntry
const G4ThreeVector & localEntry() const
Definition: PPSDiamondG4Hit.cc:98
PPSDiamondG4Hit::theIncidentEnergy_
double theIncidentEnergy_
Definition: PPSDiamondG4Hit.h:99
PPSDiamondG4Hit::setParentId
void setParentId(int p)
Definition: PPSDiamondG4Hit.cc:143
PPSDiamondG4Hit::localExit
const G4ThreeVector & localExit() const
Definition: PPSDiamondG4Hit.cc:100
PPSDiamondG4Hit::tof
double tof() const
Definition: PPSDiamondG4Hit.cc:117
PPSDiamondG4Hit::local_exit_
G4ThreeVector local_exit_
Definition: PPSDiamondG4Hit.h:98
PPSDiamondG4Hit::Draw
void Draw() override
Definition: PPSDiamondG4Hit.h:21
PPSDiamondG4Hit::setExit
void setExit(const G4ThreeVector &xyz)
Definition: PPSDiamondG4Hit.cc:96
PPSDiamondG4Hit::local_entry_
G4ThreeVector local_entry_
Definition: PPSDiamondG4Hit.h:97
PPSDiamondG4Hit::timeSlice
double timeSlice() const
Definition: PPSDiamondG4Hit.cc:112
h
PPSDiamondG4Hit::theGlobaltimehit_
double theGlobaltimehit_
Definition: PPSDiamondG4Hit.h:103
PPSDiamondG4Hit::y
double y() const
Definition: PPSDiamondG4Hit.cc:136
PPSDiamondG4Hit::theX_
double theX_
Definition: PPSDiamondG4Hit.h:104
PPSDiamondG4Hit::phiAtEntry
double phiAtEntry() const
Definition: PPSDiamondG4Hit.cc:128
PPSDiamondG4Hit::pz
double pz() const
Definition: PPSDiamondG4Hit.cc:160
PPSDiamondG4Hit::operator==
int operator==(const PPSDiamondG4Hit &)
Definition: PPSDiamondG4Hit.h:19
PPSDiamondG4Hit::setY
void setY(double t)
Definition: PPSDiamondG4Hit.cc:137
PPSDiamondG4Hit::~PPSDiamondG4Hit
~PPSDiamondG4Hit() override
Definition: PPSDiamondG4Hit.cc:30
PPSDiamondG4Hit::setX
void setX(double t)
Definition: PPSDiamondG4Hit.cc:134
PPSDiamondG4Hit::operator=
const PPSDiamondG4Hit & operator=(const PPSDiamondG4Hit &right)
Definition: PPSDiamondG4Hit.cc:60
PPSDiamondG4Hit::setEntry
void setEntry(const G4ThreeVector &xyz)
Definition: PPSDiamondG4Hit.cc:93
PPSDiamondG4Hit::theEnergyLoss_
double theEnergyLoss_
Definition: PPSDiamondG4Hit.h:109
PPSDiamondG4Hit::vx
double vx() const
Definition: PPSDiamondG4Hit.cc:145
PPSDiamondG4Hit::PPSDiamondG4Hit
PPSDiamondG4Hit()
Definition: PPSDiamondG4Hit.cc:8
PPSDiamondG4Hit::setLocalEntry
void setLocalEntry(const G4ThreeVector &theLocalEntryPoint)
Definition: PPSDiamondG4Hit.cc:99
PPSDiamondG4Hit
Definition: PPSDiamondG4Hit.h:13
PPSDiamondG4Hit::setTrackID
void setTrackID(int i)
Definition: PPSDiamondG4Hit.cc:107
PPSDiamondG4Hit::setP
void setP(double e)
Definition: PPSDiamondG4Hit.cc:121
PPSDiamondG4Hit::setThetaAtEntry
void setThetaAtEntry(double t)
Definition: PPSDiamondG4Hit.cc:130
PPSDiamondG4Hit::py
double py() const
Definition: PPSDiamondG4Hit.cc:159
PPSDiamondG4Hit::setUnitID
void setUnitID(unsigned int i)
Definition: PPSDiamondG4Hit.cc:110
PPSDiamondG4Hit::setIncidentEnergy
void setIncidentEnergy(double e)
Definition: PPSDiamondG4Hit.cc:104
PPSDiamondG4Hit::setPy
void setPy(double p)
Definition: PPSDiamondG4Hit.cc:155
PPSDiamondG4Hit::addEnergyLoss
void addEnergyLoss(double e)
Definition: PPSDiamondG4Hit.cc:124
PPSDiamondG4Hit::timeSliceID
int timeSliceID() const
Definition: PPSDiamondG4Hit.cc:114
PPSDiamondG4Hit::particleType
int particleType() const
Definition: PPSDiamondG4Hit.cc:119
PPSDiamondG4Hit::setParticleType
void setParticleType(short i)
Definition: PPSDiamondG4Hit.cc:125
PPSDiamondG4Hit::theUnitID_
uint32_t theUnitID_
Definition: PPSDiamondG4Hit.h:101
PPSDiamondG4Hit::theThetaAtEntry_
double theThetaAtEntry_
Definition: PPSDiamondG4Hit.h:118
PPSDiamondG4Hit::setZ
void setZ(double t)
Definition: PPSDiamondG4Hit.cc:140
PPSDiamondG4Hit::incidentEnergy
double incidentEnergy() const
Definition: PPSDiamondG4Hit.cc:103
PPSDiamondG4Hit::exit
const G4ThreeVector & exit() const
Definition: PPSDiamondG4Hit.cc:95
PPSDiamondG4Hit::setPz
void setPz(double p)
Definition: PPSDiamondG4Hit.cc:156
operator<<
std::ostream & operator<<(std::ostream &, const PPSDiamondG4Hit &)
Definition: PPSDiamondG4Hit.cc:165
PPSDiamondG4Hit::thePabs_
double thePabs_
Definition: PPSDiamondG4Hit.h:107
PPSDiamondG4Hit::thePx_
double thePx_
Definition: PPSDiamondG4Hit.h:115
ztail.d
d
Definition: ztail.py:151
PPSDiamondG4Hit::Print
void Print() override
Definition: PPSDiamondG4Hit.cc:90
PPSDiamondG4Hit::theVz_
double theVz_
Definition: PPSDiamondG4Hit.h:114
PPSDiamondG4Hit::parentId
int parentId() const
Definition: PPSDiamondG4Hit.cc:142
PPSDiamondG4Hit::setPx
void setPx(double p)
Definition: PPSDiamondG4Hit.cc:154
PPSDiamondG4Hit::vy
double vy() const
Definition: PPSDiamondG4Hit.cc:148
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
PPSDiamondG4Hit::entry_
G4ThreeVector entry_
Definition: PPSDiamondG4Hit.h:95
PPSDiamondG4Hit::setLocalExit
void setLocalExit(const G4ThreeVector &theLocalExitPoint)
Definition: PPSDiamondG4Hit.cc:101
PPSDiamondG4Hit::setPhiAtEntry
void setPhiAtEntry(double f)
Definition: PPSDiamondG4Hit.cc:131
PPSDiamondG4Hit::setVy
void setVy(double p)
Definition: PPSDiamondG4Hit.cc:149
PPSDiamondG4Hit::theTrackID_
int theTrackID_
Definition: PPSDiamondG4Hit.h:100
PPSDiamondG4Hit::setGlobalTimehit
void setGlobalTimehit(double h)
Definition: PPSDiamondG4Hit.cc:163
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37