#include <HGCRecHit.h>
Public Types | |
enum | Flags { kGood = 0, kPoorReco, kOutOfTime, kFaultyHardware, kNoisy, kPoorCalib, kSaturated, kDead, kKilled, kWeird, kDiWeird, kUnknown } |
enum | HFNoseFlags { kHFNoseGood, kHFNosePoorReco, kHFNoseOutOfTime, kHFNoseFaultyHardware, kHFNoseNoisy, kHFNosePoorCalib, kHFNoseSaturated, kHFNoseDead, kHFNoseKilled, kHFNoseWeird, kHFNoseDiWeird, kHFNoseUnknown } |
enum | HGCbheFlags { kHGCbheGood, kHGCbheDead, kHGCbheHot, kHGCbhePassBX, kHGCbheSaturated } |
enum | HGCfheFlags { kHGCfheGood, kHGCfheDead, kHGCfheHot, kHGCfhePassBX, kHGCfheSaturated } |
typedef DetId | key_type |
Public Member Functions | |
bool | checkFlag (int flag) const |
check if the flag is true More... | |
bool | checkFlags (const std::vector< int > &flagsvec) const |
check if one of the flags in a set is true More... | |
float | chi2 () const |
HGCRecHit () | |
HGCRecHit (const DetId &id, float energy, float time, uint32_t flags=0, uint32_t flagBits=0) | |
DetId | id () const |
get the id More... | |
bool | isTimeErrorValid () const |
bool | isTimeValid () const |
float | outOfTimeChi2 () const |
float | outOfTimeEnergy () const |
void | setChi2 (float chi2) |
void | setFlag (int flag) |
set the flags (from Flags or ESFlags) More... | |
void | setOutOfTimeChi2 (float chi2) |
void | setOutOfTimeEnergy (float energy) |
void | setSignalOverSigmaNoise (float sOverNoise) |
void | setTimeError (float timeErr) |
float | signalOverSigmaNoise () const |
float | timeError () const |
void | unsetFlag (int flag) |
Public Member Functions inherited from CaloRecHit | |
constexpr uint32_t | aux () const |
constexpr | CaloRecHit () |
constexpr | CaloRecHit (const DetId &id, float energy, float time, uint32_t flags=0, uint32_t aux=0) |
constexpr const DetId & | detid () const |
constexpr float | energy () const |
constexpr uint32_t | flagField (int base, int width=1) const |
constexpr uint32_t | flags () const |
constexpr void | setAux (uint32_t value) |
constexpr void | setEnergy (float energy) |
constexpr void | setFlagField (uint32_t value, int base, int width=1) |
constexpr void | setFlags (uint32_t flags) |
constexpr void | setTime (float time) |
constexpr float | time () const |
Private Attributes | |
uint32_t | flagBits_ |
store rechit condition (see Flags enum) in a bit-wise way More... | |
uint8_t | signalOverSigmaNoise_ |
float | timeError_ |
based on EcalRecHit
Definition at line 14 of file HGCRecHit.h.
typedef DetId HGCRecHit::key_type |
Definition at line 16 of file HGCRecHit.h.
enum HGCRecHit::Flags |
Enumerator | |
---|---|
kGood | |
kPoorReco | |
kOutOfTime | |
kFaultyHardware | |
kNoisy | |
kPoorCalib | |
kSaturated | |
kDead | |
kKilled | |
kWeird | |
kDiWeird | |
kUnknown |
Definition at line 19 of file HGCRecHit.h.
Enumerator | |
---|---|
kHFNoseGood | |
kHFNosePoorReco | |
kHFNoseOutOfTime | |
kHFNoseFaultyHardware | |
kHFNoseNoisy | |
kHFNosePoorCalib | |
kHFNoseSaturated | |
kHFNoseDead | |
kHFNoseKilled | |
kHFNoseWeird | |
kHFNoseDiWeird | |
kHFNoseUnknown |
Definition at line 42 of file HGCRecHit.h.
Enumerator | |
---|---|
kHGCbheGood | |
kHGCbheDead | |
kHGCbheHot | |
kHGCbhePassBX | |
kHGCbheSaturated |
Definition at line 39 of file HGCRecHit.h.
Enumerator | |
---|---|
kHGCfheGood | |
kHGCfheDead | |
kHGCfheHot | |
kHGCfhePassBX | |
kHGCfheSaturated |
Definition at line 36 of file HGCRecHit.h.
HGCRecHit::HGCRecHit | ( | ) |
bit structure of CaloRecHit::flags_ used in EcalRecHit:
| 32 | 31...25 | 24...12 | 11...5 | 4...1 | | | | | | | | | | +--> reco flags ( 4 bits) | | | +--> chi2 for in time events ( 7 bits) | | +--> energy for out-of-time events (13 bits) | +--> chi2 for out-of-time events ( 7 bits) +--> spare ( 1 bit )
Definition at line 10 of file HGCRecHit.cc.
HGCRecHit::HGCRecHit | ( | const DetId & | id, |
float | energy, | ||
float | time, | ||
uint32_t | flags = 0 , |
||
uint32_t | flagBits = 0 |
||
) |
Definition at line 12 of file HGCRecHit.cc.
|
inline |
check if the flag is true
Definition at line 99 of file HGCRecHit.h.
References RemoveAddSevLevel::flag, and flagBits_.
Referenced by checkFlags().
bool HGCRecHit::checkFlags | ( | const std::vector< int > & | flagsvec | ) | const |
check if one of the flags in a set is true
Definition at line 97 of file HGCRecHit.cc.
References checkFlag().
float HGCRecHit::chi2 | ( | void | ) | const |
Definition at line 15 of file HGCRecHit.cc.
References f, CaloRecHit::flags(), and dqmMemoryStats::float.
Referenced by setChi2(), and setOutOfTimeChi2().
|
inline |
get the id
Definition at line 73 of file HGCRecHit.h.
References CaloRecHit::detid().
Referenced by FWHGCRecHitProxyBuilder::build().
bool HGCRecHit::isTimeErrorValid | ( | ) | const |
bool HGCRecHit::isTimeValid | ( | ) | const |
Definition at line 80 of file HGCRecHit.cc.
References timeError().
Referenced by isTimeErrorValid().
float HGCRecHit::outOfTimeChi2 | ( | ) | const |
Definition at line 20 of file HGCRecHit.cc.
References f, CaloRecHit::flags(), and dqmMemoryStats::float.
float HGCRecHit::outOfTimeEnergy | ( | ) | const |
Definition at line 25 of file HGCRecHit.cc.
References HLT_FULL_cff::exponent, CaloRecHit::flags(), and funct::pow().
void HGCRecHit::setChi2 | ( | float | chi2 | ) |
Definition at line 32 of file HGCRecHit.cc.
References chi2(), f, CaloRecHit::flags(), and CaloRecHit::setFlags().
|
inline |
set the flags (from Flags or ESFlags)
Definition at line 95 of file HGCRecHit.h.
References RemoveAddSevLevel::flag, and flagBits_.
Referenced by HGCalRecHitSimpleAlgo::makeRecHit().
void HGCRecHit::setOutOfTimeChi2 | ( | float | chi2 | ) |
Definition at line 53 of file HGCRecHit.cc.
References chi2(), f, CaloRecHit::flags(), and CaloRecHit::setFlags().
void HGCRecHit::setOutOfTimeEnergy | ( | float | energy | ) |
Definition at line 42 of file HGCRecHit.cc.
References CaloRecHit::energy(), HLT_FULL_cff::exponent, f, CaloRecHit::flags(), funct::pow(), and CaloRecHit::setFlags().
void HGCRecHit::setSignalOverSigmaNoise | ( | float | sOverNoise | ) |
void HGCRecHit::setTimeError | ( | float | timeErr | ) |
Definition at line 73 of file HGCRecHit.cc.
References timeError_.
float HGCRecHit::signalOverSigmaNoise | ( | ) | const |
Definition at line 71 of file HGCRecHit.cc.
References signalOverSigmaNoise_.
Referenced by PFRecHitQTestHGCalThresholdSNR::test().
float HGCRecHit::timeError | ( | ) | const |
Definition at line 78 of file HGCRecHit.cc.
References timeError_.
Referenced by isTimeErrorValid(), isTimeValid(), and HGCalLayerClusterProducer::produce().
|
inline |
Definition at line 96 of file HGCRecHit.h.
References RemoveAddSevLevel::flag, and flagBits_.
|
private |
store rechit condition (see Flags enum) in a bit-wise way
Definition at line 106 of file HGCRecHit.h.
Referenced by checkFlag(), setFlag(), and unsetFlag().
|
private |
Definition at line 107 of file HGCRecHit.h.
Referenced by setSignalOverSigmaNoise(), and signalOverSigmaNoise().
|
private |
Definition at line 108 of file HGCRecHit.h.
Referenced by setTimeError(), and timeError().