@@ -38,8 +38,8 @@ void Digitizer::clear()
3838void Digitizer::init ()
3939{
4040 LOG (info) << " init" ;
41- mNBins = FV0DigParam::Instance ().waveformNbins ; // Will be computed using detector set-up from CDB
42- mBinSize = FV0DigParam::Instance ().waveformBinWidth ; // Will be set-up from CDB
41+ mNBins = FV0DigParam::Instance ().waveformNbins ; // Will be computed using detector set-up from CDB
42+ mBinSize = FV0DigParam::Instance ().waveformBinWidth ; // Will be set-up from CDB
4343 mNTimeBinsPerBC = std::lround (o2::constants::lhc::LHCBunchSpacingNS / mBinSize ); // 1920 bins/BC
4444
4545 for (Int_t detID = 0 ; detID < Constants::nFv0Channels; detID++) {
@@ -149,8 +149,8 @@ void Digitizer::process(const std::vector<o2::fv0::Hit>& hits,
149149
150150 createPulse (mipFraction, hit.GetTrackID (), hitTime, hit.GetPos ().R (), cachedIR, nCachedIR, detId);
151151
152- } // while loop
153- } // hitloop
152+ } // while loop
153+ } // hitloop
154154}
155155
156156void Digitizer::createPulse (float mipFraction, int parID, const double hitTime, const float hitR,
@@ -200,7 +200,7 @@ void Digitizer::createPulse(float mipFraction, int parID, const double hitTime,
200200 }
201201 added[ir] = true ;
202202 }
203- // /Add MC labels to BCs for those contributed to the PMT signal
203+ // / Add MC labels to BCs for those contributed to the PMT signal
204204 for (int ir = 0 ; ir < nCachedIR; ir++) {
205205 if (added[ir]) {
206206 auto bcCache = getBCCache (cachedIR[ir]);
@@ -304,13 +304,13 @@ void Digitizer::storeBC(const BCCache& bc,
304304 } else {
305305 avgTime = o2::fit::Triggers::DEFAULT_TIME;
306306 }
307- // /Triggers for FV0
307+ // / Triggers for FV0
308308 bool isA, isNchannels, isAIn, isAOut, isTotalCharge;
309309 isA = nTrgFiredCells > 0 ;
310310 isNchannels = nTrgFiredCells > FV0DigParam::Instance ().NchannelsLevel ;
311- isAIn = nSignalInner > FV0DigParam::Instance ().; NchannelsLevel // ring 1,2 and 3
311+ isAIn = nSignalInner > FV0DigParam::Instance ().NchannelsLevel ; // ring 1,2 and 3
312312 isAOut = nSignalOuter > FV0DigParam::Instance ().NchannelsLevel ; // ring 4 and 5
313- isTotalCharge = 0.125 * totalChargeAllRing > 2 * FV0DigParam::Instance ().ChargeLevel ;
313+ isTotalCharge = 0.125 * totalChargeAllRing > 2 * FV0DigParam::Instance ().ChargeLevel ;
314314
315315 Triggers triggers;
316316 const int unusedCharge = o2::fit::Triggers::DEFAULT_AMP;
@@ -321,7 +321,7 @@ void Digitizer::storeBC(const BCCache& bc,
321321 triggers.setTriggers (isA, isAIn, isAOut, isTotalCharge, isNchannels, nTrgFiredCells, (int8_t )unusedZero,
322322 (int32_t )(0.125 * totalChargeAllRing), (int32_t )unusedCharge, (int16_t )avgTime, (int16_t )unusedTime, unusedBitsInSim, unusedBitsInSim, bitDataIsValid);
323323 digitsBC.emplace_back (first, nTotFiredCells, bc, triggers, mEventId - 1 );
324- digitsTrig.emplace_back (bc, isA, isAIn, isAOut, isTotalCharge, isNChannels );
324+ digitsTrig.emplace_back (bc, isA, isAIn, isAOut, isTotalCharge, isNchannels );
325325 for (auto const & lbl : bc.labels ) {
326326 labels.addElement (nBC, lbl);
327327 }
@@ -346,8 +346,8 @@ Int_t Digitizer::SimulateLightYield(Int_t pmt, Int_t nPhot) const
346346// ---------------------------------------------------------------------------
347347Float_t Digitizer::IntegrateCharge (const ChannelDigitF& pulse) const
348348{
349- int const chargeIntMin = FV0DigParam::Instance ().isIntegrateFull ? 0 : (FV0DigParam::Instance ().avgCfdTimeForMip - 6.0 ) / mBinSize ; // Charge integration offset (cfd mean time - 6 ns)
350- int const chargeIntMax = FV0DigParam::Instance ().isIntegrateFull ? mNTimeBinsPerBC : (FV0DigParam::Instance ().avgCfdTimeForMip + 14.0 ) / mBinSize ; // Charge integration offset (cfd mean time + 14 ns)
349+ int const chargeIntMin = FV0DigParam::Instance ().isIntegrateFull ? 0 : (FV0DigParam::Instance ().avgCfdTimeForMip - 6.0 ) / mBinSize ; // Charge integration offset (cfd mean time - 6 ns)
350+ int const chargeIntMax = FV0DigParam::Instance ().isIntegrateFull ? mNTimeBinsPerBC : (FV0DigParam::Instance ().avgCfdTimeForMip + 14.0 ) / mBinSize ; // Charge integration offset (cfd mean time + 14 ns)
351351 if (chargeIntMin < 0 || chargeIntMin > mNTimeBinsPerBC || chargeIntMax > mNTimeBinsPerBC ) {
352352 LOG (fatal) << " invalid indicess: chargeInMin=" << chargeIntMin << " chargeIntMax=" << chargeIntMax;
353353 }
@@ -404,7 +404,7 @@ float Digitizer::getDistFromCellCenter(UInt_t cellId, double hitx, double hity)
404404 double a = -(y0 - pCell->y ) / (x0 - pCell->x );
405405 double b = 1 ;
406406 double c = -(y0 - a * x0);
407- // Return the distance from hit to this line
407+ // Return the distance from hit to this line
408408 return (a * hitx + b * hity + c) / TMath::Sqrt (a * a + b * b);
409409}
410410
0 commit comments