Skip to content

Commit 43a3732

Browse files
committed
AODProducer: Option to specify and forward parent AOD file
This is needed in order to link a MC-AOD as "derived" from another AOD, for instance for MC-on-DATA embeddings.
1 parent 70ca1a2 commit 43a3732

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Detectors/AOD/include/AODProducerWorkflow/AODProducerWorkflowSpec.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ class AODProducerWorkflowDPL : public Task
283283
TString mAnchorPass{""};
284284
TString mAnchorProd{""};
285285
TString mRecoPass{""};
286+
std::string mAODParent{""}; // link to possible parent AOD file (MC embedding,...)
286287
TString mUser{"aliprod"}; // who created this AOD (aliprod, alidaq, individual users)
287288
TStopwatch mTimer;
288289
bool mEMCselectLeading{false};

Detectors/AOD/src/AODProducerWorkflowSpec.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1818,6 +1818,7 @@ void AODProducerWorkflowDPL::init(InitContext& ic)
18181818
mAnchorProd = ic.options().get<std::string>("anchor-prod");
18191819
mUser = ic.options().get<std::string>("created-by");
18201820
mRecoPass = ic.options().get<std::string>("reco-pass");
1821+
mAODParent = ic.options().get<std::string>("aod-parent");
18211822
mTFNumber = ic.options().get<int64_t>("aod-timeframe-id");
18221823
mRecoOnly = ic.options().get<int>("reco-mctracks-only");
18231824
mTruncate = ic.options().get<int>("enable-truncation");
@@ -2615,7 +2616,7 @@ void AODProducerWorkflowDPL::run(ProcessingContext& pc)
26152616
pc.outputs().snapshot(Output{"AMD", "AODMetadataVals", 0}, mMetaDataVals);
26162617

26172618
pc.outputs().snapshot(Output{"TFN", "TFNumber", 0}, tfNumber);
2618-
pc.outputs().snapshot(Output{"TFF", "TFFilename", 0}, "");
2619+
pc.outputs().snapshot(Output{"TFF", "TFFilename", 0}, mAODParent);
26192620

26202621
mTimer.Stop();
26212622
}
@@ -3485,6 +3486,7 @@ DataProcessorSpec getAODProducerWorkflowSpec(GID::mask_t src, bool enableSV, boo
34853486
ConfigParamSpec{"anchor-pass", VariantType::String, "", {"AnchorPassName"}},
34863487
ConfigParamSpec{"anchor-prod", VariantType::String, "", {"AnchorProduction"}},
34873488
ConfigParamSpec{"reco-pass", VariantType::String, "", {"RecoPassName"}},
3489+
ConfigParamSpec{"aod-parent", VariantType::String, "", {"Parent AOD file name (if any)"}},
34883490
ConfigParamSpec{"created-by", VariantType::String, "", {"Who created this AO2D"}},
34893491
ConfigParamSpec{"nthreads", VariantType::Int, std::max(1, int(std::thread::hardware_concurrency() / 2)), {"Number of threads"}},
34903492
ConfigParamSpec{"reco-mctracks-only", VariantType::Int, 0, {"Store only reconstructed MC tracks and their mothers/daughters. 0 -- off, != 0 -- on"}},

0 commit comments

Comments
 (0)