#include <L1TrackQuality.h>
Public Member Functions | |
std::vector< float > | featureTransform (TTTrack< Ref_Phase2TrackerDigi_ > &aTrack, std::vector< std::string > const &featureNames) |
L1TrackQuality () | |
L1TrackQuality (const edm::ParameterSet &qualityParams) | |
float | runEmulatedTQ (std::vector< ap_fixed< 10, 5 >> inputFeatures) |
void | setBonusFeatures (std::vector< float > bonusFeatures) |
void | setL1TrackQuality (TTTrack< Ref_Phase2TrackerDigi_ > &aTrack) |
void | setModel (edm::FileInPath const &model, std::vector< std::string > const &featureNames) |
~L1TrackQuality ()=default | |
Static Public Member Functions | |
static constexpr std::array< double, 1<< TTTrack_TrackWord::TrackBitWidths::kMVAQualitySize > | getTqMVAPreSigBins () |
static constexpr double | invSigmoid (double value) |
Private Attributes | |
std::vector< float > | bonusFeatures_ |
std::vector< std::string > | featureNames_ |
edm::FileInPath | model_ |
bool | useHPH_ |
Definition at line 28 of file L1TrackQuality.h.
L1TrackQuality::L1TrackQuality | ( | ) |
Definition at line 10 of file L1TrackQuality.cc.
L1TrackQuality::L1TrackQuality | ( | const edm::ParameterSet & | qualityParams | ) |
Definition at line 12 of file L1TrackQuality.cc.
References edm::ParameterSet::getParameter(), and setModel().
|
default |
std::vector< float > L1TrackQuality::featureTransform | ( | TTTrack< Ref_Phase2TrackerDigi_ > & | aTrack, |
std::vector< std::string > const & | featureNames | ||
) |
Definition at line 18 of file L1TrackQuality.cc.
References funct::abs(), TTTrack< T >::eta(), TrackQualityParams_cfi::featureNames, ALCARECOEcalPhiSym_cff::float, TTTrack_TrackWord::getBendChi2Bits(), TTTrack_TrackWord::getChi2RPhiBits(), TTTrack_TrackWord::getChi2RZBits(), TTTrack< T >::getStubRefs(), TTTrack< T >::hitPattern(), mps_fire::i, TTTrack_TrackWord::minZ0, TTTrack< T >::phi(), cmsswSequenceInfo::seq, AlCaHLTBitMon_QueryRunRegistry::string, TTTrack< T >::tanL(), and TTTrack< T >::z0().
Referenced by setL1TrackQuality().
|
inlinestatic |
Definition at line 55 of file L1TrackQuality.h.
References invSigmoid(), and TTTrack_TrackWord::tqMVABins.
Referenced by trklet::ProducerKFout::produce().
|
inlinestatic |
Definition at line 54 of file L1TrackQuality.h.
References CrabHelper::log.
Referenced by getTqMVAPreSigBins().
float L1TrackQuality::runEmulatedTQ | ( | std::vector< ap_fixed< 10, 5 >> | inputFeatures | ) |
Definition at line 96 of file L1TrackQuality.cc.
References edm::FileInPath::fullPath(), and model_.
void L1TrackQuality::setBonusFeatures | ( | std::vector< float > | bonusFeatures | ) |
void L1TrackQuality::setL1TrackQuality | ( | TTTrack< Ref_Phase2TrackerDigi_ > & | aTrack | ) |
Definition at line 86 of file L1TrackQuality.cc.
References JetChargeProducer_cfi::exp, featureNames_, featureTransform(), edm::FileInPath::fullPath(), PixelMapPlotter::inputs, model_, and TTTrack< T >::settrkMVA1().
void L1TrackQuality::setModel | ( | edm::FileInPath const & | model, |
std::vector< std::string > const & | featureNames | ||
) |
Definition at line 106 of file L1TrackQuality.cc.
References TrackQualityParams_cfi::featureNames, featureNames_, isotrackApplyRegressor::model, and model_.
Referenced by L1TrackQuality().
|
private |
Definition at line 71 of file L1TrackQuality.h.
Referenced by setBonusFeatures().
|
private |
Definition at line 69 of file L1TrackQuality.h.
Referenced by setL1TrackQuality(), and setModel().
|
private |
Definition at line 68 of file L1TrackQuality.h.
Referenced by runEmulatedTQ(), setL1TrackQuality(), and setModel().
|
private |
Definition at line 70 of file L1TrackQuality.h.
Referenced by setBonusFeatures().