Project
Loading...
Searching...
No Matches
FilteredTFReaderSpec.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
14
15#ifndef O2_FILTERED_TF_READER_H
16#define O2_FILTERED_TF_READER_H
17
18#include <TFile.h>
19#include <TTree.h>
20#include <vector>
22#include "Framework/Task.h"
23#include "Headers/DataHeader.h"
25
26namespace o2::filtering
27{
28
30{
31
32 public:
33 FilteredTFReader(bool useMC = true);
34 ~FilteredTFReader() override = default;
35 void init(o2::framework::InitContext& ic) final;
37
38 protected:
39 void connectTree(const std::string& filename);
40
42
43 bool mUseMC = true; // use MC truth
44
45 std::unique_ptr<TFile> mFile;
46 std::unique_ptr<TTree> mTree;
47 std::string mInputFileName = "";
48 std::string mInputTreeName = "o2sim";
49 std::string mFTFBranchName = "FilteredRecoTF";
50};
51
55
56} // namespace o2::filtering
57
58#endif // O2_FILTERED_TF_READER_H
Information filtered out from single TF.
void run(o2::framework::ProcessingContext &pc) final
void init(o2::framework::InitContext &ic) final
o2::dataformats::FilteredRecoTF mFiltTF
~FilteredTFReader() override=default
o2::dataformats::FilteredRecoTF * mFiltTFPtr
void connectTree(const std::string &filename)
DataProcessorSpec getFilteredTFReaderSpec(bool useMC)
std::string filename()