Project
Loading...
Searching...
No Matches
o2::tpc::IDCDrawHelper Class Reference

#include <IDCDrawHelper.h>

Classes

struct  IDCDraw
 
struct  IDCDrawGIF
 

Static Public Member Functions

static void drawSector (const IDCDraw &idc, const unsigned int startRegion, const unsigned int endRegion, const unsigned int sector, const std::string zAxisTitle, const std::string filename, const float minZ=0, const float maxZ=-1)
 
static void drawSide (const IDCDraw &idc, const o2::tpc::Side side, const std::string zAxisTitle, const std::string filename, const float minZ=0, const float maxZ=-1)
 
static TH2Poly * drawSide (const IDCDraw &idc, const o2::tpc::Side side, const std::string zAxisTitle)
 
static TH1F * drawSide (const IDCDraw &idc, std::string_view type, const o2::tpc::Side side, const int nbins1D, const float xMin1D, const float xMax1D)
 
static void drawRadialProfile (const IDCDraw &idc, TH2F &hist, const o2::tpc::Side side)
 
static void drawIDCZeroStackCanvas (const IDCDraw &idc, const o2::tpc::Side side, const std::string_view type, const int nbins1D, const float xMin1D, const float xMax1D, TCanvas &outputCanvas, int integrationInterval)
 
static void drawSideGIF (const IDCDrawGIF &idcs, const unsigned int slices, const std::string zAxisTitle, const std::string filename="IDCs", const float minZ=0, const float maxZ=-1, const int run=-1)
 make a GIF of IDCs for A and C side and the 1D IDCs
 
static std::string getZAxisTitle (const IDCType type, const IDCDeltaCompression compression=IDCDeltaCompression::NO)
 

Detailed Description

Definition at line 31 of file IDCDrawHelper.h.

Member Function Documentation

◆ drawIDCZeroStackCanvas()

void o2::tpc::IDCDrawHelper::drawIDCZeroStackCanvas ( const IDCDraw idc,
const o2::tpc::Side  side,
const std::string_view  type,
const int  nbins1D,
const float  xMin1D,
const float  xMax1D,
TCanvas &  outputCanvas,
int  integrationInterval 
)
static

Definition at line 182 of file IDCDrawHelper.cxx.

◆ drawRadialProfile()

void o2::tpc::IDCDrawHelper::drawRadialProfile ( const IDCDraw idc,
TH2F &  hist,
const o2::tpc::Side  side 
)
static

Definition at line 162 of file IDCDrawHelper.cxx.

◆ drawSector()

void o2::tpc::IDCDrawHelper::drawSector ( const IDCDraw idc,
const unsigned int  startRegion,
const unsigned int  endRegion,
const unsigned int  sector,
const std::string  zAxisTitle,
const std::string  filename,
const float  minZ = 0,
const float  maxZ = -1 
)
static

draw sector

Parameters
idcIDCDraw struct containing function to get the values which will be drawn
startRegionfirst region which will be drawn
endRegionlast region which will be drawn
sectorsector which will be drawn
zAxisTitleaxis title of the z axis
fileNamename of the output file (if empty the canvas is drawn instead of writte to a file)
minZmin z value for drawing (if minZ > maxZ automatic z axis)
maxZmax z value for drawing (if minZ > maxZ automatic z axis)

Definition at line 28 of file IDCDrawHelper.cxx.

◆ drawSide() [1/3]

TH2Poly * o2::tpc::IDCDrawHelper::drawSide ( const IDCDraw idc,
const o2::tpc::Side  side,
const std::string  zAxisTitle 
)
static

Definition at line 102 of file IDCDrawHelper.cxx.

◆ drawSide() [2/3]

void o2::tpc::IDCDrawHelper::drawSide ( const IDCDraw idc,
const o2::tpc::Side  side,
const std::string  zAxisTitle,
const std::string  filename,
const float  minZ = 0,
const float  maxZ = -1 
)
static

draw side

Parameters
idcIDCDraw struct containing function to get the values which will be drawn
sideside which will be drawn
zAxisTitleaxis title of the z axis
fileNamename of the output file (if empty the canvas is drawn instead of writte to a file)
minZmin z value for drawing (if minZ > maxZ automatic z axis)
maxZmax z value for drawing (if minZ > maxZ automatic z axis)

Definition at line 76 of file IDCDrawHelper.cxx.

◆ drawSide() [3/3]

TH1F * o2::tpc::IDCDrawHelper::drawSide ( const IDCDraw idc,
std::string_view  type,
const o2::tpc::Side  side,
const int  nbins1D,
const float  xMin1D,
const float  xMax1D 
)
static

Definition at line 138 of file IDCDrawHelper.cxx.

◆ drawSideGIF()

void o2::tpc::IDCDrawHelper::drawSideGIF ( const IDCDrawGIF idcs,
const unsigned int  slices,
const std::string  zAxisTitle,
const std::string  filename = "IDCs",
const float  minZ = 0,
const float  maxZ = -1,
const int  run = -1 
)
static

make a GIF of IDCs for A and C side and the 1D IDCs

Parameters
idcIDCDraw struct containing function to get the IDCs + 1D IDCs which will be drawn
zAxisTitleaxis title of the z axis
fileNamename of the output file (.gif is added automatically)
minZmin z value for drawing (if minZ > maxZ automatic z axis)
maxZmax z value for drawing (if minZ > maxZ automatic z axis)
runrun of the IDCs (if =-1 then no run number is drawn)

Definition at line 279 of file IDCDrawHelper.cxx.

◆ getZAxisTitle()

std::string o2::tpc::IDCDrawHelper::getZAxisTitle ( const IDCType  type,
const IDCDeltaCompression  compression = IDCDeltaCompression::NO 
)
static
Returns
returns z axis title
Parameters
typeIDC type
compressioncompression of the IDCs if used (only for IDCDelta)

Definition at line 243 of file IDCDrawHelper.cxx.


The documentation for this class was generated from the following files: