Project
Loading...
Searching...
No Matches
DigitReader.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 ALICEO2_EMCAL_DIGITREADER_H
16#define ALICEO2_EMCAL_DIGITREADER_H
17
18#include "TTree.h"
22
23namespace o2
24{
25namespace emcal
26{
31template <class InputType>
33{
34 public:
35 DigitReader() = default;
36 ~DigitReader() = default;
37
38 void openInput(const std::string fileName);
39 bool readNextEntry();
40 void clear();
41 const std::vector<InputType>* getInputArray() const { return mInputArray; };
42 const std::vector<TriggerRecord>* getTriggerArray() const { return mTriggerArray; };
43
44 private:
45 std::vector<InputType>* mInputArray = nullptr;
46 std::vector<TriggerRecord>* mTriggerArray = nullptr;
47 std::unique_ptr<TTree> mInputTree; // input tree for cells/digits
48 int mCurrentEntry; // current entry in input file
49
50 ClassDefNV(DigitReader, 1);
51};
52
53} // namespace emcal
54} // namespace o2
55
56#endif /* ALICEO2_EMCAL_DIGITREADER_H */
DigitReader class for EMCAL. Loads cells/digits and feeds them to clusterizer.
Definition DigitReader.h:33
const std::vector< InputType > * getInputArray() const
Definition DigitReader.h:41
void openInput(const std::string fileName)
const std::vector< TriggerRecord > * getTriggerArray() const
Definition DigitReader.h:42
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...