28 auto logger = [](std::vector<o2::ft0::Digit>
const& vecDigits) {
29 LOG(
debug) <<
"FT0DigitWriter 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 "FT0DIGITSMCTR", mctruth ? 1 : 0};
54 BranchDefinition<std::vector<o2::ft0::Digit>>{
InputSpec{
"ft0digitBCinput",
"FT0",
"DIGITSBC"},
"FT0DIGITSBC",
"ft0-digits-branch-name", 1,
58 std::move(labelsdef))();
64 BranchDefinition<std::vector<o2::ft0::Digit>>{
InputSpec{
"ft0digitBCinput",
"FT0",
"DIGITSBC"},
"FT0DIGITSBC",
"ft0-digits-branch-name", 1,
67 std::move(labelsdef))();