12#ifndef O2_FDD_DIGITWRITERSPEC_H
13#define O2_FDD_DIGITWRITERSPEC_H
38 auto finishWriting = [](TFile* outputfile, TTree* outputtree) {
39 const auto* brArr = outputtree->GetListOfBranches();
41 for (
const auto* brc : *brArr) {
42 int64_t
n = ((
const TBranch*)brc)->GetEntries();
43 if (nent && (nent !=
n)) {
44 LOG(error) <<
"Branches have different number of entries";
48 outputtree->SetEntries(nent);
55 auto customlabelhandler = [](TBranch& branch, std::vector<char>
const& labeldata,
framework::DataRef const&
ref) {
60 auto ptr = &outputcontainer;
67 "FDDDigitLabels",
"labels-branch-name",
79 std::move(labelsdef))();
87 std::move(labelsdef))();
A const (ready only) version of MCTruthContainer.
A special IO container - splitting a given vector to enable ROOT IO.
Configurable generator for RootTreeWriter processor spec.
Generate a processor spec for the RootTreeWriter utility.
WriterType::CustomClose CustomClose
static TBranch * remapBranch(TBranch &branchRef, T **newdata)
o2::framework::DataProcessorSpec getFDDDigitWriterSpec(bool mctruth=true, bool trigInp=true)
struct o2::upgrades_utils::@459 fdd
Collision labels.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"