CMS 3D CMS Logo

TrackQuality.h
Go to the documentation of this file.
1 /*
2  * TrackQuality.h
3  *
4  * Created by Christophe Saout on 9/25/08.
5  * 2007 __MyCompanyName__.
6  *
7  */
8 
9 #ifndef TrackQuality_h
10 #define TrackQuality_h
11 
12 #include <memory>
13 #include <vector>
14 
16 
18 
22 
24 
25 class TrackerTopology;
26 
28 class TrackQuality {
29 public:
30  typedef std::vector<TrackingParticleRef> SimParticleTrail;
31 
32  struct Layer {
33  enum SubDet {
34  Invalid = 0,
45  };
46 
48 
49  struct Hit {
50  short int recHitId;
52  };
53 
55  short int layer;
56  std::vector<Hit> hits;
57  };
58 
59 public:
61  /* Creates a TrackQuality object from a pset.
62 
63  /param[in] pset with the configuration values
64  */
66 
68  void newEvent(const edm::Event &, const edm::EventSetup &);
69 
71  void evaluate(SimParticleTrail const &, reco::TrackBaseRef const &, const TrackerTopology *tTopo);
72 
74  unsigned int numberOfLayers() const { return layers_.size(); }
75 
77  const Layer &layer(unsigned int index) const { return layers_[index]; }
78 
79 private:
81  std::unique_ptr<TrackerHitAssociator> associator_;
82 
83  std::vector<Layer> layers_;
84 };
85 
86 #endif
TrackQuality::numberOfLayers
unsigned int numberOfLayers() const
Return the number of layers with simulated and/or reconstructed hits.
Definition: TrackQuality.h:74
TrackQuality::Layer::hits
std::vector< Hit > hits
Definition: TrackQuality.h:56
TrackQuality::Layer::StripTEC
Definition: TrackQuality.h:40
Handle.h
TrackQuality::Layer::Shared
Definition: TrackQuality.h:47
TrackQuality::layers_
std::vector< Layer > layers_
Definition: TrackQuality.h:83
TrackerTopology
Definition: TrackerTopology.h:16
TrackQuality::Layer::StripTIB
Definition: TrackQuality.h:37
TrackerHitAssociator.h
TrackQuality::Layer::Hit
Definition: TrackQuality.h:49
TrackerHitAssociator::Config
Definition: TrackerHitAssociator.h:57
TrackQuality::Layer::Hit::recHitId
short int recHitId
Definition: TrackQuality.h:50
TrackQuality::associator_
std::unique_ptr< TrackerHitAssociator > associator_
Definition: TrackQuality.h:81
TrackQuality::layer
const Layer & layer(unsigned int index) const
Return information about the given layer by index.
Definition: TrackQuality.h:77
TrackQuality::Layer::PixelForward
Definition: TrackQuality.h:36
TrackFwd.h
TrackQuality::Layer::Unknown
Definition: TrackQuality.h:47
TrackQuality
This class analyses the reconstruction quality for a given track.
Definition: TrackQuality.h:28
TrackQuality::Layer::MuonCSC
Definition: TrackQuality.h:42
TrackQuality::Layer::Hit::state
State state
Definition: TrackQuality.h:51
TrackQuality::Layer::Noise
Definition: TrackQuality.h:47
TrackQuality::Layer::StripTOB
Definition: TrackQuality.h:39
TrackQuality::SimParticleTrail
std::vector< TrackingParticleRef > SimParticleTrail
Definition: TrackQuality.h:30
edm::ParameterSet
Definition: ParameterSet.h:36
TrackQuality::Layer::StripTID
Definition: TrackQuality.h:38
TrackQuality::Layer::Bad
Definition: TrackQuality.h:47
TrackQuality::Layer::Good
Definition: TrackQuality.h:47
TrackQuality::Layer::MuonRPCEndcap
Definition: TrackQuality.h:44
TrackQuality::Layer::Missed
Definition: TrackQuality.h:47
edm::EventSetup
Definition: EventSetup.h:57
DetSetVector.h
TrackQuality::newEvent
void newEvent(const edm::Event &, const edm::EventSetup &)
Pre-process event information (for accessing reconstruction information)
Definition: TrackQuality.cc:136
TrackQuality::evaluate
void evaluate(SimParticleTrail const &, reco::TrackBaseRef const &, const TrackerTopology *tTopo)
Compute information about the track reconstruction quality.
Definition: TrackQuality.cc:140
TrackQuality::Layer::Invalid
Definition: TrackQuality.h:34
TrackQuality::TrackQuality
TrackQuality(const edm::ParameterSet &, edm::ConsumesCollector &iC)
Constructor by pset.
Definition: TrackQuality.cc:133
TrackQuality::Layer::PixelBarrel
Definition: TrackQuality.h:35
TrackQuality::trackerHitAssociatorConfig_
TrackerHitAssociator::Config trackerHitAssociatorConfig_
Definition: TrackQuality.h:80
TrackingParticle.h
TrackQuality::Layer::layer
short int layer
Definition: TrackQuality.h:55
edm::RefToBase< reco::Track >
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
TrackQuality::Layer::MuonRPCBarrel
Definition: TrackQuality.h:43
ParameterSet.h
TrackQuality::Layer::subDet
SubDet subDet
Definition: TrackQuality.h:54
TrackQuality::Layer::SubDet
SubDet
Definition: TrackQuality.h:33
edm::Event
Definition: Event.h:73
TrackQuality::Layer
Definition: TrackQuality.h:32
TrackQuality::Layer::Dead
Definition: TrackQuality.h:47
TrackQuality::Layer::Misassoc
Definition: TrackQuality.h:47
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
TrackQuality::Layer::State
State
Definition: TrackQuality.h:47
TrackQuality::Layer::MuonDT
Definition: TrackQuality.h:41