Project
Loading...
Searching...
No Matches
TPCUnbinnedResidualReaderSpec.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_TPC_UNBINNEDRESIDUAL_READER_H
15#define O2_TPC_UNBINNEDRESIDUAL_READER_H
16
17#include "TFile.h"
18#include "TTree.h"
19#include <vector>
21#include "Framework/Task.h"
24
25namespace o2
26{
27namespace tpc
28{
29
31{
32 public:
33 TPCUnbinnedResidualReader(bool trkInput) : mTrackInput(trkInput){};
34 ~TPCUnbinnedResidualReader() override = default;
35 void init(o2::framework::InitContext& ic) final;
37
38 private:
39 void connectTree();
40 bool mTrackInput = false;
41 std::unique_ptr<TFile> mFileIn;
42 std::unique_ptr<TTree> mTreeIn;
43 std::string mInFileName;
44 std::string mInTreeName;
45 std::vector<UnbinnedResid> mUnbinnedResid, *mUnbinnedResidPtr = &mUnbinnedResid;
46 std::vector<TrackData> mTrackData, *mTrackDataPtr = &mTrackData;
47 std::vector<TrackDataCompact> mTrackDataCompact, *mTrackDataCompactPtr = &mTrackDataCompact;
48};
49
52
53} // namespace tpc
54} // namespace o2
55
56#endif /* O2_TPC_UNBINNEDRESIDUAL_READER_H */
Definition of the TrackInterpolation class.
Definition of the TrackResiduals class.
void init(o2::framework::InitContext &ic) final
void run(o2::framework::ProcessingContext &pc) final
~TPCUnbinnedResidualReader() override=default
framework::DataProcessorSpec getUnbinnedTPCResidualsReaderSpec(bool trkInput)
read unbinned TPC residuals and reference tracks from a root file
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...