#include <L1TrackQuality.h>
Public Types | |
enum | QualityAlgorithm { QualityAlgorithm::Cut, QualityAlgorithm::GBDT, QualityAlgorithm::GBDT_cpp, QualityAlgorithm::NN, QualityAlgorithm::None } |
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 | setCutParameters (std::string const &AlgorithmString, float maxZ0, float maxEta, float chi2dofMax, float bendchi2Max, float minPt, int nStubmin) |
void | setL1TrackQuality (TTTrack< Ref_Phase2TrackerDigi_ > &aTrack) |
void | setONNXModel (std::string const &AlgorithmString, edm::FileInPath const &ONNXmodel, std::string const &ONNXInputName, std::vector< std::string > const &featureNames) |
~L1TrackQuality ()=default | |
Private Attributes | |
float | bendchi2Max_ |
std::vector< float > | bonusFeatures_ |
float | chi2dofMax_ |
std::vector< std::string > | featureNames_ |
float | maxEta_ |
float | maxZ0_ |
float | minPt_ |
int | nStubsmin_ |
std::string | ONNXInputName_ |
edm::FileInPath | ONNXmodel_ |
QualityAlgorithm | qualityAlgorithm_ = QualityAlgorithm::None |
std::unique_ptr< cms::Ort::ONNXRuntime > | runTime_ |
bool | useHPH_ |
Definition at line 29 of file L1TrackQuality.h.
|
strong |
Enumerator | |
---|---|
Cut | |
GBDT | |
GBDT_cpp | |
NN | |
None |
Definition at line 32 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::FileInPath::fullPath(), edm::ParameterSet::getParameter(), ONNXmodel_, runTime_, setCutParameters(), setONNXModel(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
default |
std::vector< float > L1TrackQuality::featureTransform | ( | TTTrack< Ref_Phase2TrackerDigi_ > & | aTrack, |
std::vector< std::string > const & | featureNames | ||
) |
Definition at line 35 of file L1TrackQuality.cc.
References funct::abs(), TTTrack< T >::eta(), TrackQualityParams_cfi::featureNames, nano_mu_digi_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().
float L1TrackQuality::runEmulatedTQ | ( | std::vector< ap_fixed< 10, 5 >> | inputFeatures | ) |
Definition at line 173 of file L1TrackQuality.cc.
References edm::FileInPath::fullPath(), and ONNXmodel_.
void L1TrackQuality::setBonusFeatures | ( | std::vector< float > | bonusFeatures | ) |
void L1TrackQuality::setCutParameters | ( | std::string const & | AlgorithmString, |
float | maxZ0, | ||
float | maxEta, | ||
float | chi2dofMax, | ||
float | bendchi2Max, | ||
float | minPt, | ||
int | nStubmin | ||
) |
Definition at line 183 of file L1TrackQuality.cc.
References L1TPhase2Offline_cfi::bendchi2Max, bendchi2Max_, L1TPhase2Offline_cfi::chi2dofMax, chi2dofMax_, Cut, razorScouting_cff::maxEta, maxEta_, L1TPhase2Offline_cfi::maxZ0, maxZ0_, PV_cfg::minPt, minPt_, nStubsmin_, and qualityAlgorithm_.
Referenced by L1TrackQuality().
void L1TrackQuality::setL1TrackQuality | ( | TTTrack< Ref_Phase2TrackerDigi_ > & | aTrack | ) |
Definition at line 103 of file L1TrackQuality.cc.
References funct::abs(), bendchi2Max_, TTTrack< T >::chi2(), chi2dofMax_, Cut, PV3DBase< T, PVType, FrameType >::eta(), JetChargeProducer_cfi::exp, featureNames_, featureTransform(), edm::FileInPath::fullPath(), GBDT, GBDT_cpp, TTTrack< T >::getStubRefs(), PixelMapPlotter::inputs, maxEta_, maxZ0_, minPt_, TTTrack< T >::momentum(), NN, nStubsmin_, ONNXInputName_, ONNXmodel_, PV3DBase< T, PVType, FrameType >::perp(), qualityAlgorithm_, runTime_, TTTrack< T >::settrkMVA1(), TTTrack< T >::stubPtConsistency(), run3scouting_cff::trk_chi2, run3scouting_cff::trk_eta, run3scouting_cff::trk_pt, and TTTrack< T >::z0().
void L1TrackQuality::setONNXModel | ( | std::string const & | AlgorithmString, |
edm::FileInPath const & | ONNXmodel, | ||
std::string const & | ONNXInputName, | ||
std::vector< std::string > const & | featureNames | ||
) |
Definition at line 199 of file L1TrackQuality.cc.
References TrackQualityParams_cfi::featureNames, featureNames_, GBDT, GBDT_cpp, NN, None, TrackQualityParams_cfi::ONNXInputName, ONNXInputName_, TrackQualityParams_cfi::ONNXmodel, ONNXmodel_, and qualityAlgorithm_.
Referenced by L1TrackQuality().
|
private |
Definition at line 77 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 81 of file L1TrackQuality.h.
Referenced by setBonusFeatures().
|
private |
Definition at line 76 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 73 of file L1TrackQuality.h.
Referenced by setL1TrackQuality(), and setONNXModel().
|
private |
Definition at line 75 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 74 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 78 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 79 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 72 of file L1TrackQuality.h.
Referenced by setL1TrackQuality(), and setONNXModel().
|
private |
Definition at line 71 of file L1TrackQuality.h.
Referenced by L1TrackQuality(), runEmulatedTQ(), setL1TrackQuality(), and setONNXModel().
|
private |
Definition at line 70 of file L1TrackQuality.h.
Referenced by setCutParameters(), setL1TrackQuality(), and setONNXModel().
|
private |
Definition at line 82 of file L1TrackQuality.h.
Referenced by L1TrackQuality(), and setL1TrackQuality().
|
private |
Definition at line 80 of file L1TrackQuality.h.
Referenced by setBonusFeatures().