#include <L1TrackQuality.h>
Public Types | |
enum | QualityAlgorithm { QualityAlgorithm::Cut, QualityAlgorithm::GBDT, 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) | |
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 26 of file L1TrackQuality.h.
|
strong |
Enumerator | |
---|---|
Cut | |
GBDT | |
NN | |
None |
Definition at line 29 of file L1TrackQuality.h.
L1TrackQuality::L1TrackQuality | ( | ) |
Definition at line 11 of file L1TrackQuality.cc.
L1TrackQuality::L1TrackQuality | ( | const edm::ParameterSet & | qualityParams | ) |
Definition at line 13 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 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< T >::phi(), cmsswSequenceInfo::seq, AlCaHLTBitMon_QueryRunRegistry::string, and TTTrack< T >::z0().
Referenced by setL1TrackQuality().
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 159 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 99 of file L1TrackQuality.cc.
References funct::abs(), bendchi2Max_, TTTrack< T >::chi2(), chi2dofMax_, Cut, PV3DBase< T, PVType, FrameType >::eta(), featureNames_, featureTransform(), GBDT, TTTrack< T >::getStubRefs(), maxEta_, maxZ0_, minPt_, TTTrack< T >::momentum(), NN, nStubsmin_, ONNXInputName_, 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 175 of file L1TrackQuality.cc.
References TrackQualityParams_cfi::featureNames, featureNames_, GBDT, NN, None, TrackQualityParams_cfi::ONNXInputName, ONNXInputName_, TrackQualityParams_cfi::ONNXmodel, ONNXmodel_, and qualityAlgorithm_.
Referenced by L1TrackQuality().
|
private |
Definition at line 71 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 75 of file L1TrackQuality.h.
Referenced by setBonusFeatures().
|
private |
Definition at line 70 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 67 of file L1TrackQuality.h.
Referenced by setL1TrackQuality(), and setONNXModel().
|
private |
Definition at line 69 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 68 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 72 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 73 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 66 of file L1TrackQuality.h.
Referenced by setL1TrackQuality(), and setONNXModel().
|
private |
Definition at line 65 of file L1TrackQuality.h.
Referenced by L1TrackQuality(), and setONNXModel().
|
private |
Definition at line 64 of file L1TrackQuality.h.
Referenced by setCutParameters(), setL1TrackQuality(), and setONNXModel().
|
private |
Definition at line 76 of file L1TrackQuality.h.
Referenced by L1TrackQuality(), and setL1TrackQuality().
|
private |
Definition at line 74 of file L1TrackQuality.h.
Referenced by setBonusFeatures().