This class analyses the reconstruction quality for a given track. More...
#include <TrackQuality.h>
Classes | |
struct | Layer |
Public Types | |
enum | QualityAlgorithm { QualityAlgorithm::Cut, QualityAlgorithm::GBDT, QualityAlgorithm::NN, QualityAlgorithm::None } |
typedef std::vector< TrackingParticleRef > | SimParticleTrail |
Public Member Functions | |
void | evaluate (SimParticleTrail const &, reco::TrackBaseRef const &, const TrackerTopology *tTopo) |
Compute information about the track reconstruction quality. More... | |
std::vector< float > | featureTransform (TTTrack< Ref_Phase2TrackerDigi_ > &aTrack, std::vector< std::string > const &featureNames) |
const Layer & | layer (unsigned int index) const |
Return information about the given layer by index. More... | |
void | newEvent (const edm::Event &, const edm::EventSetup &) |
Pre-process event information (for accessing reconstruction information) More... | |
unsigned int | numberOfLayers () const |
Return the number of layers with simulated and/or reconstructed hits. More... | |
void | setCutParameters (std::string const &AlgorithmString, float maxZ0, float maxEta, float chi2dofMax, float bendchi2Max, float minPt, int nStubmin) |
void | setONNXModel (std::string const &AlgorithmString, edm::FileInPath const &ONNXmodel, std::string const &ONNXInputName, std::vector< std::string > const &featureNames) |
void | setTrackQuality (TTTrack< Ref_Phase2TrackerDigi_ > &aTrack) |
TrackQuality () | |
TrackQuality (const edm::ParameterSet &, edm::ConsumesCollector &iC) | |
Constructor by pset. More... | |
TrackQuality (const edm::ParameterSet &qualityParams) | |
~TrackQuality ()=default | |
Private Attributes | |
std::unique_ptr< TrackerHitAssociator > | associator_ |
float | bendchi2Max_ |
float | chi2dofMax_ |
std::vector< std::string > | featureNames_ |
std::vector< Layer > | layers_ |
float | maxEta_ |
float | maxZ0_ |
float | minPt_ |
int | nStubsmin_ |
std::string | ONNXInputName_ |
float | ONNXInvRScaling_ |
edm::FileInPath | ONNXmodel_ |
QualityAlgorithm | qualityAlgorithm_ = QualityAlgorithm::None |
TrackerHitAssociator::Config | trackerHitAssociatorConfig_ |
This class analyses the reconstruction quality for a given track.
Definition at line 29 of file TrackQuality.h.
typedef std::vector<TrackingParticleRef> TrackQuality::SimParticleTrail |
Definition at line 30 of file TrackQuality.h.
|
strong |
TrackQuality::TrackQuality | ( | ) |
Definition at line 12 of file TrackQuality.cc.
TrackQuality::TrackQuality | ( | const edm::ParameterSet & | qualityParams | ) |
Definition at line 14 of file TrackQuality.cc.
References edm::ParameterSet::getParameter(), ONNXInvRScaling_, setCutParameters(), setONNXModel(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
default |
TrackQuality::TrackQuality | ( | const edm::ParameterSet & | config, |
edm::ConsumesCollector & | iC | ||
) |
Constructor by pset.
Definition at line 135 of file TrackQuality.cc.
void TrackQuality::evaluate | ( | SimParticleTrail const & | spt, |
reco::TrackBaseRef const & | tr, | ||
const TrackerTopology * | tTopo | ||
) |
Compute information about the track reconstruction quality.
Definition at line 142 of file TrackQuality.cc.
References associator_, TrackQuality::Layer::Bad, TrackingRecHit::bad, gather_cfg::cout, TrackQuality::Layer::Dead, DetId::det(), getDetLayer(), TrackQuality::Layer::hits, mps_fire::i, TrackingRecHit::inactive, TrackQuality::Layer::layer, layer(), layers_, TrackQuality::Layer::Misassoc, TrackQuality::Layer::Missed, DetId::Muon, TrackQuality::Layer::Noise, TrackQuality::Layer::Hit::recHitId, reco::Track::recHitsBegin(), reco::Track::recHitsEnd(), TrackQuality::Layer::Hit::state, statePriorities, TrackQuality::Layer::subDet, and TrackQuality::Layer::Unknown.
Referenced by TrackClassifier::qualityInformation().
std::vector< float > TrackQuality::featureTransform | ( | TTTrack< Ref_Phase2TrackerDigi_ > & | aTrack, |
std::vector< std::string > const & | featureNames | ||
) |
Definition at line 36 of file TrackQuality.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 setTrackQuality().
|
inline |
Return information about the given layer by index.
Definition at line 77 of file TrackQuality.h.
References layers_.
Referenced by evaluate(), geometryXMLparser.DTAlignable::index(), geometryXMLparser.CSCAlignable::index(), and TrackClassifier::qualityInformation().
void TrackQuality::newEvent | ( | const edm::Event & | ev, |
const edm::EventSetup & | es | ||
) |
Pre-process event information (for accessing reconstruction information)
Definition at line 138 of file TrackQuality.cc.
References associator_, ev, and trackerHitAssociatorConfig_.
Referenced by TrackClassifier::newEvent().
|
inline |
Return the number of layers with simulated and/or reconstructed hits.
Definition at line 74 of file TrackQuality.h.
References layers_.
Referenced by TrackClassifier::qualityInformation().
void TrackQuality::setCutParameters | ( | std::string const & | AlgorithmString, |
float | maxZ0, | ||
float | maxEta, | ||
float | chi2dofMax, | ||
float | bendchi2Max, | ||
float | minPt, | ||
int | nStubmin | ||
) |
Definition at line 275 of file TrackQuality.cc.
References TrackQualityParams_cfi::bendchi2Max, bendchi2Max_, TrackQualityParams_cfi::chi2dofMax, chi2dofMax_, Cut, maxEta, maxEta_, TrackQualityParams_cfi::maxZ0, maxZ0_, beam_dqm_sourceclient-live_cfg::minPt, minPt_, nStubsmin_, and qualityAlgorithm_.
Referenced by TrackQuality().
void TrackQuality::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 TrackQuality.cc.
References TrackQualityParams_cfi::featureNames, featureNames_, GBDT, NN, None, TrackQualityParams_cfi::ONNXInputName, ONNXInputName_, TrackQualityParams_cfi::ONNXmodel, ONNXmodel_, and qualityAlgorithm_.
Referenced by TrackQuality().
void TrackQuality::setTrackQuality | ( | TTTrack< Ref_Phase2TrackerDigi_ > & | aTrack | ) |
Definition at line 215 of file TrackQuality.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().
|
private |
Definition at line 81 of file TrackQuality.h.
Referenced by evaluate(), and newEvent().
|
private |
Definition at line 72 of file TrackQuality.h.
Referenced by setCutParameters(), and setTrackQuality().
|
private |
Definition at line 71 of file TrackQuality.h.
Referenced by setCutParameters(), and setTrackQuality().
|
private |
Definition at line 68 of file TrackQuality.h.
Referenced by setONNXModel(), and setTrackQuality().
|
private |
Definition at line 83 of file TrackQuality.h.
Referenced by evaluate(), layer(), and numberOfLayers().
|
private |
Definition at line 70 of file TrackQuality.h.
Referenced by setCutParameters(), and setTrackQuality().
|
private |
Definition at line 69 of file TrackQuality.h.
Referenced by setCutParameters(), and setTrackQuality().
|
private |
Definition at line 73 of file TrackQuality.h.
Referenced by setCutParameters(), and setTrackQuality().
|
private |
Definition at line 74 of file TrackQuality.h.
Referenced by setCutParameters(), and setTrackQuality().
|
private |
Definition at line 67 of file TrackQuality.h.
Referenced by setONNXModel(), and setTrackQuality().
|
private |
Definition at line 75 of file TrackQuality.h.
Referenced by featureTransform(), and TrackQuality().
|
private |
Definition at line 66 of file TrackQuality.h.
Referenced by setONNXModel(), and setTrackQuality().
|
private |
Definition at line 65 of file TrackQuality.h.
Referenced by setCutParameters(), setONNXModel(), and setTrackQuality().
|
private |
Definition at line 80 of file TrackQuality.h.
Referenced by newEvent().