Project
Loading...
Searching...
No Matches
o2::tpc::IDCCCDBHelper< DataT > Class Template Reference

#include <IDCCCDBHelper.h>

Public Member Functions

 IDCCCDBHelper ()=default
 constructor
 
void setIDCDelta (IDCDelta< DataT > *idcDelta, const Side side=Side::A)
 setting the IDCDelta class member
 
void setIDCZero (IDCZero *idcZero, const Side side=Side::A)
 setting the 0D-IDCs
 
void setIDCOne (IDCOne *idcOne, const Side side=Side::A)
 setting the 1D-IDCs
 
void setFourierCoeffs (FourierCoeff *fourier, const Side side=Side::A)
 setting the fourier coefficients
 
void setIDCZeroScale (const bool rejectOutlier=true)
 
void setGroupingParameter (IDCGroupHelperSector *helperSector, const Side side=Side::A)
 setting the grouping parameters
 
unsigned int getNIntegrationIntervalsIDCDelta (const o2::tpc::Side side) const
 
unsigned int getNIntegrationIntervalsIDCOne (const o2::tpc::Side side) const
 
float getIDCZeroVal (const unsigned int sector, const unsigned int region, unsigned int urow, unsigned int upad) const
 
float getIDCDeltaVal (const unsigned int sector, const unsigned int region, unsigned int urow, unsigned int upad, unsigned int integrationInterval) const
 
float getIDCOneVal (const o2::tpc::Side side, const unsigned int integrationInterval) const
 
void createOutlierMap ()
 create the outlier map with the set unscaled IDC0 map
 
float getIDCVal (const unsigned int sector, const unsigned int region, unsigned int urow, unsigned int upad, unsigned int integrationInterval) const
 
void drawIDCZeroSide (const o2::tpc::Side side, const std::string filename="IDCZeroSide.pdf", const float minZ=0, const float maxZ=-1) const
 
void drawIDCDeltaSide (const o2::tpc::Side side, const unsigned int integrationInterval, const std::string filename="IDCDeltaSide.pdf", const float minZ=0, const float maxZ=-1) const
 
void drawIDCSide (const o2::tpc::Side side, const unsigned int integrationInterval, const std::string filename="IDCSide.pdf", const float minZ=0, const float maxZ=-1) const
 
void drawIDCZeroSector (const unsigned int sector, const std::string filename="IDCZeroSector.pdf", const float minZ=0, const float maxZ=-1) const
 
void drawIDCDeltaSector (const unsigned int sector, const unsigned int integrationInterval, const std::string filename="IDCDeltaSector.pdf", const float minZ=0, const float maxZ=-1) const
 
void drawIDCSector (const unsigned int sector, const unsigned int integrationInterval, const std::string filename="IDCSector.pdf", const float minZ=0, const float maxZ=-1) const
 
void drawPadStatusFlagsMapSector (const unsigned int sector, const PadFlags flag, const std::string filename="PadStatusFlags_Sector.pdf") const
 
void drawPadStatusFlagsMapSide (const o2::tpc::Side side, const PadFlags flag, const std::string filename="PadStatusFlags_Side.pdf") const
 
TCanvas * drawIDCZeroCanvas (TCanvas *outputCanvas, std::string_view type, int nbins1D, float xMin1D, float xMax1D, int integrationInterval=-1) const
 
TCanvas * drawIDCZeroScale (TCanvas *outputCanvas, const bool rejectOutlier=true) const
 
TCanvas * drawIDCZeroRadialProfile (TCanvas *outputCanvas, int nbinsY, float yMin, float yMax) const
 
TCanvas * drawIDCZeroStackCanvas (TCanvas *outputCanvas, Side side, std::string_view type, int nbins1D, float xMin1D, float xMax1D, int integrationInterval=-1) const
 
TCanvas * drawIDCOneCanvas (TCanvas *outputCanvas, int nbins1D, float xMin1D, float xMax1D, int integrationIntervals=-1) const
 
TCanvas * drawFourierCoeff (TCanvas *outputCanvas, Side side, int nbins1D, float xMin1D, float xMax1D) const
 
void dumpToTree (const Side side, const char *outFileName="IDCCCDBTree.root") const
 
void dumpToFourierCoeffToTree (const char *outFileName="FourierCCDBTree.root") const
 
void dumpToTreeIDCDelta (const Side side, const char *outFileName="IDCCCDBTreeDeltaIDC.root") const
 
CalDet< float > getIDCZeroCalDet () const
 
std::vector< CalDet< float > > getIDCDeltaCalDet () const
 
