Project
Loading...
Searching...
No Matches
CPVDigitWriterSpec.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_CPVDIGITWRITER_H_
13#define STEER_DIGITIZERWORKFLOW_CPVDIGITWRITER_H_
14
15#include <vector>
18#include "Framework/InputSpec.h"
22
23namespace o2
24{
25namespace cpv
26{
27
28template <typename T>
29using BranchDefinition = framework::MakeRootTreeWriterSpec::BranchDefinition<T>;
30
32{
35 return MakeRootTreeWriterSpec("CPVDigitWriter",
36 "cpvdigits.root",
37 "o2sim",
38 1,
39 BranchDefinition<std::vector<o2::cpv::Digit>>{InputSpec{"cpvdigits", "CPV", "DIGITS"}, "CPVDigit"},
40 BranchDefinition<std::vector<o2::cpv::TriggerRecord>>{InputSpec{"cpvdigitstrigrec", "CPV", "DIGITTRIGREC"}, "CPVDigitTrigRecords"},
41 BranchDefinition<o2::dataformats::MCTruthContainer<o2::MCCompLabel>>{InputSpec{"cpvdigitsmc", "CPV", "DIGITSMCTR"}, "CPVDigitMCTruth", mctruth ? 1 : 0})();
42}
43
44} // namespace cpv
45} // namespace o2
46
47#endif /* STEER_DIGITIZERWORKFLOW_CPVDIGITWRITERSPEC_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 getCPVDigitWriterSpec(bool mctruth=true)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...