Project
Loading...
Searching...
No Matches
MatchedMFTMCHWriterSpec.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>
19
20using namespace o2::framework;
21
22namespace o2
23{
24namespace globaltracking
25{
26
27template <typename T>
29using MatchesType = std::vector<o2::dataformats::MatchInfoFwd>;
30using LabelsType = std::vector<o2::MCCompLabel>;
31
33{
34 // A spectator for logging
35 auto logger = [](MatchesType const& tracks) {
36 LOG(info) << "Writing " << tracks.size() << " MFTMCH Matches";
37 };
38 return MakeRootTreeWriterSpec("mftmch-matches-writer",
39 "mftmchmatches.root",
40 "o2sim",
41 BranchDefinition<MatchesType>{InputSpec{"MFTMCHMatches", "GLO", "MTC_MFTMCH", 0}, "matches", logger})();
42}
43
44} // namespace globaltracking
45} // namespace o2
std::vector< o2::MCCompLabel > LabelsType
Configurable generator for RootTreeWriter processor spec.
Generate a processor spec for the RootTreeWriter utility.
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
std::vector< o2::dataformats::MatchInfoFwd > MatchesType
framework::DataProcessorSpec getMFTMCHMatchesWriterSpec(bool useMC)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"