Project
Loading...
Searching...
No Matches
RecPointReaderSpec.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_FDD_RECPOINTREADER
15#define O2_FDD_RECPOINTREADER
16
17#include "TFile.h"
18#include "TTree.h"
19
21#include "Framework/Task.h"
23
24using namespace o2::framework;
25
26namespace o2
27{
28namespace fdd
29{
30
31class RecPointReader : public Task
32{
33 public:
34 RecPointReader(bool useMC = true);
35 ~RecPointReader() override = default;
36 void init(InitContext& ic) final;
37 void run(ProcessingContext& pc) final;
38
39 private:
40 void connectTree(const std::string& filename);
41
42 std::unique_ptr<TFile> mFile;
43 std::unique_ptr<TTree> mTree;
44
45 bool mUseMC = true; // use MC truth
47
48 std::vector<o2::fdd::RecPoint>* mRecPoints = nullptr;
49 std::vector<o2::fdd::ChannelDataFloat>* mChannelData = nullptr;
50
51 std::string mInputFileName = "o2reco_fdd.root";
52 std::string mRecPointTreeName = "o2sim";
53 std::string mRecPointBranchName = "FDDCluster";
54 std::string mChannelDataBranchName = "FDDRecChData";
55};
56
60
61} // namespace fdd
62} // namespace o2
63
64#endif /* O2_FDD_RECPOINTREADER */
Definition of the FDD RecPoint class.
void run(ProcessingContext &pc) final
void init(InitContext &ic) final
~RecPointReader() override=default
constexpr o2::header::DataOrigin gDataOriginFDD
Definition DataHeader.h:568
framework::DataProcessorSpec getFDDRecPointReaderSpec(bool useMC)
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
struct o2::upgrades_utils::@459 fdd
Collision labels.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::string filename()