Project
Loading...
Searching...
No Matches
DigitReaderSpec.h_notused.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_HMPID_DIGITREADER
15#define O2_HMPID_DIGITREADER
16
17#include "TFile.h"
19#include "Framework/Task.h"
23
24namespace o2
25{
26namespace hmpid
27{
28
30{
31 public:
32 DigitReader(bool useMC) : mUseMC(useMC) {}
33 ~DigitReader() override = default;
34 void init(o2::framework::InitContext& ic) final;
36
37 private:
38 int mState = 0;
39 bool mUseMC = true;
40 std::unique_ptr<TFile> mFile = nullptr;
41
42 std::vector<o2::hmpid::Digit> mDigits, *mPdigits = &mDigits;
43
44 o2::dataformats::MCTruthContainer<o2::MCCompLabel> mLabels, *mPlabels = &mLabels;
45};
46
49
50} // namespace hmpid
51} // namespace o2
52
53#endif /* O2_HMPID_DIGITREADER */
Definition of a container to keep Monte Carlo truth external to simulation objects.
A container to hold and manage MC truth information/labels.
~DigitReader() override=default
void run(o2::framework::ProcessingContext &pc) final
void init(o2::framework::InitContext &ic) final
framework::DataProcessorSpec getDigitReaderSpec(bool useMC)
read simulated HMPID digits from a root file
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...