CalDet< PadFlags > * getPadStatusMap () const
 
void setPadStatusMap (const CalDet< PadFlags > &outliermap)
 
void scaleIDC0 (const float factor, const Side side)
 
std::pair< int, intgetNOutliers () const
 

Static Public Member Functions

static float getMeanIDC0 (const Side side, const IDCZero &idcZero, const CalDet< PadFlags > *outlierMap)
 
static float getStackMedian (const IDCZero &idczero, const Sector sector, const GEMstack stack)
 
static std::array< float, o2::tpc::GEMSTACKSPERSECTOR *o2::tpc::SECTORSPERSIDEgetStackMedian (const IDCZero &idczero, const Side side)
 

Detailed Description

template<typename DataT = unsigned short>
class o2::tpc::IDCCCDBHelper< DataT >
Template Parameters
DataTthe data type for the IDCDelta which are stored in the CCDB (unsigned short, unsigned char, float)

Definition at line 60 of file IDCCCDBHelper.h.

Constructor & Destructor Documentation

◆ IDCCCDBHelper()

template<typename DataT = unsigned short>
o2::tpc::IDCCCDBHelper< DataT >::IDCCCDBHelper ( )
default

constructor

Member Function Documentation

◆ createOutlierMap()

template<typename DataT >
void o2::tpc::IDCCCDBHelper< DataT >::createOutlierMap ( )

create the outlier map with the set unscaled IDC0 map

Definition at line 629 of file IDCCCDBHelper.cxx.

◆ drawFourierCoeff()

template<typename DataT >
TCanvas * o2::tpc::IDCCCDBHelper< DataT >::drawFourierCoeff ( TCanvas *  outputCanvas,
Side  side,
int  nbins1D,
float  xMin1D,
float  xMax1D 
) const

Definition at line 397 of file IDCCCDBHelper.cxx.

◆ drawIDCDeltaSector()

template<typename DataT = unsigned short>
void o2::tpc::IDCCCDBHelper< DataT >::drawIDCDeltaSector ( const unsigned int  sector,
const unsigned int  integrationInterval,
const std::string  filename = "IDCDeltaSector.pdf",
const float  minZ = 0,
const float  maxZ = -1 
) const
inline

draw IDCDelta for one sector for one integration interval

Parameters
sectorsector which will be drawn
integrationIntervalwhich will be drawn
filenamename of the output file. If empty the canvas is drawn.

Definition at line 148 of file IDCCCDBHelper.h.

◆ drawIDCDeltaSide()

template<typename DataT = unsigned short>
void o2::tpc::IDCCCDBHelper< DataT >::drawIDCDeltaSide ( const o2::tpc::Side  side,
const unsigned int  integrationInterval,
const std::string  filename = "IDCDeltaSide.pdf",
const float  minZ = 0,
const float  maxZ = -1 
) const
inline

draw IDCDelta for one side for one integration interval

Parameters
sideside which will be drawn
integrationIntervalwhich will be drawn
filenamename of the output file. If empty the canvas is drawn.

Definition at line 131 of file IDCCCDBHelper.h.

◆ drawIDCOneCanvas()

template<typename DataT >
TCanvas * o2::tpc::IDCCCDBHelper< DataT >::drawIDCOneCanvas ( TCanvas *  outputCanvas,
int  nbins1D,
float  xMin1D,
float  xMax1D,
int  integrationIntervals = -1 
) const

Definition at line 355 of file IDCCCDBHelper.cxx.

◆ drawIDCSector()

template<typename DataT = unsigned short>
void o2::tpc::IDCCCDBHelper< DataT >::drawIDCSector ( const unsigned int  sector,
const unsigned int  integrationInterval,
const std::string  filename = "IDCSector.pdf",
const float  minZ = 0,
const float  maxZ = -1 
) const
inline

draw IDC zero I_0(r,\phi) = <I(r,\phi,t)>_t

Parameters
sectorsector which will be drawn
integrationIntervalwhich will be drawn
filenamename of the output file. If empty the canvas is drawn.

Definition at line 154 of file IDCCCDBHelper.h.

◆ drawIDCSide()

template<typename DataT = unsigned short>
void o2::tpc::IDCCCDBHelper< DataT >::drawIDCSide ( const o2::tpc::Side  side,
const unsigned int  integrationInterval,
const std::string  filename = "IDCSide.pdf",
const float  minZ = 0,
const float  maxZ = -1 
) const
inline

draw IDCs which is calculated with: (IDCDelta + 1) * IDCOne * IDCZero

