@@ -93,9 +93,6 @@ class DCSDataProcessor : public o2::framework::Task
9393 pidVect.push_back (dpidtmp);
9494 mDetectorPid [dpidtmp] = vectDet;
9595
96- mDCSproc .init (pidVect);
97- mDCSproc .setMaxCyclesNoFullMap (ic.options ().get <int64_t >(" max-cycles-no-full-map" ));
98- mDCSproc .setName (" Test0Det" );
9996 for (int idet = 0 ; idet < kNdetectors ; idet++) {
10097 mDCSprocVect [idet].init (pidVect);
10198 mDCSprocVect [idet].setMaxCyclesNoFullMap (ic.options ().get <int64_t >(" max-cycles-no-full-map" ));
@@ -107,7 +104,6 @@ class DCSDataProcessor : public o2::framework::Task
107104 void run (o2::framework::ProcessingContext& pc) final
108105 {
109106 auto tfid = o2::header::get<o2::framework::DataProcessingHeader*>(pc.inputs ().get (" input" ).header )->startTime ;
110- mDCSproc .setTF (tfid);
111107 for (int idet = 0 ; idet < kNdetectors ; idet++) {
112108 mDCSprocVect [idet].setTF (tfid);
113109 }
@@ -275,7 +271,6 @@ class DCSDataProcessor : public o2::framework::Task
275271 private:
276272 std::unordered_map<DPID, std::vector<int >> mDetectorPid ;
277273 std::array<DCSProcessor, kNdetectors > mDCSprocVect ;
278- o2::dcs::DCSProcessor mDCSproc ;
279274 TStopwatch mReceiveBinaryData ;
280275 TStopwatch mDeltaReceiveBinaryData ;
281276 TStopwatch mBuildingUnorderedMap ;
@@ -299,14 +294,16 @@ class DCSDataProcessor : public o2::framework::Task
299294 // extract CCDB infos and calibration objects, convert it to TMemFile and send them to the output
300295 // copied from LHCClockCalibratorSpec.cxx
301296 using clbUtils = o2::calibration::Utils;
302- const auto & payload = mDCSproc .getCCDBSimpleMovingAverage ();
303- auto & info = mDCSproc .getCCDBSimpleMovingAverageInfo ();
304- auto image = o2::ccdb::CcdbApi::createObjectImage (&payload, &info);
305- LOG (INFO) << " Sending object " << info.getPath () << " /" << info.getFileName () << " of size " << image->size ()
306- << " bytes, valid for " << info.getStartValidityTimestamp () << " : " << info.getEndValidityTimestamp ();
307-
308- output.snapshot (Output{clbUtils::gDataOriginCLB , clbUtils::gDataDescriptionCLBPayload , 0 }, *image.get ());
309- output.snapshot (Output{clbUtils::gDataOriginCLB , clbUtils::gDataDescriptionCLBInfo , 0 }, info);
297+ for (int idet = 0 ; idet < kNdetectors ; idet++) {
298+ const auto & payload = mDCSprocVect [idet].getCCDBSimpleMovingAverage ();
299+ auto & info = mDCSprocVect [idet].getCCDBSimpleMovingAverageInfo ();
300+ auto image = o2::ccdb::CcdbApi::createObjectImage (&payload, &info);
301+ LOG (INFO) << " Sending object " << info.getPath () << " /" << info.getFileName () << " of size " << image->size ()
302+ << " bytes, valid for " << info.getStartValidityTimestamp () << " : " << info.getEndValidityTimestamp ();
303+
304+ output.snapshot (Output{clbUtils::gDataOriginCLB , clbUtils::gDataDescriptionCLBPayload , 0 }, *image.get ());
305+ output.snapshot (Output{clbUtils::gDataOriginCLB , clbUtils::gDataDescriptionCLBInfo , 0 }, info);
306+ }
310307 }
311308}; // end class
312309} // namespace dcs
0 commit comments