@@ -28,7 +28,7 @@ void CTPScalerRaw::printStream(std::ostream& stream) const
2828 stream << " L1B:" << std::setw (10 ) << l1Before << " L1A:" << std::setw (10 ) << l1After << std::endl;
2929}
3030//
31- void CTPScalerO2::createCTPScalerO2FromRaw (CTPScalerRaw raw, std::array<uint32_t , 6 >& overflow)
31+ void CTPScalerO2::createCTPScalerO2FromRaw (const CTPScalerRaw& raw, const std::array<uint32_t , 6 >& overflow)
3232{
3333 classIndex = raw.classIndex ;
3434 lmBefore = (uint64_t )(raw.lmBefore ) + 0xffffffffull * (uint64_t )(overflow[0 ]);
@@ -124,7 +124,7 @@ int CTPRunScalers::readScalers(const std::string& rawscalers)
124124 }
125125 return 0 ;
126126}
127- int CTPRunScalers::processScalerLine (std::string& line, int & level, int & nclasses)
127+ int CTPRunScalers::processScalerLine (const std::string& line, int & level, int & nclasses)
128128{
129129 // std::cout << "Processing line" << std::endl;
130130 if (line.size () == 0 ) {
@@ -228,7 +228,7 @@ int CTPRunScalers::convertRawToO2()
228228 CTPScalerRecordO2 o2rec;
229229 copyRawToO2ScalerRecord (mScalerRecordRaw [0 ], o2rec, overflows);
230230 mScalerRecordO2 .push_back (o2rec);
231- for (int i = 1 ; i < mScalerRecordRaw .size (); i++) {
231+ for (uint32_t i = 1 ; i < mScalerRecordRaw .size (); i++) {
232232 // update overflows
233233 updateOverflows (mScalerRecordRaw [i - 1 ], mScalerRecordRaw [i], overflows);
234234 //
@@ -250,7 +250,7 @@ int CTPRunScalers::copyRawToO2ScalerRecord(const CTPScalerRecordRaw& rawrec, CTP
250250 o2rec.intRecord = rawrec.intRecord ;
251251 o2rec.seconds = rawrec.seconds ;
252252 o2rec.microSeconds = rawrec.microSeconds ;
253- for (int i = 0 ; i < rawrec.scalers .size (); i++) {
253+ for (uint32_t i = 0 ; i < rawrec.scalers .size (); i++) {
254254 CTPScalerRaw rawscal = rawrec.scalers [i];
255255 CTPScalerO2 o2scal;
256256 int k = (getClassIndexes ())[i];
0 commit comments