Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
,
5
uint16_t d) : myTime(t), myItra(i), myDepth(d) {
6
myEnergy
= eEM + eHad;
7
myEMFraction
= (
myEnergy
<= 0. ? 1. :eEM/
myEnergy
);
8
}
9
10
PCaloHit::PCaloHit
(
unsigned
int
id
,
float
eEM,
float
eHad,
float
t
,
int
i
,
11
uint16_t d) : myTime(t), myItra(i), detId(id), myDepth(d) {
12
myEnergy
= eEM + eHad;
13
myEMFraction
= (
myEnergy
<= 0. ? 1. :eEM/
myEnergy
);
14
}
15
16
17
std::ostream &
operator<<
(std::ostream&
o
,
const
PCaloHit
&
hit
) {
18
o <<
"0x"
<<std::hex << hit.
id
() << std::dec
19
<<
": Energy (EM) "
<< hit.
energyEM
() <<
" GeV "
20
<<
": Energy (Had) "
<< hit.
energyHad
() <<
" GeV "
21
<<
" Tof "
<< hit.
time
() <<
" ns "
22
<<
" Geant track #"
<< hit.
geantTrackId
()
23
<<
" Encoded depth "
<< hit.
depth
();
24
25
return
o
;
26
}
i
int i
Definition:
DBlmapReader.cc:9
PCaloHit::time
double time() const
Definition:
PCaloHit.h:36
PCaloHit
Definition:
PCaloHit.h:8
PCaloHit::energyEM
double energyEM() const
Definition:
PCaloHit.h:30
lumiQTWidget.t
tuple t
Definition:
lumiQTWidget.py:50
PCaloHit::depth
uint16_t depth() const
Definition:
PCaloHit.h:49
PCaloHit::energyHad
double energyHad() const
Definition:
PCaloHit.h:31
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
PCaloHit::myEMFraction
float myEMFraction
Definition:
PCaloHit.h:70
PCaloHit::geantTrackId
int geantTrackId() const
Definition:
PCaloHit.h:39
PCaloHit::id
unsigned int id() const
Definition:
PCaloHit.h:43
python.connectstrParser.o
string o
Definition:
connectstrParser.py:70
PCaloHit.h
PCaloHit::PCaloHit
PCaloHit(float e=0., float t=0., int i=0, float emFraction=1., uint16_t d=0)
Definition:
PCaloHit.h:12
hit
Definition:
SiStripHitEffFromCalibTree.cc:85
PCaloHit::myEnergy
float myEnergy
Definition:
PCaloHit.h:69
Generated for CMSSW Reference Manual by
1.8.5