25void customize(std::vector<o2::framework::ConfigParamSpec>& workflowOptions)
28 std::vector<o2::framework::ConfigParamSpec> options{
34 {
"calib-dds-collection-index", VariantType::Int, -1, {
"allow only single collection to produce calibration objects (use -1 for no limit)"}},
35 {
"configKeyValues", VariantType::String,
"", {
"Semicolon separated key=value strings"}}};
37 std::swap(workflowOptions, options);
47 auto enableRootInp = configcontext.
options().
get<
bool>(
"enable-root-input");
51 if (configcontext.
options().
get<
bool>(
"vDriftAndExB")) {
55 specs.emplace_back(getTRDVdAndExBCalibSpec());
58 if (configcontext.
options().
get<
bool>(
"noise")) {
62 int ddsCollectionIdx = configcontext.
options().
get<
int>(
"calib-dds-collection-index");
63 bool noiseCalibIsDummy =
true;
64 if (ddsCollectionIdx != -1) {
65 char* colIdx = getenv(
"DDS_COLLECTION_INDEX");
66 int myIdx = colIdx ? atoi(colIdx) : -1;
67 if (myIdx == ddsCollectionIdx) {
68 LOG(info) <<
"TRD noise calib is enabled for this collection, my index " << myIdx;
69 noiseCalibIsDummy =
false;
71 LOG(info) <<
"TRD noise calib is disabled for this collection, my index " << myIdx;
74 noiseCalibIsDummy =
false;
79 if (configcontext.
options().
get<
bool>(
"gain")) {
80 specs.emplace_back(getTRDGainCalibSpec());
87 specs.emplace_back(getTRDT0FitSpec());
DPL device for steering the TRD gain time slot based calibration.
DPL device for steering the TRD t0 fits.
Extract mean ADC values per pad from digits and send them to the aggregator.
DPL device for steering the TRD vD and ExB time slot based calibration.
static void updateFromString(std::string const &)
ConfigParamRegistry & options() const
T get(const char *key) const
Defining PrimaryVertex explicitly as messageable.
std::vector< DataProcessorSpec > WorkflowSpec
framework::DataProcessorSpec getTRDPHReaderSpec()
framework::DataProcessorSpec getTRDCalibReaderSpec()
o2::framework::DataProcessorSpec getTRDNoiseCalibSpec(bool dummy)
o2::framework::DataProcessorSpec getTRDDigitReaderSpec(bool useMC, bool trigRec=true, int dataSubspec=1)
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
void customize(std::vector< o2::framework::ConfigParamSpec > &workflowOptions)
WorkflowSpec defineDataProcessing(ConfigContext const &configcontext)
This function hooks up the the workflow specifications into the DPL driver.