src
SimDataFormats
TrackingHit
interface
UpdatablePSimHit.h
Go to the documentation of this file.
1
#ifndef UpdatablePSimHit_H
2
#define UpdatablePSimHit_H
3
10
#include "
SimDataFormats/TrackingHit/interface/PSimHit.h
"
11
12
class
UpdatablePSimHit
:
public
PSimHit
{
13
public
:
14
UpdatablePSimHit
() :
PSimHit
() {}
15
UpdatablePSimHit
(
const
Local3DPoint
&
entry
,
16
const
Local3DPoint
&
exit
,
17
float
pabs
,
18
float
tof
,
19
float
eloss,
20
int
particleType
,
21
unsigned
int
detId
,
22
unsigned
int
trackId
,
23
float
theta
,
24
float
phi
,
25
unsigned
short
processType
= 0)
26
:
PSimHit
(
entry
,
exit
,
pabs
,
tof
, eloss,
particleType
,
detId
,
trackId
,
theta
,
phi
,
processType
) {}
27
~UpdatablePSimHit
(){};
28
void
updateExitPoint
(
const
Local3DPoint
&
exit
) {
theSegment
=
exit
-
theEntryPoint
; }
29
void
setExitPoint
(
const
Local3DPoint
&
exit
) {
updateExitPoint
(
exit
); }
30
void
setEntryPoint
(
const
Local3DPoint
&
entry
) {
31
theSegment
=
theSegment
+
theEntryPoint
-
entry
;
32
theEntryPoint
=
entry
;
33
}
34
void
addEnergyLoss
(
float
eloss) {
theEnergyLoss
+= eloss; }
35
void
setEnergyLoss
(
float
eloss) {
theEnergyLoss
= eloss; }
36
void
setTrackId
(
unsigned
int
k
) {
theTrackId
=
k
; }
37
};
38
39
#endif
PSimHit::theTrackId
unsigned int theTrackId
Definition:
PSimHit.h:151
UpdatablePSimHit::setEnergyLoss
void setEnergyLoss(float eloss)
Definition:
UpdatablePSimHit.h:35
PSimHit::theEntryPoint
Local3DPoint theEntryPoint
Definition:
PSimHit.h:137
UpdatablePSimHit::setExitPoint
void setExitPoint(const Local3DPoint &exit)
Definition:
UpdatablePSimHit.h:29
UpdatablePSimHit::UpdatablePSimHit
UpdatablePSimHit(const Local3DPoint &entry, const Local3DPoint &exit, float pabs, float tof, float eloss, int particleType, unsigned int detId, unsigned int trackId, float theta, float phi, unsigned short processType=0)
Definition:
UpdatablePSimHit.h:15
DDAxes::phi
UpdatablePSimHit::UpdatablePSimHit
UpdatablePSimHit()
Definition:
UpdatablePSimHit.h:14
PSimHit::theEnergyLoss
float theEnergyLoss
Definition:
PSimHit.h:140
mps_splice.entry
entry
Definition:
mps_splice.py:68
UpdatablePSimHit::setEntryPoint
void setEntryPoint(const Local3DPoint &entry)
Definition:
UpdatablePSimHit.h:30
UpdatablePSimHit::updateExitPoint
void updateExitPoint(const Local3DPoint &exit)
Definition:
UpdatablePSimHit.h:28
PSimHit::processType
unsigned short processType() const
Definition:
PSimHit.h:131
PSimHit::trackId
unsigned int trackId() const
Definition:
PSimHit.h:108
UpdatablePSimHit::setTrackId
void setTrackId(unsigned int k)
Definition:
UpdatablePSimHit.h:36
hcalRecHitTable_cff.detId
detId
Definition:
hcalRecHitTable_cff.py:12
UpdatablePSimHit::addEnergyLoss
void addEnergyLoss(float eloss)
Definition:
UpdatablePSimHit.h:34
PSimHit::theSegment
Local3DVector theSegment
Definition:
PSimHit.h:138
PSimHit.h
PSimHit::tof
float tof() const
deprecated name for timeOfFlight()
Definition:
PSimHit.h:78
PSimHit::pabs
float pabs() const
fast and more accurate access to momentumAtEntry().mag()
Definition:
PSimHit.h:69
Point3DBase< float, LocalTag >
PSimHit
Definition:
PSimHit.h:15
UpdatablePSimHit
Definition:
UpdatablePSimHit.h:12
PSimHit::particleType
int particleType() const
Definition:
PSimHit.h:91
UpdatablePSimHit::~UpdatablePSimHit
~UpdatablePSimHit()
Definition:
UpdatablePSimHit.h:27
theta
Geom::Theta< T > theta() const
Definition:
Basic3DVectorLD.h:150
dqmdumpme.k
k
Definition:
dqmdumpme.py:60
beamvalidation.exit
def exit(msg="")
Definition:
beamvalidation.py:52
Generated for CMSSW Reference Manual by
1.8.14