Project
Loading...
Searching...
No Matches
ChamberCalibrations.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_TRD_CHAMBERCALIBRATIONS_H
13#define O2_TRD_CHAMBERCALIBRATIONS_H
14
16// //
17// TRD calibration class for parameters which are saved frequently(/run) //
18// 2019 - Ported from various bits of AliRoot (SHTM) //
19// Most things were stored in AliTRDcalROC,AliTRDcalPad, AliTRDcalDet //
21
24
25namespace o2
26{
27namespace trd
28{
30{
31 public:
34 //
35 float getVDrift(int p, int c, int s) const { return mVDrift[HelperMethods::getDetector(s, c, p)]; };
36 float getVDrift(int roc) const { return mVDrift[roc]; };
37 float getGainFactor(int p, int c, int s) const { return mGainFactor[HelperMethods::getDetector(s, c, p)]; };
38 float getGainFactor(int roc) const { return mGainFactor[roc]; };
39 float getT0(int p, int c, int s) const { return mT0[HelperMethods::getDetector(s, c, p)]; };
40 float getT0(int roc) const { return mT0[roc]; };
41 float getExB(int p, int c, int s) const { return mExB[HelperMethods::getDetector(s, c, p)]; };
42 float getExB(int roc) const { return mExB[roc]; };
43 void setVDrift(int p, int c, int s, float vdrift) { mVDrift[HelperMethods::getDetector(s, c, p)] = vdrift; };
44 void setVDrift(int roc, float vdrift) { mVDrift[roc] = vdrift; };
45 void setGainFactor(int p, int c, int s, float gainfactor) { mGainFactor[HelperMethods::getDetector(s, c, p)] = gainfactor; };
46 void setGainFactor(int roc, float gainfactor) { mGainFactor[roc] = gainfactor; };
47 void setT0(int p, int c, int s, float t0) { mT0[HelperMethods::getDetector(s, c, p)] = t0; };
48 void setT0(int roc, float t0) { mT0[roc] = t0; };
49 void setExB(int p, int c, int s, float exb) { mExB[HelperMethods::getDetector(s, c, p)] = exb; };
50 void setExB(int roc, float exb) { mExB[roc] = exb; };
51
52 private:
53 std::array<float, constants::MAXCHAMBER> mVDrift{}; // mean drift velocity per chamber.
54 std::array<float, constants::MAXCHAMBER> mGainFactor{}; // mean gas gain per chamber
55 std::array<float, constants::MAXCHAMBER> mT0{}; // Min timeoffset in the chamber
56 std::array<float, constants::MAXCHAMBER> mExB{}; //
57 ClassDefNV(ChamberCalibrations, 1);
58};
59} // namespace trd
60} // namespace o2
61#endif
Global TRD definitions and constants.
uint32_t roc
Definition RawData.h:3
uint32_t c
Definition RawData.h:2
void setT0(int roc, float t0)
void setGainFactor(int roc, float gainfactor)
void setT0(int p, int c, int s, float t0)
float getGainFactor(int p, int c, int s) const
void setExB(int p, int c, int s, float exb)
float getExB(int p, int c, int s) const
void setVDrift(int p, int c, int s, float vdrift)
void setVDrift(int roc, float vdrift)
void setGainFactor(int p, int c, int s, float gainfactor)
void setExB(int roc, float exb)
float getGainFactor(int roc) const
float getT0(int p, int c, int s) const
float getVDrift(int p, int c, int s) const
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat t0
Definition glcorearb.h:5034
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
static int getDetector(int sector, int stack, int layer)