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>
15
19
20using namespace o2::framework;
21
22namespace o2
23{
24namespace ft0
25{
26
27template <typename T>
30{
31 using RecPointsType = std::vector<o2::ft0::RecPoints>;
32 using ChanDataType = std::vector<o2::ft0::ChannelDataFloat>;
33 // Spectators for logging
34 auto logger = [](RecPointsType const& recPoints) {
35 LOG(debug) << "FT0RecPointWriter pulled " << recPoints.size() << " RecPoints";
36 };
37 return MakeRootTreeWriterSpec("ft0-recpoint-writer",
38 "o2reco_ft0.root",
39 "o2sim",
40 BranchDefinition<RecPointsType>{InputSpec{"recPoints", "FT0", "RECPOINTS", 0},
41 "FT0Cluster",
42 "ft0-recpoint-branch-name",
43 1,
44 logger},
45 BranchDefinition<ChanDataType>{InputSpec{"recChData", "FT0", "RECCHDATA", 0},
46 "FT0RecChData",
47 "ft0-rechhdata-branch-name"})();
48}
49
50} // namespace ft0
51} // namespace o2
Definition of the FIT 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
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 ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"