Project
Loading...
Searching...
No Matches
FT0DigitWriterSpec.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_FT0DIGITWRITER_H_
13#define STEER_DIGITIZERWORKFLOW_FT0DIGITWRITER_H_
14
18#include "Framework/InputSpec.h"
24
25namespace o2
26{
27namespace ft0
28{
29
30template <typename T>
31using BranchDefinition = framework::MakeRootTreeWriterSpec::BranchDefinition<T>;
32
34{
37 return MakeRootTreeWriterSpec("FT0DigitWriter",
38 "ft0digits.root",
39 "o2sim",
40 1,
41 BranchDefinition<std::vector<o2::ft0::Digit>>{InputSpec{"FT0digitBCinput", "FT0", "DIGITSBC"}, "FT0DIGITSBC"},
42 BranchDefinition<std::vector<o2::ft0::ChannelData>>{InputSpec{"FT0digitChinput", "FT0", "DIGITSCH"}, "FT0DIGITSCH"},
43 BranchDefinition<std::vector<o2::ft0::DetTrigInput>>{InputSpec{"FT0digitTrinput", "FT0", "TRIGGERINPUT"}, "TRIGGERINPUT"},
44 BranchDefinition<o2::dataformats::MCTruthContainer<o2::ft0::MCLabel>>{InputSpec{"FT0labelinput", "FT0", "DIGITSMCTR"}, "FT0DIGITSMCTR", mctruth ? 1 : 0})();
45}
46
47} // namespace ft0
48} // end namespace o2
49
50#endif /* STEER_DIGITIZERWORKFLOW_FT0DIGITWRITER_H_ */
Class to describe fired and stored channels for the BC and to refer to channel data.
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.
framework::DataProcessorSpec getFT0DigitWriterSpec(bool mctruth=true, bool trigInp=true)
create a processor spec
struct o2::upgrades_utils::@462 ft0
structure to keep V0C information
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...