Project
Loading...
Searching...
No Matches
TPCResidualWriterSpec.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
16
#include "
SpacePoints/TrackInterpolation.h
"
17
#include "
SpacePoints/TrackResiduals.h
"
18
#include "
SpacePoints/SpacePointsCalibConfParam.h
"
19
#include "
TPCInterpolationWorkflow/TPCResidualWriterSpec.h
"
20
#include "
DataFormatsCTP/LumiInfo.h
"
21
#include "
DPLUtils/MakeRootTreeWriterSpec.h
"
22
23
using namespace
o2::framework
;
24
25
namespace
o2
26
{
27
namespace
tpc
28
{
29
template
<
typename
T>
30
using
BranchDefinition
=
MakeRootTreeWriterSpec::BranchDefinition<T>
;
31
32
DataProcessorSpec
getTPCResidualWriterSpec
(
bool
writeTrackData,
bool
debugOutput)
33
{
34
bool
writeUnfiltered =
SpacePointsCalibConfParam::Instance
().
writeUnfiltered
;
35
return
MakeRootTreeWriterSpec
(
"tpc-residuals-writer"
,
36
"o2residuals_tpc.root"
,
37
"residualsTPC"
,
38
BranchDefinition
<std::vector<TrackData>>{
InputSpec
{
"tracksUnfiltered"
,
"GLO"
,
"TPCINT_TRK"
, 0},
"tracksUnfiltered"
, ((writeUnfiltered && writeTrackData) ? 1 : 0)},
39
BranchDefinition<std::vector<TPCClusterResiduals>
>{
InputSpec
{
"residualsUnfiltered"
,
"GLO"
,
"TPCINT_RES"
, 0},
"residualsUnfiltered"
, (writeUnfiltered ? 1 : 0)},
40
BranchDefinition<std::vector<UnbinnedResid>
>{
InputSpec
{
"residuals"
,
"GLO"
,
"UNBINNEDRES"
},
"residuals"
},
41
BranchDefinition<std::vector<TrackDataCompact>
>{
InputSpec
{
"trackRefs"
,
"GLO"
,
"TRKREFS"
},
"trackRefs"
},
42
BranchDefinition<std::vector<TrackData>
>{
InputSpec
{
"tracks"
,
"GLO"
,
"TRKDATA"
},
"tracks"
, (writeTrackData ? 1 : 0)},
43
BranchDefinition<std::vector<TrackDataExtended>
>{
InputSpec
{
"trackExt"
,
"GLO"
,
"TRKDATAEXT"
},
"trackExt"
, (debugOutput ? 1 : 0)})();
44
}
45
46
}
// namespace tpc
47
}
// namespace o2
LumiInfo.h
MakeRootTreeWriterSpec.h
Configurable generator for RootTreeWriter processor spec.
SpacePointsCalibConfParam.h
TPCResidualWriterSpec.h
TrackInterpolation.h
Definition of the TrackInterpolation class.
TrackResiduals.h
Definition of the TrackResiduals class.
o2::conf::ConfigurableParamHelper< SpacePointsCalibConfParam >::Instance
static const SpacePointsCalibConfParam & Instance()
Definition
ConfigurableParamHelper.h:81
o2::framework::MakeRootTreeWriterSpec
Generate a processor spec for the RootTreeWriter utility.
Definition
MakeRootTreeWriterSpec.h:196
o2::framework
Defining PrimaryVertex explicitly as messageable.
Definition
TFIDInfo.h:20
o2::tpc::getTPCResidualWriterSpec
framework::DataProcessorSpec getTPCResidualWriterSpec(bool writeTrackData, bool debugOutput)
create a processor spec
Definition
TPCResidualWriterSpec.cxx:32
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
o2::framework::DataProcessorSpec
Definition
DataProcessorSpec.h:41
o2::framework::InputSpec
Definition
InputSpec.h:31
o2::framework::MakeRootTreeWriterSpec::BranchDefinition
Definition
MakeRootTreeWriterSpec.h:273
o2::tpc::SpacePointsCalibConfParam::writeUnfiltered
bool writeUnfiltered
if set, all residuals and track parameters will be aggregated and dumped additionally without outlier...
Definition
SpacePointsCalibConfParam.h:64
Detectors
GlobalTrackingWorkflow
tpcinterpolationworkflow
src
TPCResidualWriterSpec.cxx
Generated on Tue Feb 25 2025 17:02:59 for Project by
1.9.8