Main Page
Namespaces
Classes
Package Documentation
SimDataFormats
CaloHit
src
PCaloHit.cc
Go to the documentation of this file.
1
#include "
SimDataFormats/CaloHit/interface/PCaloHit.h
"
2
#include <iostream>
3
4
PCaloHit::PCaloHit
(
float
eEM,
float
eHad,
float
t
,
int
i
, uint16_t
d
) : myTime(t), myItra(i), myDepth(d) {
5
myEnergy
= eEM + eHad;
6
myEMFraction
= (
myEnergy
<= 0. ? 1. : eEM /
myEnergy
);
7
}
8
9
PCaloHit::PCaloHit
(
unsigned
int
id
,
float
eEM,
float
eHad,
float
t
,
int
i
, uint16_t
d
)
10
:
myTime
(t),
myItra
(i),
detId
(id),
myDepth
(d) {
11
myEnergy
= eEM + eHad;
12
myEMFraction
= (
myEnergy
<= 0. ? 1. : eEM /
myEnergy
);
13
}
14
15
std::ostream&
operator<<
(std::ostream&
o
,
const
PCaloHit
&
hit
) {
16
o <<
"0x"
<< std::hex << hit.
id
() <<
std::dec
<<
": Energy (EM) "
<< hit.
energyEM
() <<
" GeV "
17
<<
": Energy (Had) "
<< hit.
energyHad
() <<
" GeV "
18
<<
" Tof "
<< hit.
time
() <<
" ns "
19
<<
" Geant track #"
<< hit.
geantTrackId
() <<
" Encoded depth "
<< hit.
depth
();
20
21
return
o
;
22
}
mps_fire.i
i
Definition:
mps_fire.py:338
PCaloHit::time
double time() const
Definition:
PCaloHit.h:30
PCaloHit
Definition:
PCaloHit.h:8
PCaloHit::energyEM
double energyEM() const
Definition:
PCaloHit.h:25
PCaloHit::depth
uint16_t depth() const
Definition:
PCaloHit.h:43
PCaloHit::energyHad
double energyHad() const
Definition:
PCaloHit.h:26
PCaloHit::myItra
int myItra
Definition:
PCaloHit.h:69
PCaloHit::myEMFraction
float myEMFraction
Definition:
PCaloHit.h:67
PCaloHit::myDepth
uint16_t myDepth
Definition:
PCaloHit.h:71
protons_cff.t
t
Definition:
protons_cff.py:34
PCaloHit::geantTrackId
int geantTrackId() const
Definition:
PCaloHit.h:33
PCaloHit::id
unsigned int id() const
Definition:
PCaloHit.h:37
edmIntegrityCheck.d
d
Definition:
edmIntegrityCheck.py:66
connectstrParser.o
o
Definition:
connectstrParser.py:72
PCaloHit.h
PCaloHit::myTime
float myTime
Definition:
PCaloHit.h:68
PCaloHit::PCaloHit
PCaloHit(float e=0., float t=0., int i=0, float emFraction=1., uint16_t d=0)
Definition:
PCaloHit.h:10
hit
Definition:
SiStripHitEffFromCalibTree.cc:87
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:143
PCaloHit::detId
unsigned int detId
Definition:
PCaloHit.h:70
PCaloHit::myEnergy
float myEnergy
Definition:
PCaloHit.h:66
operator<<
std::ostream & operator<<(std::ostream &o, const PCaloHit &hit)
Definition:
PCaloHit.cc:15
Generated for CMSSW Reference Manual by
1.8.11