28 auto logger = [](std::vector<o2::fv0::Digit>
const& vecDigits) {
29 LOG(
debug) <<
"FV0DigitWriter pulled " << vecDigits.size() <<
" digits";
32 auto finishWriting = [](TFile* outputfile, TTree* outputtree) {
33 const auto* brArr = outputtree->GetListOfBranches();
35 for (
const auto* brc : *brArr) {
36 int64_t
n = ((
const TBranch*)brc)->GetEntries();
37 if (nent && (nent !=
n)) {
38 LOG(error) <<
"Branches have different number of entries";
42 outputtree->SetEntries(nent);
48 "FV0DIGITSMCTR", mctruth ? 1 : 0};
58 std::move(labelsdef))();
67 std::move(labelsdef))();