Skip to content

Commit

Permalink
Changing Lifetime to Timeframe
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-kleiner committed Nov 27, 2023
1 parent 5598d00 commit 79e77cb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ o2::framework::DataProcessorSpec getFITIntegrateClusterSpec(const bool disableWr
inputs);

std::vector<OutputSpec> outputs;
outputs.emplace_back(FitType::getDataOrigin(), FitType::getDataDescriptionFITC(), 0, Lifetime::Sporadic);
outputs.emplace_back(FitType::getDataOrigin(), FitType::getDataDescriptionFITC(), 0, Lifetime::Timeframe);
if (!disableWriter) {
outputs.emplace_back(FitType::getDataOrigin(), FitType::getDataDescriptionFITTFId(), 0, Lifetime::Sporadic);
outputs.emplace_back(FitType::getDataOrigin(), FitType::getDataDescriptionFITTFId(), 0, Lifetime::Timeframe);
}

return DataProcessorSpec{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ DataProcessorSpec getFITIntegrateClusterWriterSpec()
return MakeRootTreeWriterSpec(fmt::format("{}-currents-writer", FitType::getName()).data(),
treeFile.data(),
treeName.data(),
BranchDefinition<typename DataDescriptionFITCurrents<DataT>::DataTStruct>{InputSpec{"ifitc", FitType::getDataOrigin(), FitType::getDataDescriptionFITC(), 0, Lifetime::Sporadic}, "IFITC", 1},
BranchDefinition<o2::dataformats::TFIDInfo>{InputSpec{"tfID", FitType::getDataOrigin(), FitType::getDataDescriptionFITTFId(), 0, Lifetime::Sporadic}, "tfID", 1})();
BranchDefinition<typename DataDescriptionFITCurrents<DataT>::DataTStruct>{InputSpec{"ifitc", FitType::getDataOrigin(), FitType::getDataDescriptionFITC(), 0, Lifetime::Timeframe}, "IFITC", 1},
BranchDefinition<o2::dataformats::TFIDInfo>{InputSpec{"tfID", FitType::getDataOrigin(), FitType::getDataDescriptionFITTFId(), 0, Lifetime::Timeframe}, "tfID", 1})();
}

} // end namespace fit
Expand Down
6 changes: 3 additions & 3 deletions Detectors/TOF/workflow/src/TOFIntegrateClusterSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ o2::framework::DataProcessorSpec getTOFIntegrateClusterSpec(const bool disableWr
inputs);

std::vector<OutputSpec> outputs;
outputs.emplace_back(o2::header::gDataOriginTOF, "ITOFCN", 0, Lifetime::Sporadic);
outputs.emplace_back(o2::header::gDataOriginTOF, "ITOFCQ", 0, Lifetime::Sporadic);
outputs.emplace_back(o2::header::gDataOriginTOF, "ITOFCN", 0, Lifetime::Timeframe);
outputs.emplace_back(o2::header::gDataOriginTOF, "ITOFCQ", 0, Lifetime::Timeframe);
if (!disableWriter) {
outputs.emplace_back(o2::header::gDataOriginTOF, "ITOFTFID", 0, Lifetime::Sporadic);
outputs.emplace_back(o2::header::gDataOriginTOF, "ITOFTFID", 0, Lifetime::Timeframe);
}

return DataProcessorSpec{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ DataProcessorSpec getTOFIntegrateClusterWriterSpec()
return MakeRootTreeWriterSpec("tof-currents-writer",
"o2currents_tof.root",
"itofc",
BranchDefinition<std::vector<float>>{InputSpec{"itofcn", o2::header::gDataOriginTOF, "ITOFCN", 0, Lifetime::Sporadic}, "ITOFCN", 1},
BranchDefinition<std::vector<float>>{InputSpec{"itofcq", o2::header::gDataOriginTOF, "ITOFCQ", 0, Lifetime::Sporadic}, "ITOFCQ", 1},
BranchDefinition<o2::dataformats::TFIDInfo>{InputSpec{"itoftfid", o2::header::gDataOriginTOF, "ITOFTFID", 0, Lifetime::Sporadic}, "tfID", 1})();
BranchDefinition<std::vector<float>>{InputSpec{"itofcn", o2::header::gDataOriginTOF, "ITOFCN", 0, Lifetime::Timeframe}, "ITOFCN", 1},
BranchDefinition<std::vector<float>>{InputSpec{"itofcq", o2::header::gDataOriginTOF, "ITOFCQ", 0, Lifetime::Timeframe}, "ITOFCQ", 1},
BranchDefinition<o2::dataformats::TFIDInfo>{InputSpec{"itoftfid", o2::header::gDataOriginTOF, "ITOFTFID", 0, Lifetime::Timeframe}, "tfID", 1})();
}

} // namespace tof
Expand Down
4 changes: 2 additions & 2 deletions Detectors/TPC/workflow/src/TPCIntegrateClusterSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ o2::framework::DataProcessorSpec getTPCIntegrateClusterSpec(const bool disableWr
inputs);

std::vector<OutputSpec> outputs;
outputs.emplace_back(o2::header::gDataOriginTPC, getDataDescriptionTPCC(), 0, Lifetime::Sporadic);
outputs.emplace_back(o2::header::gDataOriginTPC, getDataDescriptionTPCC(), 0, Lifetime::Timeframe);
if (!disableWriter) {
outputs.emplace_back(o2::header::gDataOriginTPC, getDataDescriptionTPCTFId(), 0, Lifetime::Sporadic);
outputs.emplace_back(o2::header::gDataOriginTPC, getDataDescriptionTPCTFId(), 0, Lifetime::Timeframe);
}

return DataProcessorSpec{
Expand Down

0 comments on commit 79e77cb

Please sign in to comment.