Skip to content

Commit 95d847b

Browse files
Add TRD extra configuration option to AOD producer workflow
This change allows users to enable or disable TRD extra output at runtime via workflow configuration, integrating TRD processing into the AOD production workflow.
1 parent 38201b7 commit 95d847b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Detectors/AOD/src/aod-producer-workflow.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ void customize(std::vector<ConfigParamSpec>& workflowOptions)
3838
{"disable-secondary-vertices", o2::framework::VariantType::Bool, false, {"disable filling secondary vertices"}},
3939
{"disable-strangeness-tracker", o2::framework::VariantType::Bool, false, {"disable filling strangeness tracking"}},
4040
{"enable-FIT-extra", o2::framework::VariantType::Bool, false, {"enable FIT extra output"}},
41+
{"enable-TRD-extra", o2::framework::VariantType::Bool, false, {"enable TRD extra output"}},
4142
{"info-sources", VariantType::String, std::string{GID::ALL}, {"comma-separated list of sources to use"}},
4243
{"configKeyValues", VariantType::String, "", {"Semicolon separated key=value strings ..."}},
4344
{"combine-source-devices", o2::framework::VariantType::Bool, false, {"merge DPL source devices"}},
@@ -56,6 +57,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
5657
bool enableST = !configcontext.options().get<bool>("disable-strangeness-tracker");
5758
bool ctpcfgperrun = !configcontext.options().get<bool>("ctpconfig-run-independent");
5859
bool enableFITextra = configcontext.options().get<bool>("enable-FIT-extra");
60+
bool enableTRDextra = configcontext.options().get<bool>("enable-TRD-extra");
5961

6062
GID::mask_t allowedSrc = GID::getSourcesMask("ITS,MFT,MCH,MID,MCH-MID,TPC,TRD,ITS-TPC,TPC-TOF,TPC-TRD,ITS-TPC-TOF,ITS-TPC-TRD,TPC-TRD-TOF,ITS-TPC-TRD-TOF,MFT-MCH,FT0,FV0,FDD,ZDC,EMC,CTP,PHS,CPV,HMP");
6163
GID::mask_t src = allowedSrc & GID::getSourcesMask(configcontext.options().get<std::string>("info-sources"));
@@ -66,7 +68,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
6668
}
6769

6870
WorkflowSpec specs;
69-
specs.emplace_back(o2::aodproducer::getAODProducerWorkflowSpec(src, enableSV, enableST, useMC, ctpcfgperrun, enableFITextra));
71+
specs.emplace_back(o2::aodproducer::getAODProducerWorkflowSpec(src, enableSV, enableST, useMC, ctpcfgperrun, enableFITextra, enableTRDextra));
7072

7173
auto srcCls = src & ~(GID::getSourceMask(GID::MCH) | GID::getSourceMask(GID::MID)); // Don't read global MID and MCH clusters (those attached to tracks are always read)
7274
auto srcMtc = src;

0 commit comments

Comments
 (0)