Project
Loading...
Searching...
No Matches
TRDPHReaderSpec.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
13
14
#ifndef O2_TRD_PHREADER
15
#define O2_TRD_PHREADER
16
17
#include "TFile.h"
18
#include "TTree.h"
19
20
#include "
Framework/DataProcessorSpec.h
"
21
#include "
Framework/Task.h
"
22
#include "
DataFormatsTRD/PHData.h
"
23
24
namespace
o2
25
{
26
namespace
trd
27
{
28
29
class
TRDPHReader
:
public
o2::framework::Task
30
{
31
public
:
32
TRDPHReader
() =
default
;
33
~TRDPHReader
()
override
=
default
;
34
void
init
(
o2::framework::InitContext
& ic)
final
;
35
void
run
(
o2::framework::ProcessingContext
& pc)
final
;
36
37
private
:
38
void
connectTree();
39
std::unique_ptr<TFile> mFile;
40
std::unique_ptr<TTree> mTree;
41
std::string mInFileName{
"trd_PH.root"
};
42
std::string mInTreeName{
"ph"
};
43
std::vector<o2::trd::PHData> mPHValues, *mPHValuesPtr = &mPHValues;
44
};
45
48
framework::DataProcessorSpec
getTRDPHReaderSpec
();
49
50
}
// namespace trd
51
}
// namespace o2
52
53
#endif
/* O2_TRD_PHREADER */
DataProcessorSpec.h
PHData.h
Task.h
o2::framework::InitContext
Definition
InitContext.h:25
o2::framework::ProcessingContext
Definition
ProcessingContext.h:27
o2::framework::Task
Definition
Task.h:32
o2::trd::TRDPHReader
Definition
TRDPHReaderSpec.h:30
o2::trd::TRDPHReader::run
void run(o2::framework::ProcessingContext &pc) final
Definition
TRDPHReaderSpec.cxx:50
o2::trd::TRDPHReader::TRDPHReader
TRDPHReader()=default
o2::trd::TRDPHReader::~TRDPHReader
~TRDPHReader() override=default
o2::trd::TRDPHReader::init
void init(o2::framework::InitContext &ic) final
Definition
TRDPHReaderSpec.cxx:28
o2::trd::getTRDPHReaderSpec
framework::DataProcessorSpec getTRDPHReaderSpec()
Definition
TRDPHReaderSpec.cxx:65
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
Detectors
TRD
workflow
io
include
TRDWorkflowIO
TRDPHReaderSpec.h
Generated on Tue Feb 25 2025 17:03:16 for Project by
1.9.8