1414// /
1515// / \author Andreas Molander <andreas.molander@cern.ch>, University of Jyvaskyla, Finland
1616
17- #ifndef O2_FT0_DCSCONFIGPROCESSOR_H
18- #define O2_FT0_DCSCONFIGPROCESSOR_H
17+ #ifndef O2_FT0_DCSCONFIGPROCESSORSPEC_H
18+ #define O2_FT0_DCSCONFIGPROCESSORSPEC_H
1919
20- #include " FITDCSMonitoring/FITDCSConfigProcessorSpec.h"
21- #include " FT0DCSMonitoring/FT0DCSConfigReader.h"
20+ #include " FT0DCSMonitoring/FT0DCSConfigProcessor.h"
2221#include " DetectorsCalibration/Utils.h"
2322#include " Framework/WorkflowSpec.h"
2423#include " Headers/DataHeader.h"
2827
2928namespace o2
3029{
31- namespace ft0
32- {
33-
34- class FT0DCSConfigProcessor : public o2 ::fit::FITDCSConfigProcessor
35- {
36- // Example of how to use another DCS config reader (subclass of o2::fit::FITDCSConfigReader)
37- public:
38- FT0DCSConfigProcessor (const std::string& detectorName, const o2::header::DataDescription& dataDescriptionDChM)
39- : o2::fit::FITDCSConfigProcessor(detectorName, dataDescriptionDChM) {}
40-
41- protected:
42- void initDCSConfigReader () override
43- {
44- mDCSConfigReader = std::make_unique<FT0DCSConfigReader>(FT0DCSConfigReader ());
45- }
46- };
47-
48- } // namespace ft0
49-
5030namespace framework
5131{
5232
@@ -62,7 +42,7 @@ DataProcessorSpec getFT0DCSConfigProcessorSpec()
6242 Inputs{{" inputConfig" , o2::header::gDataOriginFT0 , " DCS_CONFIG_FILE" , Lifetime::Sporadic},
6343 {" inputConfigFileName" , o2::header::gDataOriginFT0 , " DCS_CONFIG_NAME" , Lifetime::Sporadic}},
6444 outputs,
65- AlgorithmSpec{adaptFromTask<o2::ft0::FT0DCSConfigProcessor>(" FT0" , ddDChM)},
45+ AlgorithmSpec{adaptFromTask<o2::ft0::FT0DCSConfigProcessor>(" FT0" , ddDChM, o2::header::DataDescription{} )},
6646 Options{{" use-verbose-mode" , VariantType::Bool, false , {" Use verbose mode" }},
6747 {" filename-dchm" , VariantType::String, " FT0-deadchannels.txt" , {" Dead channel map file name" }},
6848 {" valid-days-dchm" , VariantType::UInt32, 180u , {" Dead channel map validity in days" }},
@@ -72,4 +52,4 @@ DataProcessorSpec getFT0DCSConfigProcessorSpec()
7252} // namespace framework
7353} // namespace o2
7454
75- #endif // O2_FT0_DCSCONFIGPROCESSOR_H
55+ #endif // O2_FT0_DCSCONFIGPROCESSORSPEC_H
0 commit comments