#include <PtAssignmentEngine.h>
Public Types | |
typedef uint64_t | address_t |
Public Member Functions | |
const PtAssignmentEngineAux & | aux () const |
virtual address_t | calculate_address (const EMTFTrack &track) const |
virtual float | calculate_pt (const address_t &address) const |
virtual float | calculate_pt (const EMTFTrack &track) const |
virtual float | calculate_pt_lut (const address_t &address) const |
virtual float | calculate_pt_xml (const address_t &address) const |
virtual float | calculate_pt_xml (const EMTFTrack &track) const |
void | configure (int verbose, int ptLUTVersion, bool readPtLUTFile, bool fixMode15HighPt, bool bug9BitDPhi, bool bugMode7CLCT, bool bugNegPt) |
void | configure_details () |
const std::vector< int > & | getAllowedModes (void) const |
const std::array< emtf::Forest, 16 > & | getForests (void) const |
void | load (const L1TMuonEndCapForest *payload) |
PtAssignmentEngine () | |
void | read (const std::string &xml_dir) |
int | readPtLUTFile () |
virtual float | scale_pt (const float pt, const int mode=15) const |
void | set_ptLUTVersion (int ptLUTVersion) |
virtual float | unscale_pt (const float pt, const int mode=15) const |
virtual | ~PtAssignmentEngine () |
Protected Attributes | |
std::vector< int > | allowedModes_ |
bool | bug9BitDPhi_ |
bool | bugMode7CLCT_ |
bool | bugNegPt_ |
bool | fixMode15HighPt_ |
std::array< emtf::Forest, 16 > | forests_ |
PtLUTReader | ptlut_reader_ |
int | ptLUTVersion_ |
bool | readPtLUTFile_ |
int | verbose_ |
Definition at line 17 of file PtAssignmentEngine.h.
typedef uint64_t PtAssignmentEngine::address_t |
Definition at line 22 of file PtAssignmentEngine.h.
|
explicit |
Definition at line 8 of file PtAssignmentEngine.cc.
References forests_, and ptlut_reader_.
|
virtual |
Definition at line 16 of file PtAssignmentEngine.cc.
const PtAssignmentEngineAux & PtAssignmentEngine::aux | ( | ) | const |
Definition at line 107 of file PtAssignmentEngine.cc.
References instance.
Referenced by PtAssignment::aux(), calculate_pt_lut(), and getAllowedModes().
|
inlinevirtual |
Reimplemented in PtAssignmentEngine2016, and PtAssignmentEngine2017.
Definition at line 42 of file PtAssignmentEngine.h.
References calculate_pt(), calculate_pt_lut(), and HiIsolationCommonParameters_cff::track.
Referenced by PtAssignment::process().
|
virtual |
Definition at line 120 of file PtAssignmentEngine.cc.
References calculate_pt_lut(), calculate_pt_xml(), EnergyCorrector::pt, and readPtLUTFile_.
Referenced by calculate_address(), and PtAssignment::process().
|
virtual |
Definition at line 132 of file PtAssignmentEngine.cc.
References calculate_pt_xml(), and EnergyCorrector::pt.
|
virtual |
Definition at line 140 of file PtAssignmentEngine.cc.
References aux(), PtAssignmentEngineAux::getPtFromGMTPt(), PtLUTReader::lookup(), EnergyCorrector::pt, ptlut_reader_, and unscale_pt().
Referenced by calculate_address(), and calculate_pt().
|
inlinevirtual |
Reimplemented in PtAssignmentEngine2016, and PtAssignmentEngine2017.
Definition at line 48 of file PtAssignmentEngine.h.
Referenced by calculate_pt().
|
inlinevirtual |
Reimplemented in PtAssignmentEngine2016, and PtAssignmentEngine2017.
Definition at line 49 of file PtAssignmentEngine.h.
void PtAssignmentEngine::configure | ( | int | verbose, |
int | ptLUTVersion, | ||
bool | readPtLUTFile, | ||
bool | fixMode15HighPt, | ||
bool | bug9BitDPhi, | ||
bool | bugMode7CLCT, | ||
bool | bugNegPt | ||
) |
Definition at line 80 of file PtAssignmentEngine.cc.
References bug9BitDPhi_, bugMode7CLCT_, bugNegPt_, configure_details(), fixMode15HighPt_, ptLUTVersion_, readPtLUTFile(), readPtLUTFile_, verbose, and verbose_.
Referenced by PtAssignment::configure(), getAllowedModes(), and L1TMuonEndCapForestESProducer::produce().
void PtAssignmentEngine::configure_details | ( | ) |
Definition at line 97 of file PtAssignmentEngine.cc.
References ptlut_reader_, PtLUTReader::read(), readPtLUTFile_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by configure(), and getAllowedModes().
|
inline |
Definition at line 27 of file PtAssignmentEngine.h.
References allowedModes_, aux(), configure(), configure_details(), ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, EnergyCorrector::pt, readPtLUTFile(), scale_pt(), and unscale_pt().
Referenced by L1TMuonEndCapForestESProducer::produce().
|
inline |
Definition at line 26 of file PtAssignmentEngine.h.
References forests_.
Referenced by L1TMuonEndCapForestESProducer::produce().
void PtAssignmentEngine::load | ( | const L1TMuonEndCapForest * | payload | ) |
Definition at line 44 of file PtAssignmentEngine.cc.
References allowedModes_, L1TMuonEndCapForest::forest_coll_, L1TMuonEndCapForest::forest_map_, forests_, mps_fire::i, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, and ptLUTVersion_.
Referenced by TrackFinder::process().
void PtAssignmentEngine::read | ( | const std::string & | xml_dir | ) |
Definition at line 23 of file PtAssignmentEngine.cc.
References allowedModes_, gather_cfg::cout, forests_, mps_fire::i, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, ptLUTVersion_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edmIntegrityCheck.PublishToFileSystem::get(), and L1TMuonEndCapForestESProducer::produce().
|
inline |
Definition at line 51 of file PtAssignmentEngine.h.
References readPtLUTFile_.
Referenced by configure(), and getAllowedModes().
|
virtual |
Reimplemented in PtAssignmentEngine2016, and PtAssignmentEngine2017.
Definition at line 112 of file PtAssignmentEngine.cc.
Referenced by getAllowedModes(), and PtAssignment::process().
|
inline |
Definition at line 52 of file PtAssignmentEngine.h.
References ptLUTVersion_.
Referenced by TrackFinder::process().
|
virtual |
Reimplemented in PtAssignmentEngine2016, and PtAssignmentEngine2017.
Definition at line 116 of file PtAssignmentEngine.cc.
Referenced by calculate_pt_lut(), and getAllowedModes().
|
protected |
Definition at line 55 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), PtAssignmentEngine2017::calculate_pt_xml(), getAllowedModes(), load(), and read().
|
protected |
Definition at line 63 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_address(), and configure().
|
protected |
Definition at line 63 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), and configure().
|
protected |
Definition at line 63 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), and configure().
|
protected |
Definition at line 62 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), and configure().
|
protected |
Definition at line 56 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), PtAssignmentEngine2017::calculate_pt_xml(), getForests(), load(), PtAssignmentEngine(), and read().
|
protected |
Definition at line 57 of file PtAssignmentEngine.h.
Referenced by calculate_pt_lut(), configure_details(), and PtAssignmentEngine().
|
protected |
Definition at line 61 of file PtAssignmentEngine.h.
Referenced by configure(), load(), read(), PtAssignmentEngine2017::scale_pt(), set_ptLUTVersion(), and PtAssignmentEngine2017::unscale_pt().
|
protected |
Definition at line 62 of file PtAssignmentEngine.h.
Referenced by calculate_pt(), configure(), configure_details(), and readPtLUTFile().
|
protected |
Definition at line 59 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), and configure().