Project
Loading...
Searching...
No Matches
HMPMatchedReaderSpec.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_HMP_MATCHINFOREADER
15#define O2_HMP_MATCHINFOREADER
16
17#include "TFile.h"
18#include "TTree.h"
19
21#include "Framework/Task.h"
25
26namespace o2
27{
28namespace hmpid
29{
30
32{
33 public:
34 HMPMatchedReader(bool useMC) : mUseMC(useMC) {}
35 ~HMPMatchedReader() override = default;
36 void init(o2::framework::InitContext& ic) final;
38
39 private:
40 void connectTree(const std::string& filename);
41
42 bool mUseMC = false;
43 // int mMode = 1;
44
45 std::string mInFileName{"o2match_hmp.root"};
46 std::string mInTreeName{"matchHMP"};
47 std::unique_ptr<TFile> mFile = nullptr;
48 std::unique_ptr<TTree> mTree = nullptr;
49 std::vector<o2::dataformats::MatchInfoHMP> mMatches, *mMatchesPtr = &mMatches;
50 // std::vector<o2::dataformats::MatchInfoHMP> *mMatchesPtr = nullptr;
51 std::vector<o2::MCCompLabel> mLabelHMP, *mLabelHMPPtr = &mLabelHMP;
52};
53
56framework::DataProcessorSpec getHMPMatchedReaderSpec(bool useMC);
57
58} // namespace hmpid
59} // namespace o2
60
61#endif /* O2_HMP_MATCHINFOREADER */
Class to store the output of the matching to HMPID.
Result of refitting TPC with TOF match constraint.
~HMPMatchedReader() override=default
void run(o2::framework::ProcessingContext &pc) final
void init(o2::framework::InitContext &ic) final
framework::DataProcessorSpec getHMPMatchedReaderSpec(bool useMC)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::string filename()