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
14
#include "
FilteredTFWriterSpec.h
"
15
#include "
DataFormatsGlobalTracking/FilteredRecoTF.h
"
16
17
namespace
o2::filtering
18
{
19
20
template
<
typename
T>
21
using
BranchDefinition
=
framework::MakeRootTreeWriterSpec::BranchDefinition<T>
;
22
23
o2::framework::DataProcessorSpec
getFilteredTFWriterSpec
()
24
{
25
using
InputSpec
=
framework::InputSpec
;
26
using
MakeRootTreeWriterSpec
=
framework::MakeRootTreeWriterSpec
;
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
FilteredRecoTF.h
Information filtered out from single TF.
FilteredTFWriterSpec.h
debug
std::ostringstream debug
Definition
VariantJSONHelpers.h:307
o2::framework::MakeRootTreeWriterSpec
Generate a processor spec for the RootTreeWriter utility.
Definition
MakeRootTreeWriterSpec.h:196
o2::filtering
Definition
FilteredTFReaderSpec.cxx:24
o2::filtering::getFilteredTFWriterSpec
o2::framework::DataProcessorSpec getFilteredTFWriterSpec()
Definition
FilteredTFWriterSpec.cxx:23
tf
std::unique_ptr< GPUReconstructionTimeframe > tf
Definition
standalone.cxx:81
o2::dataformats::FilteredRecoTF
Definition
FilteredRecoTF.h:29
o2::framework::DataProcessorSpec
Definition
DataProcessorSpec.h:41
o2::framework::InputSpec
Definition
InputSpec.h:31
o2::framework::MakeRootTreeWriterSpec::BranchDefinition
Definition
MakeRootTreeWriterSpec.h:273
o2::framework::MakeRootTreeWriterSpec::TreeAttributes
Definition
MakeRootTreeWriterSpec.h:315
LOG
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"
Detectors
Filtering
src
FilteredTFWriterSpec.cxx
Generated on Tue Feb 25 2025 17:02:56 for Project by
1.9.8