Project
Loading...
Searching...
No Matches
HMPIDDigitWriterSpec.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_HMPDIGITWRITERSPEC_H_
13#define STEER_DIGITIZERWORKFLOW_SRC_HMPDIGITWRITERSPEC_H_
14
17#include "Framework/InputSpec.h"
22
23namespace o2
24{
25namespace hmpid
26{
27
28template <typename T>
29using BranchDefinition = framework::MakeRootTreeWriterSpec::BranchDefinition<T>;
30
32{
35 return MakeRootTreeWriterSpec("HMPDigitWriter",
36 "hmpiddigits.root",
37 "o2sim",
38 1,
39 BranchDefinition<std::vector<o2::hmpid::Digit>>{InputSpec{"hmpdigitinput", "HMP", "DIGITS"}, "HMPDigit"},
40 BranchDefinition<std::vector<o2::hmpid::Trigger>>{InputSpec{"hmpinteractionrecords", "HMP", "INTRECORDS"}, "InteractionRecords"},
41 BranchDefinition<o2::dataformats::MCTruthContainer<o2::MCCompLabel>>{InputSpec{"hmplabelinput", "HMP", "DIGITLBL"}, "HMPDigitLabels", mctruth ? 1 : 0})();
42}
43
44} // end namespace hmpid
45} // end namespace o2
46
47#endif /* STEER_DIGITIZERWORKFLOW_SRC_HMPIDDIGITWRITERSPEC_H_ */
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.
o2::framework::DataProcessorSpec getHMPIDDigitWriterSpec(bool mctruth=true)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...