Parameters
sideside which will be drawn
integrationIntervalwhich will be drawn
filenamename of the output file. If empty the canvas is drawn.

Definition at line 137 of file IDCCCDBHelper.h.

◆ drawIDCZeroCanvas()

template<typename DataT >
TCanvas * o2::tpc::IDCCCDBHelper< DataT >::drawIDCZeroCanvas ( TCanvas *  outputCanvas,
std::string_view  type,
int  nbins1D,
float  xMin1D,
float  xMax1D,
int  integrationInterval = -1 
) const

Definition at line 144 of file IDCCCDBHelper.cxx.

◆ drawIDCZeroRadialProfile()

template<typename DataT >
TCanvas * o2::tpc::IDCCCDBHelper< DataT >::drawIDCZeroRadialProfile ( TCanvas *  outputCanvas,
int  nbinsY,
float  yMin,
float  yMax 
) const

Definition at line 263 of file IDCCCDBHelper.cxx.

◆ drawIDCZeroScale()

template<typename DataT >
TCanvas * o2::tpc::IDCCCDBHelper< DataT >::drawIDCZeroScale ( TCanvas *  outputCanvas,
const bool  rejectOutlier = true 
) const

Definition at line 225 of file IDCCCDBHelper.cxx.

◆ drawIDCZeroSector()

template<typename DataT = unsigned short>
void o2::tpc::IDCCCDBHelper< DataT >::drawIDCZeroSector ( const unsigned int  sector,
const std::string  filename = "IDCZeroSector.pdf",
const float  minZ = 0,
const float  maxZ = -1 
) const
inline

draw IDC zero I_0(r,\phi) = <I(r,\phi,t)>_t

Parameters
sectorsector which will be drawn
filenamename of the output file. If empty the canvas is drawn.

Definition at line 142 of file IDCCCDBHelper.h.

◆ drawIDCZeroSide()

template<typename DataT = unsigned short>
void o2::tpc::IDCCCDBHelper< DataT >::drawIDCZeroSide ( const o2::tpc::Side  side,
const std::string  filename = "IDCZeroSide.pdf",
const float  minZ = 0,
const float  maxZ = -1 
) const
inline

draw IDC zero I_0(r,\phi) = <I(r,\phi,t)>_t

Parameters
sideside which will be drawn
filenamename of the output file. If empty the canvas is drawn.

Definition at line 125 of file IDCCCDBHelper.h.

◆ drawIDCZeroStackCanvas()

template<typename DataT >
TCanvas * o2::tpc::IDCCCDBHelper< DataT >::drawIDCZeroStackCanvas ( TCanvas *  outputCanvas,
Side  side,
std::string_view  type,
int  nbins1D,
float  xMin1D,
float  xMax1D,
int  integrationInterval = -1 
) const

Definition at line 319 of file IDCCCDBHelper.cxx.

◆ drawPadStatusFlagsMapSector()

template<typename DataT = unsigned short>
void o2::tpc::IDCCCDBHelper< DataT >::drawPadStatusFlagsMapSector ( const unsigned int  sector,
const PadFlags  flag,
const std::string  filename = "PadStatusFlags_Sector.pdf" 
) const
inline

draw the status map for the flags (for debugging) for a sector

Parameters
sectorsector which will be drawn \flag flag which will be drawn
filenamename of the output file. If empty the canvas is drawn.

Definition at line 160 of file IDCCCDBHelper.h.

◆ drawPadStatusFlagsMapSide()

template<typename DataT = unsigned short>
void o2::tpc::IDCCCDBHelper< DataT >::drawPadStatusFlagsMapSide ( const o2::tpc::Side  side,
const PadFlags  flag,
const std::string  filename = "PadStatusFlags_Side.pdf" 
) const
inline

draw the status map for the flags (for debugging) for a full side

Parameters
sideside which will be drawn
flagwhich will be drawn
filenamename of the output file. If empty the canvas is drawn.

Definition at line 166 of file IDCCCDBHelper.h.

◆ dumpToFourierCoeffToTree()

template<typename DataT >
void o2::tpc::IDCCCDBHelper< DataT >::dumpToFourierCoeffToTree ( const char outFileName = "FourierCCDBTree.root") const

dumping the loaded fourier coefficients to a tree

Parameters
outFileNamename of the output file

Definition at line 540 of file IDCCCDBHelper.cxx.

◆ dumpToTree()

template<typename DataT >
void o2::tpc::IDCCCDBHelper< DataT >::dumpToTree ( const Side  side,
const char outFileName = "IDCCCDBTree.root" 
) const

dumping the loaded IDC0, IDC1 to a tree for debugging

