Project
Loading...
Searching...
No Matches
ZDCDigitWriterDPLSpec.cxx
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
13
14#include <vector>
15
20
22using namespace o2::framework;
23
24namespace o2
25{
26namespace zdc
27{
28
29template <typename T>
31DataProcessorSpec getZDCDigitWriterDPLSpec(bool mctruth, bool simVersion)
32{
33 std::string writerName = simVersion ? "ZDCDigitWriterSim" : "ZDCDigitWriterDec";
34 std::string fnameDef = simVersion ? "zdcdigits.root" : "o2digit_zdc.root";
35
38 return MakeRootTreeWriterSpec(writerName.data(),
39 fnameDef.data(),
40 "o2sim",
41 BranchDefinition<std::vector<o2::zdc::BCData>>{InputSpec{"digitBCinput", "ZDC", "DIGITSBC"}, "ZDCDigitBC"},
42 BranchDefinition<std::vector<o2::zdc::ChannelData>>{InputSpec{"digitChinput", "ZDC", "DIGITSCH"}, "ZDCDigitCh"},
43 BranchDefinition<std::vector<o2::zdc::OrbitData>>{InputSpec{"digitPDinput", "ZDC", "DIGITSPD"}, "ZDCDigitOrbit"},
44 BranchDefinition<o2::dataformats::MCTruthContainer<o2::zdc::MCLabel>>{InputSpec{"labelinput", "ZDC", "DIGITSLBL"}, "ZDCDigitLabels", mctruth ? 1 : 0})();
45}
46
47} // namespace zdc
48} // namespace o2
Class to describe fired triggered and/or stored channels for the BC and to refer to channel data.
Configurable generator for RootTreeWriter processor spec.
Class to describe pedestal data accumulated over the orbit.
Container class to store NTimeBinsPerBC ADC values of single ZDC channel.
Generate a processor spec for the RootTreeWriter utility.
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
framework::DataProcessorSpec getZDCDigitWriterDPLSpec(bool mctruth, bool simVersion)
create a processor spec
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...