32using LabelsType = std::vector<o2::dataformats::MCTruthContainer<o2::MCCompLabel>>;
38 auto nCalls = std::make_shared<int>();
41 auto finishWriting = [nCalls](TFile* outputfile, TTree* outputtree) {
42 printf(
"TOF finish writing with %d entries in the tree\n", *nCalls);
43 outputtree->SetEntries(*nCalls);
52 auto loggerH = [nCalls](
HeaderType const& indata) {
54 auto logger = [nCalls](
OutputType const& indata) {
60 auto loggerPatterns = [nCalls](
PatternType const& patterns) {
63 auto loggerErrors = [nCalls](
ErrorType const& errors) {
74 "tofdigitheader-branch-name",
79 "tofdigits-branch-name",
84 "rowindow-branch-name",
89 "patterns-branch-name",
100 "digitlabels-branch-name"})();
Definition of a container to keep Monte Carlo truth external to simulation objects.
Configurable generator for RootTreeWriter processor spec.
Generate a processor spec for the RootTreeWriter utility.
constexpr o2::header::DataOrigin gDataOriginTOF
Defining PrimaryVertex explicitly as messageable.
std::vector< o2::tof::CalibInfoCluster > OutputType
o2::framework::DataProcessorSpec getTOFDigitWriterSpec(bool useMC=1, bool writeErr=0)
std::vector< o2::tof::ReadoutWindowData > ReadoutWinType
std::vector< uint64_t > ErrorType
std::vector< uint8_t > PatternType
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...