#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, bool readPtLUTFile, bool fixMode15HighPt, bool bug9BitDPhi, bool bugMode7CLCT, bool bugNegPt) |
void | configure_details () |
int | get_pt_lut_version () const |
const std::vector< int > & | getAllowedModes (void) const |
const std::array< emtf::Forest, 16 > & | getForests (void) const |
void | load (int pt_lut_version, const L1TMuonEndCapForest *payload) |
PtAssignmentEngine () | |
void | read (int pt_lut_version, const std::string &xml_dir) |
virtual float | scale_pt (const float pt, const int mode=15) const |
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 10 of file PtAssignmentEngine.cc.
References forests_, ptlut_reader_, and ptLUTVersion_.
|
virtual |
Definition at line 19 of file PtAssignmentEngine.cc.
const PtAssignmentEngineAux & PtAssignmentEngine::aux | ( | ) | const |
Definition at line 109 of file PtAssignmentEngine.cc.
References instance.
Referenced by PtAssignment::aux(), calculate_pt_lut(), and get_pt_lut_version().
|
inlinevirtual |
Reimplemented in PtAssignmentEngine2016, and PtAssignmentEngine2017.
Definition at line 44 of file PtAssignmentEngine.h.
References calculate_pt(), calculate_pt_lut(), and HiIsolationCommonParameters_cff::track.
Referenced by PtAssignment::process().
|
virtual |
Definition at line 122 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 134 of file PtAssignmentEngine.cc.
References calculate_pt_xml(), and EnergyCorrector::pt.
|
virtual |
Definition at line 142 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 50 of file PtAssignmentEngine.h.
Referenced by calculate_pt().
|
inlinevirtual |
Reimplemented in PtAssignmentEngine2016, and PtAssignmentEngine2017.
Definition at line 51 of file PtAssignmentEngine.h.
void PtAssignmentEngine::configure | ( | int | verbose, |
bool | readPtLUTFile, | ||
bool | fixMode15HighPt, | ||
bool | bug9BitDPhi, | ||
bool | bugMode7CLCT, | ||
bool | bugNegPt | ||
) |
Definition at line 83 of file PtAssignmentEngine.cc.
References bug9BitDPhi_, bugMode7CLCT_, bugNegPt_, configure_details(), fixMode15HighPt_, readPtLUTFile_, verbose, and verbose_.
Referenced by PtAssignment::configure(), and get_pt_lut_version().
void PtAssignmentEngine::configure_details | ( | ) |
Definition at line 99 of file PtAssignmentEngine.cc.
References ptlut_reader_, PtLUTReader::read(), readPtLUTFile_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by configure(), and get_pt_lut_version().
|
inline |
Definition at line 29 of file PtAssignmentEngine.h.
References aux(), configure(), configure_details(), ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, EnergyCorrector::pt, ptLUTVersion_, scale_pt(), and unscale_pt().
|
inline |
Definition at line 27 of file PtAssignmentEngine.h.
References allowedModes_.
Referenced by L1TMuonEndCapForestESProducer::produce().
|
inline |
Definition at line 26 of file PtAssignmentEngine.h.
References forests_.
Referenced by L1TMuonEndCapForestESProducer::produce().
void PtAssignmentEngine::load | ( | int | pt_lut_version, |
const L1TMuonEndCapForest * | payload | ||
) |
Definition at line 47 of file PtAssignmentEngine.cc.
References allowedModes_, L1TMuonEndCapForest::forest_coll_, L1TMuonEndCapForest::forest_map_, forests_, mps_fire::i, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, and ptLUTVersion_.
void PtAssignmentEngine::read | ( | int | pt_lut_version, |
const std::string & | xml_dir | ||
) |
Definition at line 26 of file PtAssignmentEngine.cc.
References allowedModes_, gather_cfg::cout, forests_, mps_fire::i, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edmIntegrityCheck.PublishToFileSystem::get(), and L1TMuonEndCapForestESProducer::produce().
|
virtual |
Reimplemented in PtAssignmentEngine2016, and PtAssignmentEngine2017.
Definition at line 114 of file PtAssignmentEngine.cc.
Referenced by get_pt_lut_version(), and PtAssignment::process().
|
virtual |
Reimplemented in PtAssignmentEngine2016, and PtAssignmentEngine2017.
Definition at line 118 of file PtAssignmentEngine.cc.
Referenced by calculate_pt_lut(), and get_pt_lut_version().
|
protected |
Definition at line 54 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), PtAssignmentEngine2017::calculate_pt_xml(), getAllowedModes(), load(), and read().
|
protected |
Definition at line 62 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_address(), and configure().
|
protected |
Definition at line 62 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 61 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), and configure().
|
protected |
Definition at line 55 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), PtAssignmentEngine2017::calculate_pt_xml(), getForests(), load(), PtAssignmentEngine(), and read().
|
protected |
Definition at line 56 of file PtAssignmentEngine.h.
Referenced by calculate_pt_lut(), configure_details(), and PtAssignmentEngine().
|
protected |
Definition at line 60 of file PtAssignmentEngine.h.
Referenced by get_pt_lut_version(), load(), PtAssignmentEngine(), PtAssignmentEngine2017::scale_pt(), and PtAssignmentEngine2017::unscale_pt().
|
protected |
Definition at line 61 of file PtAssignmentEngine.h.
Referenced by calculate_pt(), configure(), and configure_details().
|
protected |
Definition at line 58 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), and configure().