Parameters
sideTPC side of the data which will be dumped
outFileNamename of the output file

Definition at line 438 of file IDCCCDBHelper.cxx.

◆ dumpToTreeIDCDelta()

template<typename DataT >
void o2::tpc::IDCCCDBHelper< DataT >::dumpToTreeIDCDelta ( const Side  side,
const char outFileName = "IDCCCDBTreeDeltaIDC.root" 
) const

dumping the loaded IDC0, IDC1 to a tree for debugging

Parameters
sideTPC side of the data which will be dumped
outFileNamename of the output file

Definition at line 509 of file IDCCCDBHelper.cxx.

◆ getIDCDeltaCalDet()

template<typename DataT >
std::vector< o2::tpc::CalDet< float > > o2::tpc::IDCCCDBHelper< DataT >::getIDCDeltaCalDet ( ) const

convert the loaded IDCDelta to a vector of CalDets

Returns
returns std vector of CalDets containing the IDCDelta

Definition at line 596 of file IDCCCDBHelper.cxx.

◆ getIDCDeltaVal()

template<typename DataT >
float o2::tpc::IDCCCDBHelper< DataT >::getIDCDeltaVal ( const unsigned int  sector,
const unsigned int  region,
unsigned int  urow,
unsigned int  upad,
unsigned int  integrationInterval 
) const
Returns
returns the stored DeltaIDC value for local ungrouped pad row and ungrouped pad
Parameters
sectorsector
regionregion
urowrow of the ungrouped IDCs
upadpad number of the ungrouped IDCs
integrationIntervalintegration interval

Definition at line 56 of file IDCCCDBHelper.cxx.

◆ getIDCOneVal()

template<typename DataT >
float o2::tpc::IDCCCDBHelper< DataT >::getIDCOneVal ( const o2::tpc::Side  side,
const unsigned int  integrationInterval 
) const
Returns
returns IDCOne value
Parameters
sideside of the TPC
integrationIntervalintegration interval

Definition at line 63 of file IDCCCDBHelper.cxx.

◆ getIDCVal()

template<typename DataT >
float o2::tpc::IDCCCDBHelper< DataT >::getIDCVal ( const unsigned int  sector,
const unsigned int  region,
unsigned int  urow,
unsigned int  upad,
unsigned int  integrationInterval 
) const
Returns
returns the IDC value which is calculated with: (IDCDelta + 1) * IDCOne * IDCZero
Parameters
sectorsector
regionregion
urowrow of the ungrouped IDCs
upadpad number of the ungrouped IDCs
integrationIntervalintegration interval

Definition at line 69 of file IDCCCDBHelper.cxx.

◆ getIDCZeroCalDet()

template<typename DataT >
o2::tpc::CalDet< float > o2::tpc::IDCCCDBHelper< DataT >::getIDCZeroCalDet ( ) const

convert the loaded IDC0 map to a CalDet<float>

Returns
returns CalDet containing the IDCZero

Definition at line 576 of file IDCCCDBHelper.cxx.

◆ getIDCZeroVal()

template<typename DataT >
float o2::tpc::IDCCCDBHelper< DataT >::getIDCZeroVal ( const unsigned int  sector,
const unsigned int  region,
unsigned int  urow,
unsigned int  upad 
) const
Returns
returns the stored IDC0 value for local ungrouped pad row and ungrouped pad
Parameters
sectorsector
regionregion
urowrow of the ungrouped IDCs
upadpad number of the ungrouped IDCs

if the number of pads of the IDC0 corresponds to the number of pads of one TPC side, then no grouping was applied

Definition at line 47 of file IDCCCDBHelper.cxx.

◆ getMeanIDC0()

template<typename DataT >
float o2::tpc::IDCCCDBHelper< DataT >::getMeanIDC0 ( const Side  side,
const IDCZero idcZero,
const CalDet< PadFlags > *  outlierMap 
)
static
Returns
mean of IDC0
Parameters
sideTPC side of the IDCs
idcZeroIDCZero object for which to get the mean
outlierMappossible map containing the outliers which will not be taken into account (if nullptr all IDCs are taken into account)

Definition at line 699 of file IDCCCDBHelper.cxx.

◆ getNIntegrationIntervalsIDCDelta()

template<typename DataT >
unsigned int o2::tpc::IDCCCDBHelper< DataT >::getNIntegrationIntervalsIDCDelta ( const o2::tpc::Side  side) const
Returns
returns the number of integration intervals for IDCDelta

Definition at line 35 of file IDCCCDBHelper.cxx.

◆ getNIntegrationIntervalsIDCOne()

