#include <FTLRecHit.h>
Public Types | |
enum | Flags { kGood = 0, kKilled, kUnknown } |
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... | |
int | column () const |
const DetId & | detid () const |
float | energy () const |
get the id More... | |
FTLRecHit () | |
FTLRecHit (const DetId &id, float energy, float time, float timeError, float position, float positionError, uint32_t flagBits=0) | |
FTLRecHit (const DetId &id, uint8_t row, uint8_t column, float energy, float time, float timeError, float position, float positionError, uint32_t flagBits=0) | |
const DetId & | id () const |
bool | isTimeErrorValid () const |
bool | isTimeValid () const |
const MTDDetId | mtdId () const |
float | position () const |
float | positionError () const |
int | row () const |
void | setEnergy (float energy) |
void | setFlag (int flag) |
set the flags (from Flags or ESFlags) More... | |
void | setPosition (float position) |
void | setPositionError (float poserr) |
void | setTime (float time) |
void | setTimeError (float err) |
float | time () const |
float | timeError () const |
void | unsetFlag (int flag) |
Private Attributes | |
uint8_t | column_ |
float | energy_ |
unsigned char | flagBits_ |
store rechit condition (see Flags enum) in a bit-wise way More... | |
DetId | id_ |
float | position_ |
position is the distance from the center of the bar to hit More... | |
float | positionError_ |
uint8_t | row_ |
float | time_ |
float | timeError_ |
based on EcalRecHit
Definition at line 15 of file FTLRecHit.h.
typedef DetId FTLRecHit::key_type |
Definition at line 17 of file FTLRecHit.h.
enum FTLRecHit::Flags |
Enumerator | |
---|---|
kGood | |
kKilled | |
kUnknown |
Definition at line 20 of file FTLRecHit.h.
FTLRecHit::FTLRecHit | ( | ) |
bit structure of CaloRecHit::flags_ used in FTLRecHit:
| 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 11 of file FTLRecHit.cc.
FTLRecHit::FTLRecHit | ( | const DetId & | id, |
uint8_t | row, | ||
uint8_t | column, | ||
float | energy, | ||
float | time, | ||
float | timeError, | ||
float | position, | ||
float | positionError, | ||
uint32_t | flagBits = 0 |
||
) |
Definition at line 14 of file FTLRecHit.cc.
FTLRecHit::FTLRecHit | ( | const DetId & | id, |
float | energy, | ||
float | time, | ||
float | timeError, | ||
float | position, | ||
float | positionError, | ||
uint32_t | flagBits = 0 |
||
) |
Definition at line 33 of file FTLRecHit.cc.
|
inline |
check if the flag is true
Definition at line 90 of file FTLRecHit.h.
References RemoveAddSevLevel::flag, and flagBits_.
Referenced by checkFlags().
bool FTLRecHit::checkFlags | ( | const std::vector< int > & | flagsvec | ) | const |
check if one of the flags in a set is true
Definition at line 54 of file FTLRecHit.cc.
References checkFlag().
|
inline |
|
inline |
|
inline |
get the id
Definition at line 59 of file FTLRecHit.h.
References energy_.
Referenced by Jet.Jet::rawEnergy(), and setEnergy().
|
inline |
bool FTLRecHit::isTimeErrorValid | ( | ) | const |
bool FTLRecHit::isTimeValid | ( | ) | const |
Definition at line 37 of file FTLRecHit.cc.
References timeError().
Referenced by isTimeErrorValid().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
set the flags (from Flags or ESFlags)
Definition at line 86 of file FTLRecHit.h.
References RemoveAddSevLevel::flag, and flagBits_.
|
inline |
Definition at line 74 of file FTLRecHit.h.
References position(), and position_.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 79 of file FTLRecHit.h.
References timeError_.
Referenced by isTimeErrorValid(), and isTimeValid().
|
inline |
Definition at line 87 of file FTLRecHit.h.
References RemoveAddSevLevel::flag, and flagBits_.
|
private |
Definition at line 104 of file FTLRecHit.h.
Referenced by column().
|
private |
Definition at line 97 of file FTLRecHit.h.
Referenced by energy(), and setEnergy().
|
private |
store rechit condition (see Flags enum) in a bit-wise way
Definition at line 107 of file FTLRecHit.h.
Referenced by checkFlag(), setFlag(), and unsetFlag().
|
private |
Definition at line 96 of file FTLRecHit.h.
|
private |
position is the distance from the center of the bar to hit
Definition at line 101 of file FTLRecHit.h.
Referenced by position(), and setPosition().
|
private |
Definition at line 102 of file FTLRecHit.h.
Referenced by positionError(), and setPositionError().
|
private |
Definition at line 103 of file FTLRecHit.h.
Referenced by row().
|
private |
Definition at line 98 of file FTLRecHit.h.
|
private |
Definition at line 99 of file FTLRecHit.h.
Referenced by setTimeError(), and timeError().