CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DTTimingExtractor.h
Go to the documentation of this file.
1 #ifndef MuonIdentification_DTTimingExtractor_H
2 #define MuonIdentification_DTTimingExtractor_H
3 
9 //
10 // Original Author: Traczyk Piotr
11 // Created: Thu Oct 11 15:01:28 CEST 2007
12 //
13 //
14 
15 // system include files
16 #include <memory>
17 
18 // user include files
20 
22 
24 
26 
28 
31 
36 
41 
42 #include <vector>
43 
44 namespace edm {
45  class ParameterSet;
46  class EventSetup;
47  class InputTag;
48 } // namespace edm
49 
50 class MuonServiceProxy;
51 class DTGeometry;
52 class MuonGeometryRecord;
53 class Propagator;
55 
57 public:
60 
63 
65  public:
66  bool isLeft;
67  bool isPhi;
68  float posInLayer;
69  float distIP;
70  float timeCorr;
71  int station;
73  };
74 
75  void fillTiming(TimeMeasurementSequence& tmSequence,
76  const std::vector<const DTRecSegment4D*>& segments,
77  reco::TrackRef muonTrack,
78  const edm::Event& iEvent,
79  const edm::EventSetup& iSetup);
80 
81  void fillTiming(TimeMeasurementSequence& tmSequence,
82  reco::TrackRef muonTrack,
83  const edm::Event& iEvent,
84  const edm::EventSetup& iSetup);
85 
86 private:
87  double fitT0(double& a,
88  double& b,
89  const std::vector<double>& xl,
90  const std::vector<double>& yl,
91  const std::vector<double>& xr,
92  const std::vector<double>& yr);
93 
95  unsigned int theHitsMin_;
96  double thePruneCut_;
98  double theError_;
103  bool debug;
104 
105  std::unique_ptr<MuonServiceProxy> theService;
109 };
110 
111 #endif
DTTimingExtractor(const edm::ParameterSet &, MuonSegmentMatcher *segMatcher, edm::ConsumesCollector &)
Constructor.
void fillTiming(TimeMeasurementSequence &tmSequence, const std::vector< const DTRecSegment4D * > &segments, reco::TrackRef muonTrack, const edm::Event &iEvent, const edm::EventSetup &iSetup)
int iEvent
Definition: GenABIO.cc:224
edm::InputTag DTSegmentTags_
~DTTimingExtractor()
Destructor.
std::unique_ptr< MuonServiceProxy > theService
unsigned int theHitsMin_
Definition: DetId.h:17
double b
Definition: hdecay.h:118
MuonSegmentMatcher * theMatcher
double a
Definition: hdecay.h:119
constexpr float xr
edm::ESGetToken< DTGeometry, MuonGeometryRecord > theDTGeomToken
double fitT0(double &a, double &b, const std::vector< double > &xl, const std::vector< double > &yl, const std::vector< double > &xr, const std::vector< double > &yr)
edm::ESGetToken< Propagator, TrackingComponentsRecord > thePropagatorToken