CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTTTrigSyncTOFCorr.h
Go to the documentation of this file.
1 #ifndef RecoLocalMuon_DTTTrigSyncTOFCorr_H
2 #define RecoLocalMuon_DTTTrigSyncTOFCorr_H
3 
40 
41 
42 
43 class DTLayer;
44 class DTWireId;
45 
46 namespace edm {
47  class ParameterSet;
48 }
49 
51 public:
54 
56  virtual ~DTTTrigSyncTOFCorr();
57 
58  // Operations
59 
61  virtual void setES(const edm::EventSetup& setup) {}
62 
63 
72  virtual double offset(const DTLayer* layer,
73  const DTWireId& wireId,
74  const GlobalPoint& globPos,
75  double& tTrig,
76  double& wirePropCorr,
77  double& tofCorr);
78 
79  virtual double offset(const DTWireId& wireId);
80 
86  virtual double emulatorOffset(const DTWireId& wireId,
87  double &tTrig,
88  double &t0cell);
89 
90  private:
91  // The fixed t_trig to be subtracted to digi time (ns)
92  const double theTTrig;
93  // Velocity of signal propagation along the wire (cm/ns)
94  // For the value
95  // cfr. CMS-IN 2000-021: (2.56+-0.17)x1e8 m/s
96  // CMS NOTE 2003-17: (0.244) m/ns = 24.4 cm/ns
97  const double theVPropWire;
98 
99  // Select the mode for TOF correction:
100  // 0: tofCorr = TOF from IP to 3D Hit position (globPos)
101  // 1: tofCorr = TOF correction for distance difference
102  // between 3D center of the chamber and hit position
103  // 2: tofCorr = TOF correction for distance difference
104  // between 3D center of the wire and hit position
105  const int theTOFCorrType;
106 
107  // Set the verbosity level
108  const bool debug;
109  // spacing of BX in ns
110  double theBXspace;
111 };
112 #endif
113 
virtual void setES(const edm::EventSetup &setup)
Pass the Event Setup to the algo at each event.
virtual ~DTTTrigSyncTOFCorr()
Destructor.
const double theVPropWire
virtual double offset(const DTLayer *layer, const DTWireId &wireId, const GlobalPoint &globPos, double &tTrig, double &wirePropCorr, double &tofCorr)
DTTTrigSyncTOFCorr(const edm::ParameterSet &config)
Constructor.
virtual double emulatorOffset(const DTWireId &wireId, double &tTrig, double &t0cell)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")