Project
Loading...
Searching...
No Matches
TRDCalibReaderSpec.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_TRD_CALIBREADER
15#define O2_TRD_CALIBREADER
16
17#include "TFile.h"
18#include "TTree.h"
19
21#include "Framework/Task.h"
25#include <vector>
26
27namespace o2
28{
29namespace trd
30{
31
33{
34 public:
35 TRDCalibReader() = default;
36 ~TRDCalibReader() override = default;
37 void init(o2::framework::InitContext& ic) final;
39
40 private:
41 void connectTree();
42 std::unique_ptr<TFile> mFile;
43 std::unique_ptr<TTree> mTree;
44 std::string mInFileName{"trdangreshistos.root"};
45 std::string mInTreeName{"calibdata"};
46 o2::trd::AngularResidHistos mAngResids, *mAngResidPtr = &mAngResids;
47 std::vector<o2::trd::PHData> mPHData, *mPHDataPtr = &mPHData;
48 std::vector<int> mGainData, *mGainDataPtr = &mGainData;
49};
50
53framework::DataProcessorSpec getTRDCalibReaderSpec();
54
55} // namespace trd
56} // namespace o2
57
58#endif /* O2_TRD_CALIBREADER */
Class to store the angular residuals of TRD tracklets wrt TPC tracks for each TRD chamber.
Class to store the TRD dEdx distribution for each TRD chamber.
void init(o2::framework::InitContext &ic) final
~TRDCalibReader() override=default
void run(o2::framework::ProcessingContext &pc) final
framework::DataProcessorSpec getTRDCalibReaderSpec()
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...