Project
Loading...
Searching...
No Matches
DigitReaderSpec.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
12#ifndef O2_FT0_DIGITREADERSPEC_H
13#define O2_FT0_DIGITREADERSPEC_H
14
15#include "TFile.h"
16#include "TTree.h"
18#include "Framework/Task.h"
19
20namespace o2
21{
22namespace ft0
23{
24
26{
27 public:
28 DigitReader(bool useMC, bool useTrgInput) : mUseMC(useMC), mUseTrgInput(useTrgInput) {}
29 ~DigitReader() override = default;
30 void init(framework::InitContext& ic) final;
31 void run(framework::ProcessingContext& pc) final;
32
33 private:
34 bool mUseMC = false;
35 bool mUseTrgInput = true;
36 std::unique_ptr<TTree> mTree;
37 std::unique_ptr<TFile> mFile;
38};
39
42framework::DataProcessorSpec getDigitReaderSpec(bool useMC = false, bool useTrgInput = true);
43
44} // end namespace ft0
45} // end namespace o2
46
47#endif // O2_FT0_DIGITREADERSPEC_H
~DigitReader() override=default
void run(framework::ProcessingContext &pc) final
void init(framework::InitContext &ic) final
DigitReader(bool useMC, bool useTrgInput)
framework::DataProcessorSpec getDigitReaderSpec(bool useMC=false, bool useTrgInput=true)
struct o2::upgrades_utils::@462 ft0
structure to keep V0C information
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...