HGCal Test Beam
03a93d6239a951948e06fb3ef8dae4cbdebfad30
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
DataFormats
src
HGCalTBRecHit.cc
Go to the documentation of this file.
1
#include "HGCal/DataFormats/interface/HGCalTBRecHit.h"
2
#include <cassert>
3
#include <math.h>
4
5
HGCalTBRecHit::HGCalTBRecHit
() : CaloRecHit()
6
{
7
}
8
9
10
HGCalTBRecHit::HGCalTBRecHit
(
const
DetId&
id
,
float
energyLow,
float
energyHigh,
float
time, uint32_t flags) :
11
CaloRecHit(id, energyHigh, time, flags),
12
_energyLow(energyLow),
13
_energyHigh(energyHigh)
14
{
15
16
// setting the default energy
17
if
(
checkFlag
(
kLowGainSaturated
)){
18
setEnergy(-1);
19
}
else
{
20
if
(
checkFlag
(
kHighGainSaturated
) ){
21
setEnergy(energyLow);
22
}
else
setEnergy(energyHigh);
23
}
24
25
}
26
27
std::ostream&
operator<<
(std::ostream& s,
const
HGCalTBRecHit
& hit)
28
{
29
return
s << hit.
id
() <<
": "
<< hit.energy() <<
" GeV, "
<< hit.time() <<
" ns"
;
30
31
}
HGCalTBRecHit::kHighGainSaturated
Definition:
HGCalTBRecHit.h:23
HGCalTBRecHit
Definition:
HGCalTBRecHit.h:16
HGCalTBRecHit::kLowGainSaturated
Definition:
HGCalTBRecHit.h:24
HGCalTBRecHit::checkFlag
bool checkFlag(int flag) const
Definition:
HGCalTBRecHit.h:54
operator<<
std::ostream & operator<<(std::ostream &, const HGCalTBDetId &id)
Definition:
HGCalTBDetId.cc:37
HGCalTBRecHit::HGCalTBRecHit
enum HGCalTBRecHit::Flags HGCalTBRecHit()
Definition:
HGCalTBRecHit.cc:5
HGCalTBRecHit::id
HGCalTBDetId id() const
get the id
Definition:
HGCalTBRecHit.h:32
Generated on Mon Aug 29 2016 11:29:32 for HGCal Test Beam by
1.8.5