Project
Loading...
Searching...
No Matches
TrackWriterSpec.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
12
#include "
MCHIO/TrackWriterSpec.h
"
13
14
#include "
DPLUtils/MakeRootTreeWriterSpec.h
"
15
#include "
SimulationDataFormat/MCCompLabel.h
"
16
#include "
DataFormatsMCH/ROFRecord.h
"
17
#include "
DataFormatsMCH/TrackMCH.h
"
18
#include "
Framework/Logger.h
"
19
#include "
DataFormatsMCH/Cluster.h
"
20
#include "
DataFormatsMCH/Digit.h
"
21
#include <vector>
22
23
using namespace
o2::framework
;
24
25
namespace
o2::mch
26
{
27
28
template
<
typename
T>
29
using
BranchDefinition
=
MakeRootTreeWriterSpec::BranchDefinition<T>
;
30
31
DataProcessorSpec
getTrackWriterSpec
(
bool
useMC,
const
char
*
specName
,
const
char
* fileName,
bool
digits
)
32
{
33
return
MakeRootTreeWriterSpec
(
specName
,
34
fileName,
35
MakeRootTreeWriterSpec::TreeAttributes
{
"o2sim"
,
"Tree MCH Standalone Tracks"
},
36
BranchDefinition<std::vector<TrackMCH>
>{
InputSpec
{
"tracks"
,
"MCH"
,
"TRACKS"
},
"tracks"
},
37
BranchDefinition<std::vector<ROFRecord>
>{
InputSpec
{
"trackrofs"
,
"MCH"
,
"TRACKROFS"
},
"trackrofs"
},
38
BranchDefinition<std::vector<Cluster>
>{
InputSpec
{
"trackclusters"
,
"MCH"
,
"TRACKCLUSTERS"
},
"trackclusters"
},
39
BranchDefinition<std::vector<Digit>
>{
InputSpec
{
"trackdigits"
,
"MCH"
,
"TRACKDIGITS"
},
"trackdigits"
,
digits
? 1 : 0},
40
BranchDefinition<std::vector<o2::MCCompLabel>
>{
InputSpec
{
"tracklabels"
,
"MCH"
,
"TRACKLABELS"
},
"tracklabels"
, useMC ? 1 : 0})();
41
}
42
43
}
// namespace o2::mch
Cluster.h
Definition of the MCH cluster minimal structure.
Digit.h
Logger.h
MCCompLabel.h
TrackWriterSpec.h
ROFRecord.h
Definition of the MCH ROFrame record.
MakeRootTreeWriterSpec.h
Configurable generator for RootTreeWriter processor spec.
TrackMCH.h
Definition of the MCH track.
specName
const char * specName
Definition
badchannel-calib-workflow.cxx:23
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::mch
Definition
SimTraits.h:155
o2::mch::getTrackWriterSpec
o2::framework::DataProcessorSpec getTrackWriterSpec(bool useMC, const char *specName="mch-track-writer", const char *fileName="mchtracks.root", bool digits=false)
Definition
TrackWriterSpec.cxx:31
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
digits
std::vector< Digit > digits
Definition
test_ctf_io_hmpid.cxx:40
Detectors
MUON
MCH
IO
src
TrackWriterSpec.cxx
Generated on Tue Feb 25 2025 17:03:04 for Project by
1.9.8