CMS 3D CMS Logo

PPSDiamondG4Hit.cc
Go to the documentation of this file.
1 // Author
2 //Seyed Mohsen Etesami setesami@cern.ch
5 
6 #include <iostream>
7 
8 PPSDiamondG4Hit::PPSDiamondG4Hit() : entry_(0), exit_(0), local_entry_(0), local_exit_(0) {
9  theIncidentEnergy_ = 0.0;
10  theTrackID_ = -1;
11  theUnitID_ = 0;
12  theTimeSlice_ = 0.0;
13  theGlobaltimehit_ = 0.0;
14  theX_ = 0.0;
15  theY_ = 0.0;
16  theZ_ = 0.0;
17  thePabs_ = 0.0;
18  theTof_ = 0.0;
19  theEnergyLoss_ = 0.0;
20  theParticleType_ = 0;
21  theParentId_ = 0;
22  theVx_ = 0.0;
23  theVy_ = 0.0;
24  theVz_ = 0.0;
25  thePx_ = thePy_ = thePz_ = 0.0;
26  theThetaAtEntry_ = 0;
27  thePhiAtEntry_ = 0;
28 }
29 
31 
33  entry_ = right.entry_;
34  exit_ = right.exit_;
35  local_entry_ = right.local_entry_;
36  local_exit_ = right.local_exit_;
38  theTrackID_ = right.theTrackID_;
39  theUnitID_ = right.theUnitID_;
42  theX_ = right.theX_;
43  theY_ = right.theY_;
44  theZ_ = right.theZ_;
45  thePabs_ = right.thePabs_;
46  theTof_ = right.theTof_;
49  theParentId_ = right.theParentId_;
50  theVx_ = right.theVx_;
51  theVy_ = right.theVy_;
52  theVz_ = right.theVz_;
53  thePx_ = right.thePx_;
54  thePy_ = right.thePy_;
55  thePz_ = right.thePz_;
58 }
59 
61  entry_ = right.entry_;
62  exit_ = right.exit_;
63  local_entry_ = right.local_entry_;
64  local_exit_ = right.local_exit_;
66  theTrackID_ = right.theTrackID_;
67  theUnitID_ = right.theUnitID_;
70  theX_ = right.theX_;
71  theY_ = right.theY_;
72  theZ_ = right.theZ_;
73  thePabs_ = right.thePabs_;
74  theTof_ = right.theTof_;
77  theParentId_ = right.theParentId_;
78  theVx_ = right.theVx_;
79  theVy_ = right.theVy_;
80  theVz_ = right.theVz_;
81  thePx_ = right.thePx_;
82  thePy_ = right.thePy_;
83  thePz_ = right.thePz_;
86 
87  return *this;
88 }
89 
90 void PPSDiamondG4Hit::Print() { edm::LogInfo("PPSSimDiamond") << (*this); }
91 
92 const G4ThreeVector& PPSDiamondG4Hit::entry() const { return entry_; }
93 void PPSDiamondG4Hit::setEntry(const G4ThreeVector& xyz) { entry_ = xyz; }
94 
95 const G4ThreeVector& PPSDiamondG4Hit::exit() const { return exit_; }
96 void PPSDiamondG4Hit::setExit(const G4ThreeVector& xyz) { exit_ = xyz; }
97 
98 const G4ThreeVector& PPSDiamondG4Hit::localEntry() const { return local_entry_; }
99 void PPSDiamondG4Hit::setLocalEntry(const G4ThreeVector& xyz) { local_entry_ = xyz; }
100 const G4ThreeVector& PPSDiamondG4Hit::localExit() const { return local_exit_; }
101 void PPSDiamondG4Hit::setLocalExit(const G4ThreeVector& xyz) { local_exit_ = xyz; }
102 
105 
106 unsigned int PPSDiamondG4Hit::trackID() const { return theTrackID_; }
108 
109 int PPSDiamondG4Hit::unitID() const { return theUnitID_; }
110 void PPSDiamondG4Hit::setUnitID(unsigned int i) { theUnitID_ = i; }
111 
112 double PPSDiamondG4Hit::timeSlice() const { return theTimeSlice_; }
114 int PPSDiamondG4Hit::timeSliceID() const { return (int)theTimeSlice_; }
115 
116 double PPSDiamondG4Hit::p() const { return thePabs_; }
117 double PPSDiamondG4Hit::tof() const { return theTof_; }
118 double PPSDiamondG4Hit::energyLoss() const { return theEnergyLoss_; }
120 
121 void PPSDiamondG4Hit::setP(double e) { thePabs_ = e; }
122 void PPSDiamondG4Hit::setTof(double e) { theTof_ = e; }
126 
128 double PPSDiamondG4Hit::phiAtEntry() const { return thePhiAtEntry_; }
129 
132 
133 double PPSDiamondG4Hit::x() const { return theX_; }
134 void PPSDiamondG4Hit::setX(double t) { theX_ = t; }
135 
136 double PPSDiamondG4Hit::y() const { return theY_; }
137 void PPSDiamondG4Hit::setY(double t) { theY_ = t; }
138 
139 double PPSDiamondG4Hit::z() const { return theZ_; }
140 void PPSDiamondG4Hit::setZ(double t) { theZ_ = t; }
141 
144 
145 double PPSDiamondG4Hit::vx() const { return theVx_; }
146 void PPSDiamondG4Hit::setVx(double t) { theVx_ = t; }
147 
148 double PPSDiamondG4Hit::vy() const { return theVy_; }
149 void PPSDiamondG4Hit::setVy(double t) { theVy_ = t; }
150 
151 double PPSDiamondG4Hit::vz() const { return theVz_; }
152 void PPSDiamondG4Hit::setVz(double t) { theVz_ = t; }
153 
154 void PPSDiamondG4Hit::setPx(double p) { thePx_ = p; }
155 void PPSDiamondG4Hit::setPy(double p) { thePy_ = p; }
156 void PPSDiamondG4Hit::setPz(double p) { thePz_ = p; }
157 
158 double PPSDiamondG4Hit::px() const { return thePx_; }
159 double PPSDiamondG4Hit::py() const { return thePy_; }
160 double PPSDiamondG4Hit::pz() const { return thePz_; }
161 
164 
165 std::ostream& operator<<(std::ostream& os, const PPSDiamondG4Hit& hit) {
166  os << " Data of this PPSDiamondG4Hit are:" << std::endl
167  << " Time slice ID: " << hit.timeSliceID() << std::endl
168  << " EnergyDeposit = " << hit.energyLoss() << std::endl
169  << " Energy of primary particle (ID = " << hit.trackID() << ") = " << hit.incidentEnergy() << " (MeV)"
170  << "\n"
171  << " Local entry and exit points in PPS unit number " << hit.unitID() << " are: " << hit.entry() << " (mm)"
172  << hit.exit() << " (mm)"
173  << "\n"
174  << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << std::endl;
175  return os;
176 }
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
MessageLogger.h
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
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
h
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
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.h
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::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
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
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
operator<<
std::ostream & operator<<(std::ostream &os, const PPSDiamondG4Hit &hit)
Definition: PPSDiamondG4Hit.cc:165
PPSDiamondG4Hit::setPz
void setPz(double p)
Definition: PPSDiamondG4Hit.cc:156
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
hit
Definition: SiStripHitEffFromCalibTree.cc:88
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37