This class analyses the reconstruction quality for a given track. More...
#include <TrackQuality.h>
Classes | |
struct | Layer |
Public Types | |
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... | |
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... | |
TrackQuality (const edm::ParameterSet &, edm::ConsumesCollector &iC) | |
Constructor by pset. More... | |
Private Attributes | |
std::unique_ptr< TrackerHitAssociator > | associator_ |
std::vector< Layer > | layers_ |
TrackerHitAssociator::Config | trackerHitAssociatorConfig_ |
This class analyses the reconstruction quality for a given track.
Definition at line 28 of file TrackQuality.h.
typedef std::vector<TrackingParticleRef> TrackQuality::SimParticleTrail |
Definition at line 30 of file TrackQuality.h.
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, hcalRecHitTable_cff::detId, 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().
|
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_, makeMEIFBenchmarkPlots::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().
|
private |
Definition at line 81 of file TrackQuality.h.
Referenced by evaluate(), and newEvent().
|
private |
Definition at line 83 of file TrackQuality.h.
Referenced by evaluate(), layer(), and numberOfLayers().
|
private |
Definition at line 80 of file TrackQuality.h.
Referenced by newEvent().