Project
Loading...
Searching...
No Matches
SACDrawHelper.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
15
16#ifndef ALICEO2_TPC_SACDRAWHELPER_H_
17#define ALICEO2_TPC_SACDRAWHELPER_H_
18
19#include "DataFormatsTPC/Defs.h"
20#include "functional"
22
23class TH2Poly;
24
25namespace o2::tpc
26{
27
29{
30
31 public:
35 struct SACDraw {
36 float getSAC(const unsigned int sector, const unsigned int stack) const { return mSACFunc(sector, stack); }
37 std::function<float(const unsigned int, const unsigned int)> mSACFunc;
38 };
39
47 static void drawSector(const SACDraw& SAC, const unsigned int sector, const std::string zAxisTitle, const std::string filename, const float minZ = 0, const float maxZ = -1);
48
56 static void drawSide(const SACDraw& SAC, const o2::tpc::Side side, const std::string zAxisTitle, const std::string filename, const float minZ = 0, const float maxZ = -1);
57
58 static TH2Poly* drawSide(const SACDraw& SAC, const o2::tpc::Side side, const std::string zAxisTitle);
59
62 static std::string getZAxisTitle(const SACType type);
63};
64
65} // namespace o2::tpc
66
67#endif
This file provides the structs for storing the factorized IDC values and fourier coefficients to be s...
uint32_t side
Definition RawData.h:0
uint32_t stack
Definition RawData.h:1
static std::string getZAxisTitle(const SACType type)
static void drawSector(const SACDraw &SAC, const unsigned int sector, const std::string zAxisTitle, const std::string filename, const float minZ=0, const float maxZ=-1)
static void drawSide(const SACDraw &SAC, const o2::tpc::Side side, const std::string zAxisTitle, const std::string filename, const float minZ=0, const float maxZ=-1)
GLint GLint GLsizei GLint GLenum GLenum type
Definition glcorearb.h:275
GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat maxZ
Definition glcorearb.h:2910
GLfloat GLfloat minZ
Definition glcorearb.h:2910
Global TPC definitions and constants.
Definition SimTraits.h:167
IDCType
IDC types.
Side
TPC readout sidE.
Definition Defs.h:35
std::string filename()
std::function< float(const unsigned int, const unsigned int)> mSACFunc
function returning the value which will be drawn for sector, stack
float getSAC(const unsigned int sector, const unsigned int stack) const