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))();
char error[CURL_ERROR_SIZE]
Generate a processor spec for the RootTreeWriter utility.
WriterType::CustomClose CustomClose
framework::DataProcessorSpec getFT0DigitWriterSpec(bool mctruth=true, bool trigInp=true)
create a processor spec
struct o2::upgrades_utils::@481 ft0
structure to keep V0C information
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"