CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTLinearDriftFromDBAlgo.h
Go to the documentation of this file.
1 #ifndef RecoLocalMuon_DTLinearDrifFromDBtAlgo_H
2 #define RecoLocalMuon_DTLinearDriftFromDBAlgo_H
3 
15 
16 class DTMtime;
17 
19  public:
22 
24  virtual ~DTLinearDriftFromDBAlgo();
25 
26  // Operations
27 
29  virtual void setES(const edm::EventSetup& setup);
30 
31 
36  virtual bool compute(const DTLayer* layer,
37  const DTDigi& digi,
38  LocalPoint& leftPoint,
39  LocalPoint& rightPoint,
40  LocalError& error) const;
41 
42 
46  virtual bool compute(const DTLayer* layer,
47  const DTRecHit1D& recHit1D,
48  const float& angle,
49  DTRecHit1D& newHit1D) const;
50 
51 
57  virtual bool compute(const DTLayer* layer,
58  const DTRecHit1D& recHit1D,
59  const float& angle,
60  const GlobalPoint& globPos,
61  DTRecHit1D& newHit1D) const;
62 
63 
64  private:
65 
66  // Do the actual work.
67  virtual bool compute(const DTLayer* layer,
68  const DTWireId& wireId,
69  const float digiTime,
70  const GlobalPoint& globPos,
71  LocalPoint& leftPoint,
72  LocalPoint& rightPoint,
73  LocalError& error,
74  int step) const;
75 
76  // Interface to the method which does the actual work suited for 2nd and 3rd steps
77  virtual bool compute(const DTLayer* layer,
78  const DTWireId& wireId,
79  const float digiTime,
80  const GlobalPoint& globPos,
81  DTRecHit1D& newHit1D,
82  int step) const;
83 
84  //Map of meantimes
85  const DTMtime *mTimeMap;
86 
87  // Times below MinTime (ns) are considered as coming from previous BXs.
88  static float minTime;
89 
90  // Times above MaxTime (ns) are considered as coming from following BXs
91  static float maxTime;
92 
93  // Perform a correction to vDrift for the external wheels
95 
96  // Switch recalculating hit parameters from digi time in Step 2
97  // (when off, Step 2 does nothing)
99 
100  // Switch on/off the verbosity
101  static bool debug;
102 };
103 #endif
104 
105 
list step
Definition: launcher.py:15
virtual bool compute(const DTLayer *layer, const DTDigi &digi, LocalPoint &leftPoint, LocalPoint &rightPoint, LocalError &error) const
virtual ~DTLinearDriftFromDBAlgo()
Destructor.
virtual void setES(const edm::EventSetup &setup)
Pass the Event Setup to the algo at each event.
Definition: DTDigi.h:19
DTLinearDriftFromDBAlgo(const edm::ParameterSet &config)
Constructor.
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
T angle(T x1, T y1, T z1, T x2, T y2, T z2)
Definition: angle.h:11