Project
Loading...
Searching...
No Matches
RecPointWriterSpec.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>
18
19using namespace o2::framework;
20
21namespace o2
22{
23namespace fv0
24{
25
26template <typename T>
29{
30 using RecPointsType = std::vector<o2::fv0::RecPoints>;
31 using ChanDataType = std::vector<o2::fv0::ChannelDataFloat>;
32 // Spectators for logging
33 auto logger = [](RecPointsType const& recPoints) {
34 LOG(debug) << "FV0RecPointWriter pulled " << recPoints.size() << " RecPoints";
35 };
36 return MakeRootTreeWriterSpec("fv0-recpoint-writer",
37 "o2reco_fv0.root",
38 "o2sim",
39 BranchDefinition<RecPointsType>{InputSpec{"recPoints", "FV0", "RECPOINTS", 0},
40 "FV0Cluster",
41 "fv0-recpoint-branch-name",
42 1,
43 logger},
44 BranchDefinition<ChanDataType>{InputSpec{"recChData", "FV0", "RECCHDATA", 0},
45 "FV0RecChData",
46 "fv0-rechhdata-branch-name"})();
47}
48
49} // namespace fv0
50} // namespace o2
Definition of the FV0 RecPoints class.
Configurable generator for RootTreeWriter processor spec.
std::ostringstream debug
Generate a processor spec for the RootTreeWriter utility.
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
framework::DataProcessorSpec getRecPointWriterSpec(bool useMC)
create a processor spec
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"