#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 | 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_ |
float | chi2dofMax_ |
std::vector< std::string > | featureNames_ |
float | maxEta_ |
float | maxZ0_ |
float | minPt_ |
int | nStubsmin_ |
std::string | ONNXInputName_ |
float | ONNXInvRScaling_ |
edm::FileInPath | ONNXmodel_ |
QualityAlgorithm | qualityAlgorithm_ = QualityAlgorithm::None |
Definition at line 27 of file L1TrackQuality.h.
|
strong |
Enumerator | |
---|---|
Cut | |
GBDT | |
NN | |
None |
Definition at line 30 of file L1TrackQuality.h.
L1TrackQuality::L1TrackQuality | ( | ) |
Definition at line 12 of file L1TrackQuality.cc.
L1TrackQuality::L1TrackQuality | ( | const edm::ParameterSet & | qualityParams | ) |
Definition at line 14 of file L1TrackQuality.cc.
References edm::ParameterSet::getParameter(), ONNXInvRScaling_, 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 36 of file L1TrackQuality.cc.
References funct::abs(), TTTrack< T >::chi2(), TTTrack< T >::chi2XY(), TTTrack< T >::chi2Z(), PVValHelper::eta, TTTrack< T >::eta(), TrackQualityParams_cfi::featureNames, dqmMemoryStats::float, TTTrack< T >::getStubRefs(), TTTrack< T >::hitPattern(), mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, dqm-mbProfile::log, TTTrack< T >::momentum(), ONNXInvRScaling_, PV3DBase< T, PVType, FrameType >::perp(), TTTrack< T >::phi(), TTTrack< T >::rInv(), cmsswSequenceInfo::seq, AlCaHLTBitMon_QueryRunRegistry::string, TTTrack< T >::stubPtConsistency(), TTTrack< T >::tanL(), and TTTrack< T >::z0().
Referenced by setL1TrackQuality().
void L1TrackQuality::setCutParameters | ( | std::string const & | AlgorithmString, |
float | maxZ0, | ||
float | maxEta, | ||
float | chi2dofMax, | ||
float | bendchi2Max, | ||
float | minPt, | ||
int | nStubmin | ||
) |
Definition at line 275 of file L1TrackQuality.cc.
References L1TPhase2Offline_cfi::bendchi2Max, bendchi2Max_, L1TPhase2Offline_cfi::chi2dofMax, chi2dofMax_, Cut, maxEta, maxEta_, L1TPhase2Offline_cfi::maxZ0, maxZ0_, beam_dqm_sourceclient-live_cfg::minPt, minPt_, nStubsmin_, and qualityAlgorithm_.
Referenced by L1TrackQuality().
void L1TrackQuality::setL1TrackQuality | ( | TTTrack< Ref_Phase2TrackerDigi_ > & | aTrack | ) |
Definition at line 215 of file L1TrackQuality.cc.
References funct::abs(), bendchi2Max_, TTTrack< T >::chi2(), chi2dofMax_, Cut, PV3DBase< T, PVType, FrameType >::eta(), featureNames_, featureTransform(), edm::FileInPath::fullPath(), GBDT, cms::Ort::ONNXRuntime::getOutputNames(), TTTrack< T >::getStubRefs(), maxEta_, maxZ0_, minPt_, TTTrack< T >::momentum(), NN, nStubsmin_, ONNXInputName_, ONNXmodel_, PV3DBase< T, PVType, FrameType >::perp(), qualityAlgorithm_, TTTrack< T >::settrkMVA1(), TTTrack< T >::stubPtConsistency(), 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 291 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 70 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 69 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 68 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 67 of file L1TrackQuality.h.
Referenced by setCutParameters(), and setL1TrackQuality().
|
private |
Definition at line 71 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 65 of file L1TrackQuality.h.
Referenced by setL1TrackQuality(), and setONNXModel().
|
private |
Definition at line 73 of file L1TrackQuality.h.
Referenced by featureTransform(), and L1TrackQuality().
|
private |
Definition at line 64 of file L1TrackQuality.h.
Referenced by setL1TrackQuality(), and setONNXModel().
|
private |
Definition at line 63 of file L1TrackQuality.h.
Referenced by setCutParameters(), setL1TrackQuality(), and setONNXModel().