CMS 3D CMS Logo

DTLinearDriftAlgo.h
Go to the documentation of this file.
1 #ifndef RecoLocalMuon_DTLinearDriftAlgo_H
2 #define RecoLocalMuon_DTLinearDriftAlgo_H
3 
13 
15 public:
18 
20  ~DTLinearDriftAlgo() override;
21 
22  // Operations
23 
25  void setES(const edm::EventSetup& setup) override;
26 
31  bool compute(const DTLayer* layer,
32  const DTDigi& digi,
33  LocalPoint& leftPoint,
34  LocalPoint& rightPoint,
35  LocalError& error) const override;
36 
40  bool compute(const DTLayer* layer,
41  const DTRecHit1D& recHit1D,
42  const float& angle,
43  DTRecHit1D& newHit1D) const override;
44 
50  bool compute(const DTLayer* layer,
51  const DTRecHit1D& recHit1D,
52  const float& angle,
53  const GlobalPoint& globPos,
54  DTRecHit1D& newHit1D) const override;
55 
56 private:
57  // Do the actual work.
58  virtual bool compute(const DTLayer* layer,
59  const DTWireId& wireId,
60  const float digiTime,
61  const GlobalPoint& globPos,
62  LocalPoint& leftPoint,
63  LocalPoint& rightPoint,
64  LocalError& error,
65  int step) const;
66 
67  // Interface to the method which does the actual work suited for 2nd and 3rd steps
68  virtual bool compute(const DTLayer* layer,
69  const DTWireId& wireId,
70  const float digiTime,
71  const GlobalPoint& globPos,
72  DTRecHit1D& newHit1D,
73  int step) const;
74 
75  // The Drift Velocity (cm/ns)
76  const float vDrift;
77  // // The Drift Velocity (cm/ns) for MB1 Wheel1 (non fluxed chamber) 21-Dec-2006 SL
78  // const float vDriftMB1W1;
79 
80  // The resolution on the Hits (cm)
81  const float hitResolution;
82 
83  // Times below MinTime (ns) are considered as coming from previous BXs.
84  const float minTime;
85 
86  // Times above MaxTime (ns) are considered as coming from following BXs
87  const float maxTime;
88 
89  // Switch on/off the verbosity
90  const bool debug;
91 };
92 #endif
void setES(const edm::EventSetup &setup) override
Pass the Event Setup to the algo at each event.
bool compute(const DTLayer *layer, const DTDigi &digi, LocalPoint &leftPoint, LocalPoint &rightPoint, LocalError &error) const override
Definition: config.py:1
~DTLinearDriftAlgo() override
Destructor.
Definition: DTDigi.h:17
const float hitResolution
DTLinearDriftAlgo(const edm::ParameterSet &config)
Constructor.
step
Definition: StallMonitor.cc:94
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11