Skip to content

Commit c909fc5

Browse files
JianLIUhepshahor02
authored andcommitted
Clang
1 parent 42c8586 commit c909fc5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Detectors/ITSMFT/common/workflow/src/STFDecoderSpec.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ void STFDecoder<Mapping>::run(ProcessingContext& pc)
159159

160160
mDecoder->setDecodeNextAuto(false);
161161
o2::InteractionRecord lastIR{}, firstIR{0, pc.services().get<o2::framework::TimingInfo>().firstTForbit};
162-
int nTriggersProcessed =0;
163-
while (mDecoder->decodeNextTrigger() >= 0) {
162+
int nTriggersProcessed = 0;
163+
while (mDecoder->decodeNextTrigger() >= 0) {
164164
if ((!lastIR.isDummy() && lastIR >= mDecoder->getInteractionRecord()) || firstIR > mDecoder->getInteractionRecord()) {
165165
const int MaxErrLog = 2;
166166
static int errLocCount = 0;
@@ -170,7 +170,7 @@ void STFDecoder<Mapping>::run(ProcessingContext& pc)
170170
continue;
171171
}
172172
lastIR = mDecoder->getInteractionRecord();
173-
if (mDoDigits || mClusterer->getMaxROFDepthToSquash()) { // call before clusterization, since the latter will hide the digits
173+
if (mDoDigits || mClusterer->getMaxROFDepthToSquash()) { // call before clusterization, since the latter will hide the digits
174174
mDecoder->fillDecodedDigits(digVec, digROFVec, chipStatus); // lot of copying involved
175175

176176
if (mDoCalibData) {
@@ -186,9 +186,9 @@ void STFDecoder<Mapping>::run(ProcessingContext& pc)
186186
}
187187

188188
const auto& alpParams = o2::itsmft::DPLAlpideParam<o2::detectors::DetID::ITS>::Instance();
189-
std::cout<<"mTFCounter= "<< mTFCounter << " from params: "<< 3564*32/alpParams.roFrameLengthInBC << " from redout: "<< nTriggersProcessed<< " number from geometry: "<< o2::base::GRPGeomHelper::instance().getGRPECS()->getNHBFPerTF()<<std::endl;
190-
int expectedValue = static_cast<int>(o2::constants::lhc::LHCMaxBunches * o2::base::GRPGeomHelper::instance().getGRPECS()->getNHBFPerTF() / alpParams.roFrameLengthInBC);
191-
if ( (expectedValue != nTriggersProcessed) && mTFCounter > 1) LOG(fatal)<< "Inconsistant size of ROF and Strobbing rate, from parameters: "<< 3564*32/alpParams.roFrameLengthInBC << " from readout: "<< nTriggersProcessed;
189+
int expectedTFSize = static_cast<int>(o2::constants::lhc::LHCMaxBunches * o2::base::GRPGeomHelper::instance().getGRPECS()->getNHBFPerTF() / alpParams.roFrameLengthInBC); // 3564*32 / ROF Length in BS = number of ROFs per TF
190+
if ((expectedTFSize != nTriggersProcessed) && mTFCounter > 1)
191+
LOG(fatal) << "Inconsistent number of ROF per TF. From parameters: " << expectedTFSize << " from readout: " << nTriggersProcessed;
192192

193193
if (mDoClusters && mClusterer->getMaxROFDepthToSquash()) {
194194
// Digits squashing require to run on a batch of digits and uses a digit reader, cannot (?) run with decoder

0 commit comments

Comments
 (0)