template<typename DataT >
unsigned int o2::tpc::IDCCCDBHelper< DataT >::getNIntegrationIntervalsIDCOne ( const o2::tpc::Side  side) const
Returns
returns the number of integration intervals for IDCOne

Definition at line 41 of file IDCCCDBHelper.cxx.

◆ getNOutliers()

template<typename DataT >
std::pair< int, int > o2::tpc::IDCCCDBHelper< DataT >::getNOutliers ( ) const
Returns
return for the set outlier map the total number of outliers per side .first=A-side, .second=C-side

Definition at line 791 of file IDCCCDBHelper.cxx.

◆ getPadStatusMap()

template<typename DataT = unsigned short>
CalDet< PadFlags > * o2::tpc::IDCCCDBHelper< DataT >::getPadStatusMap ( ) const
inline
Returns
returns pointer to pad status map

Definition at line 203 of file IDCCCDBHelper.h.

◆ getStackMedian() [1/2]

template<typename DataT >
float o2::tpc::IDCCCDBHelper< DataT >::getStackMedian ( const IDCZero idczero,
const Sector  sector,
const GEMstack  stack 
)
static

get median of IDC0 for given stack and sector

Parameters
idcZeroIDCZero object for which to get the mean
sectorTPC sector
stackstack in sector

Definition at line 744 of file IDCCCDBHelper.cxx.

◆ getStackMedian() [2/2]

template<typename DataT >
std::array< float, o2::tpc::GEMSTACKSPERSECTOR *o2::tpc::SECTORSPERSIDE > o2::tpc::IDCCCDBHelper< DataT >::getStackMedian ( const IDCZero idczero,
const Side  side 
)
static

get medians per stack for given side

Parameters
idcZeroIDCZero object for which to get the mean
sideTPC side of the IDCZero

Definition at line 776 of file IDCCCDBHelper.cxx.

◆ scaleIDC0()

template<typename DataT >
void o2::tpc::IDCCCDBHelper< DataT >::scaleIDC0 ( const float  factor,
const Side  side 
)

scale the stored IDC0 to 1

Parameters
factorto scale the IDC0s with (IDC0/=factor)
sideTPC side of the IDCs

Definition at line 659 of file IDCCCDBHelper.cxx.

◆ setFourierCoeffs()

template<typename DataT = unsigned short>
void o2::tpc::IDCCCDBHelper< DataT >::setFourierCoeffs ( FourierCoeff fourier,
const Side  side = Side::A 
)
inline

setting the fourier coefficients

Definition at line 76 of file IDCCCDBHelper.h.

◆ setGroupingParameter()

template<typename DataT = unsigned short>
void o2::tpc::IDCCCDBHelper< DataT >::setGroupingParameter ( IDCGroupHelperSector helperSector,
const Side  side = Side::A 
)
inline

setting the grouping parameters

Definition at line 83 of file IDCCCDBHelper.h.

◆ setIDCDelta()

template<typename DataT = unsigned short>
void o2::tpc::IDCCCDBHelper< DataT >::setIDCDelta ( IDCDelta< DataT > *  idcDelta,
const Side  side = Side::A 
)
inline

setting the IDCDelta class member

Definition at line 67 of file IDCCCDBHelper.h.

◆ setIDCOne()

template<typename DataT = unsigned short>
void o2::tpc::IDCCCDBHelper< DataT >::setIDCOne ( IDCOne idcOne,
const Side  side = Side::A 
)
inline

setting the 1D-IDCs

Definition at line 73 of file IDCCCDBHelper.h.

◆ setIDCZero()

template<typename DataT = unsigned short>
void o2::tpc::IDCCCDBHelper< DataT >::setIDCZero ( IDCZero idcZero,
const Side  side = Side::A 
)
inline

setting the 0D-IDCs

Definition at line 70 of file IDCCCDBHelper.h.

◆ setIDCZeroScale()

template<typename DataT >
void o2::tpc::IDCCCDBHelper< DataT >::setIDCZeroScale ( const bool  rejectOutlier = true)

set scaling of IDC0 to 1

Parameters
rejectOutlierdo not take outlier into account

check if IDC0 total is not zero, in that case no scalling is applied

Definition at line 670 of file IDCCCDBHelper.cxx.

◆ setPadStatusMap()

template<typename DataT = unsigned short>
void o2::tpc::IDCCCDBHelper< DataT >::setPadStatusMap ( const CalDet< PadFlags > &  outliermap)
inline
Returns
returns pointer to pad status map

Definition at line 206 of file IDCCCDBHelper.h.


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