src
SimDataFormats
CaloHit
src
CaloHit.cc
Go to the documentation of this file.
1
// File: CaloHit.cc
3
// Description: Temporary Hit class for QIE Analysis
5
#include "
SimDataFormats/CaloHit/interface/CaloHit.h
"
6
7
#include <iomanip>
8
9
CaloHit::CaloHit
(
int
deti,
int
layi,
double
ei,
double
etai,
double
fi,
double
timi, uint32_t idi)
10
: deth(deti), layerh(layi), eh(ei), etah(etai), phih(fi), timeh(timi), idh(idi) {}
11
12
CaloHit::CaloHit
() : deth(0), layerh(0), eh(0), etah(0), phih(0), timeh(0), idh(0) {}
13
14
CaloHit::~CaloHit
() {}
15
16
bool
CaloHit::operator<
(
const
CaloHit
&
hit
)
const
{
17
return
(
eh
/ cosh(
etah
) <
hit
.e() / cosh(
hit
.eta())) ?
false
:
true
;
18
}
19
20
std::ostream&
operator<<
(std::ostream& os,
const
CaloHit
&
hit
) {
21
os <<
"E "
<< std::setw(6) <<
hit
.e() <<
" eta "
<< std::setw(6) <<
hit
.eta() <<
" phi "
<< std::setw(6) <<
hit
.phi()
22
<<
" t "
<< std::setw(6) <<
hit
.t() <<
" layer "
<<
hit
.layer() <<
" det "
<<
hit
.det() <<
" id 0x"
<< std::hex
23
<<
hit
.
id
() <<
std::dec
;
24
return
os;
25
}
funct::false
false
Definition:
Factorize.h:29
CaloHit
Definition:
CaloHit.h:12
CaloHit::operator<
bool operator<(const CaloHit &hit) const
Definition:
CaloHit.cc:16
CaloHit::~CaloHit
virtual ~CaloHit()
Definition:
CaloHit.cc:14
CaloHit::eh
double eh
Definition:
CaloHit.h:31
hit::id
unsigned int id
Definition:
SiStripHitEffFromCalibTree.cc:91
operator<<
std::ostream & operator<<(std::ostream &os, const CaloHit &hit)
Definition:
CaloHit.cc:20
hit
Definition:
SiStripHitEffFromCalibTree.cc:87
TauDecayModes.dec
dec
Definition:
TauDecayModes.py:142
CaloHit.h
CaloHit::etah
double etah
Definition:
CaloHit.h:31
CaloHit::CaloHit
CaloHit()
Definition:
CaloHit.cc:12
Generated for CMSSW Reference Manual by
1.8.14