test
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
()
5
:
CaloRecHit
(),
6
chiSquared_(-1),
7
rawEnergy_(-1.0e21),
8
auxEnergy_(-1.0e21),
9
auxHBHE_(0),
10
auxPhase1_(0)
11
{
12
}
13
14
HBHERecHit::HBHERecHit
(
const
HcalDetId
&
id
,
float
energy
,
float
timeRising,
float
timeFalling)
15
:
CaloRecHit
(id,energy,timeRising),
16
timeFalling_(timeFalling),
17
chiSquared_(-1),
18
rawEnergy_(-1.0e21),
19
auxEnergy_(-1.0e21),
20
auxHBHE_(0),
21
auxPhase1_(0)
22
{
23
}
24
25
std::ostream&
operator<<
(std::ostream&
s
,
const
HBHERecHit
&
hit
) {
26
s << hit.
id
() <<
": "
<< hit.
energy
() <<
" GeV"
;
27
if
(hit.
eraw
() > -0.9e21) {
28
s <<
", eraw="
<< hit.
eraw
() <<
" GeV"
;
29
}
30
if
(hit.
eaux
() > -0.9e21) {
31
s <<
", eaux="
<< hit.
eaux
() <<
" GeV"
;
32
}
33
if
(hit.
time
() > -998) {
34
s <<
", t= "
<< hit.
time
() <<
" to "
<< hit.
timeFalling
() <<
" ns"
;
35
}
36
return
s
;
37
}
38
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:188
CaloRecHit::time
float time() const
Definition:
CaloRecHit.h:19
HBHERecHit
Definition:
HBHERecHit.h:12
CaloRecHit
Definition:
CaloRecHit.h:12
HcalDetId
Definition:
HcalDetId.h:12
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:86
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:29
HBHERecHit::eaux
float eaux() const
Definition:
HBHERecHit.h:32
Generated for CMSSW Reference Manual by
1.8.5