Project
Loading...
Searching...
No Matches
FITIntegrateClusterWriterSpec.h
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
12
#ifndef O2_FIT_FITINTEGRATECLUSTERWRITER_SPEC
13
#define O2_FIT_FITINTEGRATECLUSTERWRITER_SPEC
14
15
#include <vector>
16
#include <boost/algorithm/string.hpp>
17
#include "
FITWorkflow/FITIntegrateClusterSpec.h
"
18
#include "
DPLUtils/MakeRootTreeWriterSpec.h
"
19
#include "
CommonDataFormat/TFIDInfo.h
"
20
#include "
Framework/DataProcessorSpec.h
"
21
22
using namespace
o2::framework
;
23
24
namespace
o2
25
{
26
namespace
fit
27
{
28
template
<
typename
T>
29
using
BranchDefinition
=
MakeRootTreeWriterSpec::BranchDefinition<T>
;
30
31
template
<
typename
DataT>
32
DataProcessorSpec
getFITIntegrateClusterWriterSpec
()
33
{
34
using
FitType =
DataDescriptionFITCurrents<DataT>
;
35
36
const
std::string treeFile = fmt::format(
"o2currents_{}.root"
, FitType::getName());
37
const
std::string treeName = FitType::getName();
38
return
MakeRootTreeWriterSpec
(fmt::format(
"{}-currents-writer"
, FitType::getName()).
data
(),
39
treeFile.data(),
40
treeName.data(),
41
BranchDefinition
<
typename
DataDescriptionFITCurrents<DataT>::DataTStruct
>{InputSpec{
"ifitc"
, FitType::getDataOrigin(), FitType::getDataDescriptionFITC(), 0, Lifetime::Timeframe},
"IFITC"
, 1},
42
BranchDefinition<o2::dataformats::TFIDInfo>
{
InputSpec
{
"tfID"
, FitType::getDataOrigin(), FitType::getDataDescriptionFITTFId(), 0, Lifetime::Timeframe},
"tfID"
, 1})();
43
}
44
45
}
// end namespace fit
46
}
// end namespace o2
47
48
#endif
DataProcessorSpec.h
FITIntegrateClusterSpec.h
MakeRootTreeWriterSpec.h
Configurable generator for RootTreeWriter processor spec.
TFIDInfo.h
o2::framework::MakeRootTreeWriterSpec
Generate a processor spec for the RootTreeWriter utility.
Definition
MakeRootTreeWriterSpec.h:196
data
GLboolean * data
Definition
glcorearb.h:298
o2::fit::getFITIntegrateClusterWriterSpec
DataProcessorSpec getFITIntegrateClusterWriterSpec()
Definition
FITIntegrateClusterWriterSpec.h:32
o2::framework
Defining ITS Vertex explicitly as messageable.
Definition
Cartesian.h:288
o2::its::fit
const track::TrackFitContext< NLayers > & fit
Definition
TrackFollower.h:169
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
FlattenRestore.h:23
o2::fit::DataDescriptionFITCurrents
Definition
FITIntegrateClusterSpec.h:47
o2::framework::DataProcessorSpec
Definition
DataProcessorSpec.h:41
o2::framework::InputSpec
Definition
InputSpec.h:31
o2::framework::MakeRootTreeWriterSpec::BranchDefinition
Definition
MakeRootTreeWriterSpec.h:273
Detectors
FIT
workflow
include
FITWorkflow
FITIntegrateClusterWriterSpec.h
Generated on Wed Jun 24 2026 12:39:35 for Project by
1.9.8