Project
Loading...
Searching...
No Matches
TRDTrapRawWriterSpec.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
#ifndef O2_TRDTRAPSIMULATORTRAPRAWWRITER_H
13
#define O2_TRDTRAPSIMULATORTRAPRAWWRITER_H
14
15
#include "
Framework/DataProcessorSpec.h
"
16
#include "
DPLUtils/MakeRootTreeWriterSpec.h
"
17
#include "
Framework/InputSpec.h
"
18
#include "
TRDWorkflowIO/TRDTrapRawWriterSpec.h
"
19
#include "
DataFormatsTRD/RawData.h
"
20
#include "
DataFormatsTRD/TriggerRecord.h
"
21
#include "
DataFormatsTRD/LinkRecord.h
"
22
23
#include <fstream>
24
#include <iostream>
25
26
using namespace
o2::framework
;
27
28
namespace
o2
29
{
30
namespace
trd
31
{
32
33
template
<
typename
T>
34
using
BranchDefinition
=
framework::MakeRootTreeWriterSpec::BranchDefinition<T>
;
35
36
o2::framework::DataProcessorSpec
getTRDTrapRawWriterSpec
()
37
{
38
// using InputSpec = framework::InputSpec;
39
using
MakeRootTreeWriterSpec
=
framework::MakeRootTreeWriterSpec
;
40
return
MakeRootTreeWriterSpec
(
"TRDTrkltRawWriter"
,
41
"trdtrapraw.root"
,
42
"o2sim"
,
43
BranchDefinition
<std::vector<uint32_t>>{
InputSpec
{
"trapraw"
,
"TRD"
,
"RAWDATA"
},
"TrapRaw"
},
44
BranchDefinition<std::vector<o2::trd::LinkRecord>
>{
InputSpec
{
"traplinks"
,
"TRD"
,
"RAWLNKRD"
},
"TrapLinkRecord"
},
45
BranchDefinition<std::vector<o2::trd::TriggerRecord>
>{
InputSpec
{
"traprawtrigrec"
,
"TRD"
,
"RAWTRGRD"
},
"RawTriggerRecord"
})();
46
};
47
48
}
// end namespace trd
49
}
// end namespace o2
50
51
#endif
// O2_TRDTRAPSIMULATORTRACKLETWRITER_H
DataProcessorSpec.h
InputSpec.h
LinkRecord.h
MakeRootTreeWriterSpec.h
Configurable generator for RootTreeWriter processor spec.
RawData.h
TRDTrapRawWriterSpec.h
TriggerRecord.h
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::trd::getTRDTrapRawWriterSpec
o2::framework::DataProcessorSpec getTRDTrapRawWriterSpec()
Definition
TRDTrapRawWriterSpec.cxx:36
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
Detectors
TRD
workflow
io
src
TRDTrapRawWriterSpec.cxx
Generated on Tue Feb 25 2025 17:03:16 for Project by
1.9.8