Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
HcalRecHit
src
HBHERecHit.cc
Go to the documentation of this file.
1
#include "
DataFormats/HcalRecHit/interface/HBHERecHit.h
"
2
3
4
HBHERecHit::HBHERecHit
() :
CaloRecHit
(), rawEnergy_(-1.0e21), auxEnergy_(-1.0e21) {
5
}
6
7
HBHERecHit::HBHERecHit
(
const
HcalDetId
&
id
,
float
energy
,
float
timeRising,
float
timeFalling) :
8
CaloRecHit
(id,energy,timeRising),
9
timeFalling_(timeFalling),
10
rawEnergy_(-1.0e21),
11
auxEnergy_(-1.0e21)
12
{
13
}
14
15
std::ostream&
operator<<
(std::ostream&
s
,
const
HBHERecHit
&
hit
) {
16
s << hit.
id
() <<
": "
<< hit.
energy
() <<
" GeV"
;
17
if
(hit.
eraw
() > -0.9e21) {
18
s <<
", eraw="
<< hit.
eraw
() <<
" GeV"
;
19
}
20
if
(hit.
eaux
() > -0.9e21) {
21
s <<
", eaux="
<< hit.
eaux
() <<
" GeV"
;
22
}
23
if
(hit.
time
() > -998) {
24
s <<
", t= "
<< hit.
time
() <<
" to "
<< hit.
timeFalling
() <<
" ns"
;
25
}
26
return
s
;
27
}
28
HBHERecHit::id
HcalDetId id() const
get the id
Definition:
HBHERecHit.h:23
HBHERecHit.h
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
CaloRecHit::time
float time() const
Definition:
CaloRecHit.h:19
HBHERecHit
Definition:
HBHERecHit.h:12
CaloRecHit
Definition:
CaloRecHit.h:12
HcalDetId
Definition:
HcalDetId.h:16
CaloRecHit::energy
float energy() const
Definition:
CaloRecHit.h:17
HBHERecHit::timeFalling
float timeFalling() const
get the hit falling time
Definition:
HBHERecHit.h:21
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
hit
Definition:
SiStripHitEffFromCalibTree.cc:79
HBHERecHit::HBHERecHit
HBHERecHit()
Definition:
HBHERecHit.cc:4
relval_parameters_module.energy
string energy
Definition:
relval_parameters_module.py:29
HBHERecHit::eraw
float eraw() const
Definition:
HBHERecHit.h:26
HBHERecHit::eaux
float eaux() const
Definition:
HBHERecHit.h:29
Generated for CMSSW Reference Manual by
1.8.5