CMS 3D CMS Logo

TotemRPG4Hit.cc
Go to the documentation of this file.
1 // Date: 11.10.02
2 // Description: Transient Hit class for the calorimeters
5 #include <iostream>
6 
8  theIncidentEnergy_ = 0.0;
9  theTrackID_ = -1;
10  theUnitID_ = 0;
11  theTimeSlice_ = 0.0;
12 
13  thePabs_ = 0.0;
14  theTof_ = 0.0;
15  theEnergyLoss_ = 0.0;
16  theParticleType_ = 0;
17  theX_ = 0.0;
18  theY_ = 0.0;
19  theZ_ = 0.0;
20  theParentId_ = 0;
21  theVx_ = 0.0;
22  theVy_ = 0.0;
23  theVz_ = 0.0;
24  thePx_ = thePy_ = thePz_ = 0.0;
25 }
26 
29  theTrackID_ = right.theTrackID_;
30  theUnitID_ = right.theUnitID_;
32  entry_ = right.entry_;
33 
34  thePabs_ = right.thePabs_;
35  theTof_ = right.theTof_;
38  theX_ = right.theX_;
39  theY_ = right.theY_;
40  theZ_ = right.theZ_;
41 
42  theVx_ = right.theVx_;
43  theVy_ = right.theVy_;
44  theVz_ = right.theVz_;
45 
46  theParentId_ = right.theParentId_;
47 }
48 
51  theTrackID_ = right.theTrackID_;
52  theUnitID_ = right.theUnitID_;
54  entry_ = right.entry_;
55 
56  thePabs_ = right.thePabs_;
57  theTof_ = right.theTof_;
60  theX_ = right.theX_;
61  theY_ = right.theY_;
62  theZ_ = right.theZ_;
63 
64  theVx_ = right.theVx_;
65  theVy_ = right.theVy_;
66  theVz_ = right.theVz_;
67 
68  theParentId_ = right.theParentId_;
69 
70  return *this;
71 }
72 
73 void TotemRPG4Hit::Print() { edm::LogInfo("TotemRP") << (*this); }
74 
75 G4ThreeVector TotemRPG4Hit::entry() const { return entry_; }
76 void TotemRPG4Hit::setEntry(G4ThreeVector xyz) { entry_ = xyz; }
77 
78 G4ThreeVector TotemRPG4Hit::exit() const { return exit_; }
79 void TotemRPG4Hit::setExit(G4ThreeVector xyz) { exit_ = xyz; }
80 
81 G4ThreeVector TotemRPG4Hit::localEntry() const { return local_entry_; }
82 void TotemRPG4Hit::setLocalEntry(const G4ThreeVector& xyz) { local_entry_ = xyz; }
83 G4ThreeVector TotemRPG4Hit::localExit() const { return local_exit_; }
84 void TotemRPG4Hit::setLocalExit(const G4ThreeVector& xyz) { local_exit_ = xyz; }
85 
88 
89 unsigned int TotemRPG4Hit::trackID() const { return theTrackID_; }
91 
92 int TotemRPG4Hit::unitID() const { return theUnitID_; }
93 void TotemRPG4Hit::setUnitID(unsigned int i) { theUnitID_ = i; }
94 
95 double TotemRPG4Hit::timeSlice() const { return theTimeSlice_; }
97 int TotemRPG4Hit::timeSliceID() const { return (int)theTimeSlice_; }
98 
99 double TotemRPG4Hit::p() const { return thePabs_; }
100 double TotemRPG4Hit::tof() const { return theTof_; }
101 double TotemRPG4Hit::energyLoss() const { return theEnergyLoss_; }
103 
104 void TotemRPG4Hit::setP(double e) { thePabs_ = e; }
105 void TotemRPG4Hit::setTof(double e) { theTof_ = e; }
109 
111 double TotemRPG4Hit::phiAtEntry() const { return thePhiAtEntry_; }
112 
115 
116 double TotemRPG4Hit::x() const { return theX_; }
117 void TotemRPG4Hit::setX(double t) { theX_ = t; }
118 
119 double TotemRPG4Hit::y() const { return theY_; }
120 void TotemRPG4Hit::setY(double t) { theY_ = t; }
121 
122 double TotemRPG4Hit::z() const { return theZ_; }
123 void TotemRPG4Hit::setZ(double t) { theZ_ = t; }
124 
125 int TotemRPG4Hit::parentId() const { return theParentId_; }
127 
128 double TotemRPG4Hit::vx() const { return theVx_; }
129 void TotemRPG4Hit::setVx(double t) { theVx_ = t; }
130 
131 double TotemRPG4Hit::vy() const { return theVy_; }
132 void TotemRPG4Hit::setVy(double t) { theVy_ = t; }
133 
134 double TotemRPG4Hit::vz() const { return theVz_; }
135 void TotemRPG4Hit::setVz(double t) { theVz_ = t; }
136 
137 void TotemRPG4Hit::setPx(double p) { thePx_ = p; }
138 void TotemRPG4Hit::setPy(double p) { thePy_ = p; }
139 void TotemRPG4Hit::setPz(double p) { thePz_ = p; }
140 
141 double TotemRPG4Hit::px() const { return thePx_; }
142 double TotemRPG4Hit::py() const { return thePy_; }
143 double TotemRPG4Hit::pz() const { return thePz_; }
144 
145 std::ostream& operator<<(std::ostream& os, const TotemRPG4Hit& hit) {
146  os << " Data of this TotemRPG4Hit are:" << std::endl
147  << " Time slice ID: " << hit.timeSliceID() << std::endl
148  << " EnergyDeposit = " << hit.energyLoss() << std::endl
149  << " Energy of primary particle (ID = " << hit.trackID() << ") = " << hit.incidentEnergy() << " (MeV)" << std::endl
150  << " Entry point in Totem unit number " << hit.unitID() << " is: " << hit.entry() << " (mm)" << std::endl;
151  os << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << std::endl;
152  return os;
153 }
TotemRPG4Hit::setExit
void setExit(G4ThreeVector xyz)
Definition: TotemRPG4Hit.cc:79
TotemRPG4Hit::addEnergyLoss
void addEnergyLoss(double e)
Definition: TotemRPG4Hit.cc:107
TotemRPG4Hit::py
double py() const
Definition: TotemRPG4Hit.cc:142
mps_fire.i
i
Definition: mps_fire.py:428
TotemRPG4Hit::setVy
void setVy(double p)
Definition: TotemRPG4Hit.cc:132
TotemRPG4Hit::setParticleType
void setParticleType(short i)
Definition: TotemRPG4Hit.cc:108
MessageLogger.h
TotemRPG4Hit::theVz_
double theVz_
Definition: TotemRPG4Hit.h:135
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
TotemRPG4Hit::setZ
void setZ(double t)
Definition: TotemRPG4Hit.cc:123
TotemRPG4Hit::theParticleType_
int theParticleType_
Definition: TotemRPG4Hit.h:125
TotemRPG4Hit::thetaAtEntry
double thetaAtEntry() const
Definition: TotemRPG4Hit.cc:110
TotemRPG4Hit::localExit
G4ThreeVector localExit() const
Definition: TotemRPG4Hit.cc:83
TotemRPG4Hit::vz
double vz() const
Definition: TotemRPG4Hit.cc:134
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
TotemRPG4Hit::timeSlice
double timeSlice() const
Definition: TotemRPG4Hit.cc:95
TotemRPG4Hit::theTof_
double theTof_
Definition: TotemRPG4Hit.h:123
operator<<
std::ostream & operator<<(std::ostream &os, const TotemRPG4Hit &hit)
Definition: TotemRPG4Hit.cc:145
TotemRPG4Hit::localEntry
G4ThreeVector localEntry() const
Definition: TotemRPG4Hit.cc:81
TotemRPG4Hit::setTrackID
void setTrackID(int i)
Definition: TotemRPG4Hit.cc:90
TotemRPG4Hit::local_exit_
G4ThreeVector local_exit_
Definition: TotemRPG4Hit.h:112
TotemRPG4Hit::setX
void setX(double t)
Definition: TotemRPG4Hit.cc:117
TotemRPG4Hit::setThetaAtEntry
void setThetaAtEntry(double t)
Definition: TotemRPG4Hit.cc:113
TotemRPG4Hit::setTof
void setTof(double e)
Definition: TotemRPG4Hit.cc:105
TotemRPG4Hit::theIncidentEnergy_
double theIncidentEnergy_
Definition: TotemRPG4Hit.h:113
TotemRPG4Hit::theY_
double theY_
Definition: TotemRPG4Hit.h:120
TotemRPG4Hit::exit
G4ThreeVector exit() const
Definition: TotemRPG4Hit.cc:78
TotemRPG4Hit::setLocalEntry
void setLocalEntry(const G4ThreeVector &theLocalEntryPoint)
Definition: TotemRPG4Hit.cc:82
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
TotemRPG4Hit::tof
double tof() const
Definition: TotemRPG4Hit.cc:100
TotemRPG4Hit::setVz
void setVz(double p)
Definition: TotemRPG4Hit.cc:135
TotemRPG4Hit::theThetaAtEntry_
double theThetaAtEntry_
Definition: TotemRPG4Hit.h:127
TotemRPG4Hit::vx
double vx() const
Definition: TotemRPG4Hit.cc:128
TotemRPG4Hit::thePz_
double thePz_
Definition: TotemRPG4Hit.h:137
TotemRPG4Hit::px
double px() const
Definition: TotemRPG4Hit.cc:141
TotemRPG4Hit::setPhiAtEntry
void setPhiAtEntry(double f)
Definition: TotemRPG4Hit.cc:114
TotemRPG4Hit::incidentEnergy
double incidentEnergy() const
Definition: TotemRPG4Hit.cc:86
TotemRPG4Hit::timeSliceID
int timeSliceID() const
Definition: TotemRPG4Hit.cc:97
TotemRPG4Hit::theUnitID_
uint32_t theUnitID_
Definition: TotemRPG4Hit.h:116
TotemRPG4Hit::z
double z() const
Definition: TotemRPG4Hit.cc:122
TotemRPG4Hit
Definition: TotemRPG4Hit.h:30
TotemRPG4Hit::setPx
void setPx(double p)
Definition: TotemRPG4Hit.cc:137
TotemRPG4Hit::thePhiAtEntry_
double thePhiAtEntry_
Definition: TotemRPG4Hit.h:128
TotemRPG4Hit::unitID
int unitID() const
Definition: TotemRPG4Hit.cc:92
TotemRPG4Hit::thePy_
double thePy_
Definition: TotemRPG4Hit.h:137
TotemRPG4Hit::setEntry
void setEntry(G4ThreeVector xyz)
Definition: TotemRPG4Hit.cc:76
TotemRPG4Hit::setEnergyLoss
void setEnergyLoss(double e)
Definition: TotemRPG4Hit.cc:106
TotemRPG4Hit::setTimeSlice
void setTimeSlice(double d)
Definition: TotemRPG4Hit.cc:96
TotemRPG4Hit::theVx_
double theVx_
Definition: TotemRPG4Hit.h:133
TotemRPG4Hit::local_entry_
G4ThreeVector local_entry_
Definition: TotemRPG4Hit.h:111
TotemRPG4Hit.h
TotemRPG4Hit::theTimeSlice_
double theTimeSlice_
Definition: TotemRPG4Hit.h:117
TotemRPG4Hit::x
double x() const
Definition: TotemRPG4Hit.cc:116
TotemRPG4Hit::theEnergyLoss_
double theEnergyLoss_
Definition: TotemRPG4Hit.h:124
TotemRPG4Hit::setPz
void setPz(double p)
Definition: TotemRPG4Hit.cc:139
TotemRPG4Hit::setP
void setP(double e)
Definition: TotemRPG4Hit.cc:104
TotemRPG4Hit::setIncidentEnergy
void setIncidentEnergy(double e)
Definition: TotemRPG4Hit.cc:87
TotemRPG4Hit::setY
void setY(double t)
Definition: TotemRPG4Hit.cc:120
TotemRPG4Hit::y
double y() const
Definition: TotemRPG4Hit.cc:119
TotemRPG4Hit::particleType
int particleType() const
Definition: TotemRPG4Hit.cc:102
TotemRPG4Hit::TotemRPG4Hit
TotemRPG4Hit()
Definition: TotemRPG4Hit.cc:7
TotemRPG4Hit::thePabs_
double thePabs_
Definition: TotemRPG4Hit.h:122
TotemRPG4Hit::operator=
const TotemRPG4Hit & operator=(const TotemRPG4Hit &right)
Definition: TotemRPG4Hit.cc:49
TotemRPG4Hit::setVx
void setVx(double p)
Definition: TotemRPG4Hit.cc:129
TotemRPG4Hit::thePx_
double thePx_
Definition: TotemRPG4Hit.h:137
TotemRPG4Hit::theParentId_
int theParentId_
Definition: TotemRPG4Hit.h:132
TotemRPG4Hit::parentId
int parentId() const
Definition: TotemRPG4Hit.cc:125
TotemRPG4Hit::setLocalExit
void setLocalExit(const G4ThreeVector &theLocalExitPoint)
Definition: TotemRPG4Hit.cc:84
TotemRPG4Hit::pz
double pz() const
Definition: TotemRPG4Hit.cc:143
TotemRPG4Hit::setPy
void setPy(double p)
Definition: TotemRPG4Hit.cc:138
TotemRPG4Hit::entry
G4ThreeVector entry() const
Definition: TotemRPG4Hit.cc:75
TotemRPG4Hit::exit_
G4ThreeVector exit_
Definition: TotemRPG4Hit.h:110
TotemRPG4Hit::entry_
G4ThreeVector entry_
Definition: TotemRPG4Hit.h:109
TotemRPG4Hit::setUnitID
void setUnitID(unsigned int i)
Definition: TotemRPG4Hit.cc:93
TotemRPG4Hit::phiAtEntry
double phiAtEntry() const
Definition: TotemRPG4Hit.cc:111
TotemRPG4Hit::energyLoss
double energyLoss() const
Definition: TotemRPG4Hit.cc:101
ztail.d
d
Definition: ztail.py:151
TotemRPG4Hit::trackID
unsigned int trackID() const
Definition: TotemRPG4Hit.cc:89
TotemRPG4Hit::p
double p() const
Definition: TotemRPG4Hit.cc:99
TotemRPG4Hit::theX_
double theX_
Definition: TotemRPG4Hit.h:119
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
TotemRPG4Hit::setParentId
void setParentId(int p)
Definition: TotemRPG4Hit.cc:126
TotemRPG4Hit::Print
void Print() override
Definition: TotemRPG4Hit.cc:73
TotemRPG4Hit::theTrackID_
int theTrackID_
Definition: TotemRPG4Hit.h:114
hit
Definition: SiStripHitEffFromCalibTree.cc:88
TotemRPG4Hit::theZ_
double theZ_
Definition: TotemRPG4Hit.h:121
TotemRPG4Hit::vy
double vy() const
Definition: TotemRPG4Hit.cc:131
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
TotemRPG4Hit::theVy_
double theVy_
Definition: TotemRPG4Hit.h:134