Project
Loading...
Searching...
No Matches
FilteredTFWriterSpec.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
16
17namespace o2::filtering
18{
19
20template <typename T>
22
24{
27 // Spectators for logging
28 auto logger = [](const o2::dataformats::FilteredRecoTF& tf) {
29 LOG(debug) << "writing filtered TF: " << tf.header.asString();
30 };
31 return MakeRootTreeWriterSpec("filterer-reco-tf-writer",
32 "o2_filtered_tf.root",
33 MakeRootTreeWriterSpec::TreeAttributes{"o2sim", "Filtered reconstructed TF"},
34 BranchDefinition<o2::dataformats::FilteredRecoTF>{InputSpec{"ftf", "GLO", "FILTERED_RECO_TF", 0}, "FTF", logger})();
35}
36
37} // end namespace o2::filtering
Information filtered out from single TF.
std::ostringstream debug
Generate a processor spec for the RootTreeWriter utility.
o2::framework::DataProcessorSpec getFilteredTFWriterSpec()
std::unique_ptr< GPUReconstructionTimeframe > tf
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"