Project
Loading...
Searching...
No Matches
MIDDigitWriterSpec.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#ifndef STEER_DIGITIZERWORKFLOW_SRC_MIDDIGITWRITERSPEC_H
13#define STEER_DIGITIZERWORKFLOW_SRC_MIDDIGITWRITERSPEC_H
14
15#include <vector>
18#include "Framework/InputSpec.h"
23
24namespace o2
25{
26namespace mid
27{
28
29template <typename T>
31
33{
36 return MakeRootTreeWriterSpec("MIDDigitWriter",
37 "middigits.root",
38 "o2sim",
39 1,
40 BranchDefinition<std::vector<ColumnData>>{InputSpec{"middigits", "MID", "DIGITS"}, "MIDDigit"},
41 BranchDefinition<std::vector<ROFRecord>>{InputSpec{"midrofrecords", "MID", "DIGITSROF"}, "MIDROFRecords"},
42 BranchDefinition<o2::dataformats::MCTruthContainer<MCLabel>>{InputSpec{"middigitlabels", "MID", "DIGITLABELS"}, "MIDDigitMCLabels", mctruth ? 1 : 0})();
43}
44
45} // namespace mid
46} // namespace o2
47
48#endif /* STEER_DIGITIZERWORKFLOW_SRC_MIDDIGITWRITERSPEC_H */
Strip pattern (aka digits)
Label for MID.
Definition of a container to keep Monte Carlo truth external to simulation objects.
Definition of the MID event record.
Configurable generator for RootTreeWriter processor spec.
Generate a processor spec for the RootTreeWriter utility.
o2::framework::DataProcessorSpec getMIDDigitWriterSpec(bool mctruth)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...