You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
floatmTRFhi{3.58f}; ///< Higher boundary of the TRF and x-talk
136
137
floatmInvTRFwid{static_cast<float>(mTRFbin) / (mTRFhi - mTRFlo)}; ///< Inverse of the bin width of the integrated TRF and x-talk
137
138
floatmGasGain{4000.f}; ///< Gas gain
138
-
139
+
140
+
floatmEffVdriftDefault{1.22f}; ///< The CCDB contains an effective drift velocity, and not the true drift velocity, so we anchor only the variations. This default parameter is the one reproducing data the best for run 568191.
141
+
139
142
ClassDefNV(SimParam, 2); // The TRD simulation parameters
float driftVelocity = mCalib->getVDrift(det, colE, rowE); // The drift velocity
257
-
float t0 = mCalib->getT0(det, colE, rowE); // The T0 velocity
258
+
float driftVelocity = constants::VDRIFTDEFAULT; // The default drift velocity
259
+
if (TMath::Abs(mCalVdriftExB->getVdrift(det, true) - constants::VDRIFTDEFAULT) > 1e-6) {
260
+
driftVelocity = mCalVdriftExB->getVdrift(det, true) * constants::VDRIFTDEFAULT / mSimParam.getEffVdriftDefault(); // If they are available in the CCDB, we anchor the vdrift variations
261
+
}
262
+
float t0 = mCalib->getT0(det, colE, rowE); // The T0 velocity
258
263
259
264
// Loop over all created electrons
260
265
constint nElectrons = std::fabs(qTotal);
@@ -277,7 +282,8 @@ bool Digitizer::convertHits(const int det, const std::vector<Hit>& hits, SignalC
277
282
278
283
// Apply E x B effects
279
284
if (mSimParam.isExBOn()) {
280
-
locCd = locCd + calExBDetValue * driftLength;
285
+
// minus sign is necessary to be compatible with how Vdrift and ExB are calibrated
0 commit comments