#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 =0 |
virtual float | unscale_pt (const float pt, const int mode=15) const =0 |
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 16 of file PtAssignmentEngine.h.
typedef uint64_t PtAssignmentEngine::address_t |
Definition at line 21 of file PtAssignmentEngine.h.
|
explicit |
Definition at line 6 of file PtAssignmentEngine.cc.
|
virtual |
Definition at line 9 of file PtAssignmentEngine.cc.
const PtAssignmentEngineAux & PtAssignmentEngine::aux | ( | ) | const |
Definition at line 95 of file PtAssignmentEngine.cc.
References instance.
Referenced by PtAssignment::aux(), and calculate_pt_lut().
|
inlinevirtual |
Reimplemented in PtAssignmentEngine2016, and PtAssignmentEngine2017.
Definition at line 40 of file PtAssignmentEngine.h.
Referenced by PtAssignment::process().
|
virtual |
Definition at line 100 of file PtAssignmentEngine.cc.
References calculate_pt_lut(), calculate_pt_xml(), DiDispStaMuonMonitor_cfi::pt, and readPtLUTFile_.
Referenced by PtAssignment::process().
|
virtual |
Definition at line 112 of file PtAssignmentEngine.cc.
References calculate_pt_xml(), DiDispStaMuonMonitor_cfi::pt, and HLT_2022v14_cff::track.
|
virtual |
Definition at line 120 of file PtAssignmentEngine.cc.
References aux(), PtAssignmentEngineAux::getPtFromGMTPt(), PtLUTReader::lookup(), DiDispStaMuonMonitor_cfi::pt, ptlut_reader_, and unscale_pt().
Referenced by calculate_pt().
|
inlinevirtual |
Reimplemented in PtAssignmentEngine2016, and PtAssignmentEngine2017.
Definition at line 46 of file PtAssignmentEngine.h.
Referenced by calculate_pt().
|
inlinevirtual |
Reimplemented in PtAssignmentEngine2016, and PtAssignmentEngine2017.
Definition at line 47 of file PtAssignmentEngine.h.
void PtAssignmentEngine::configure | ( | int | verbose, |
bool | readPtLUTFile, | ||
bool | fixMode15HighPt, | ||
bool | bug9BitDPhi, | ||
bool | bugMode7CLCT, | ||
bool | bugNegPt | ||
) |
Definition at line 72 of file PtAssignmentEngine.cc.
References bug9BitDPhi_, bugMode7CLCT_, bugNegPt_, configure_details(), fixMode15HighPt_, readPtLUTFile_, verbose, and verbose_.
Referenced by PtAssignment::configure().
void PtAssignmentEngine::configure_details | ( | ) |
Definition at line 85 of file PtAssignmentEngine.cc.
References ptlut_reader_, PtLUTReader::read(), readPtLUTFile_, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by configure().
|
inline |
Definition at line 28 of file PtAssignmentEngine.h.
References ptLUTVersion_.
Referenced by TrackFinder::process(), and PtAssignment::process().
|
inline |
Definition at line 26 of file PtAssignmentEngine.h.
References allowedModes_.
Referenced by L1TMuonEndCapForestESProducer::produce().
|
inline |
Definition at line 25 of file PtAssignmentEngine.h.
References forests_.
Referenced by L1TMuonEndCapForestESProducer::produce().
void PtAssignmentEngine::load | ( | int | pt_lut_version, |
const L1TMuonEndCapForest * | payload | ||
) |
Definition at line 34 of file PtAssignmentEngine.cc.
References allowedModes_, emtf_assert, forests_, mps_fire::i, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, jetsAK4_Puppi_cff::payload, and ptLUTVersion_.
void PtAssignmentEngine::read | ( | int | pt_lut_version, |
const std::string & | xml_dir | ||
) |
Definition at line 14 of file PtAssignmentEngine.cc.
References allowedModes_, gather_cfg::cout, forests_, mps_fire::i, ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by edmIntegrityCheck.PublishToFileSystem::get(), and L1TMuonEndCapForestESProducer::produce().
|
pure virtual |
Implemented in PtAssignmentEngine2016, and PtAssignmentEngine2017.
Referenced by PtAssignment::process().
|
pure virtual |
Implemented in PtAssignmentEngine2016, and PtAssignmentEngine2017.
Referenced by calculate_pt_lut().
|
protected |
Definition at line 50 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), PtAssignmentEngine2017::calculate_pt_xml(), getAllowedModes(), load(), and read().
|
protected |
Definition at line 58 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_address(), and configure().
|
protected |
Definition at line 58 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), and configure().
|
protected |
Definition at line 58 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), and configure().
|
protected |
Definition at line 57 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), and configure().
|
protected |
Definition at line 51 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), PtAssignmentEngine2017::calculate_pt_xml(), getForests(), load(), and read().
|
protected |
Definition at line 52 of file PtAssignmentEngine.h.
Referenced by calculate_pt_lut(), and configure_details().
|
protected |
Definition at line 56 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2017::calculate_pt_xml(), get_pt_lut_version(), load(), PtAssignmentEngine2017::scale_pt(), and PtAssignmentEngine2017::unscale_pt().
|
protected |
Definition at line 57 of file PtAssignmentEngine.h.
Referenced by calculate_pt(), configure(), and configure_details().
|
protected |
Definition at line 54 of file PtAssignmentEngine.h.
Referenced by PtAssignmentEngine2016::calculate_pt_xml(), and configure().