|
15 | 15 |
|
16 | 16 | using namespace std;
|
17 | 17 |
|
18 |
| - |
19 |
| - |
20 |
| -DTTTrigSyncTOFCorr::DTTTrigSyncTOFCorr(const edm::ParameterSet& config){ |
21 |
| - theTTrig = config.getParameter<double>("tTrig"); // FIXME: Default was 500 ns |
22 |
| - theVPropWire = config.getParameter<double>("vPropWire"); // FIXME: Default was 24.4 cm/ns |
23 |
| - theTOFCorrType = config.getParameter<int>("tofCorrType"); // FIXME: Default was 1 |
24 |
| - debug = config.getUntrackedParameter<bool>("debug"); |
25 |
| - // spacing of BX in ns |
26 |
| - theBXspace = config.getUntrackedParameter<double>("bxSpace", 25.); |
27 |
| - |
| 18 | +DTTTrigSyncTOFCorr::DTTTrigSyncTOFCorr(const edm::ParameterSet& config) |
| 19 | +: |
| 20 | + // The fixed t0 (or t_trig) to be subtracted to digi time (ns) |
| 21 | + theTTrig(config.getParameter<double>("tTrig")), // FIXME: Default was 500 ns |
| 22 | + // Velocity of signal propagation along the wire (cm/ns) |
| 23 | + theVPropWire(config.getParameter<double>("vPropWire")), // FIXME: Default was 24.4 cm/ns |
| 24 | + // Select the mode for TOF correction: |
| 25 | + // 0: tofCorr = TOF from IP to 3D Hit position (globPos) |
| 26 | + // 1: tofCorr = TOF correction for distance difference |
| 27 | + // between 3D center of the chamber and hit position |
| 28 | + // (default) |
| 29 | + // 2: tofCorr = TOF correction for distance difference |
| 30 | + // between 3D center of the wire and hit position |
| 31 | + // (This mode in available for backward compatibility) |
| 32 | + theTOFCorrType(config.getParameter<int>("tofCorrType")), // FIXME: Default was 1 |
| 33 | + debug(config.getUntrackedParameter<bool>("debug")), |
| 34 | + theBXspace(config.getUntrackedParameter<double>("bxSpace", 25.)) // spacing of BX in ns |
| 35 | +{ |
28 | 36 | }
|
29 | 37 |
|
30 | 38 |
|
@@ -109,33 +117,6 @@ double DTTTrigSyncTOFCorr::offset(const DTWireId& wireId) {
|
109 | 117 | }
|
110 | 118 |
|
111 | 119 |
|
112 |
| -// The fixed t0 (or t_trig) to be subtracted to digi time (ns) |
113 |
| -double DTTTrigSyncTOFCorr::theTTrig; |
114 |
| - |
115 |
| - |
116 |
| - |
117 |
| -// Velocity of signal propagation along the wire (cm/ns) |
118 |
| -double DTTTrigSyncTOFCorr::theVPropWire; |
119 |
| - |
120 |
| - |
121 |
| - |
122 |
| -// Select the mode for TOF correction: |
123 |
| -// 0: tofCorr = TOF from IP to 3D Hit position (globPos) |
124 |
| -// 1: tofCorr = TOF correction for distance difference |
125 |
| -// between 3D center of the chamber and hit position |
126 |
| -// (default) |
127 |
| -// 2: tofCorr = TOF correction for distance difference |
128 |
| -// between 3D center of the wire and hit position |
129 |
| -// (This mode in available for backward compatibility) |
130 |
| -int DTTTrigSyncTOFCorr::theTOFCorrType; |
131 |
| - |
132 |
| - |
133 |
| - |
134 |
| -// Set the verbosity level |
135 |
| -bool DTTTrigSyncTOFCorr::debug; |
136 |
| - |
137 |
| - |
138 |
| - |
139 | 120 | double DTTTrigSyncTOFCorr::emulatorOffset(const DTWireId& wireId,
|
140 | 121 | double &tTrig,
|
141 | 122 | double &t0cell) {
|
|
0 commit comments