![]() |
Project
|
#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, int > | getNOutliers () 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::SECTORSPERSIDE > | getStackMedian (const IDCZero &idczero, const Side side) |
DataT | the data type for the IDCDelta which are stored in the CCDB (unsigned short, unsigned char, float) |
Definition at line 60 of file IDCCCDBHelper.h.
|
default |
constructor
void o2::tpc::IDCCCDBHelper< DataT >::createOutlierMap | ( | ) |
create the outlier map with the set unscaled IDC0 map
Definition at line 629 of file IDCCCDBHelper.cxx.
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.
|
inline |
draw IDCDelta for one sector for one integration interval
sector | sector which will be drawn |
integrationInterval | which will be drawn |
filename | name of the output file. If empty the canvas is drawn. |
Definition at line 148 of file IDCCCDBHelper.h.
|
inline |
draw IDCDelta for one side for one integration interval
side | side which will be drawn |
integrationInterval | which will be drawn |
filename | name of the output file. If empty the canvas is drawn. |
Definition at line 131 of file IDCCCDBHelper.h.
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.
|
inline |
draw IDC zero I_0(r,\phi) = <I(r,\phi,t)>_t
sector | sector which will be drawn |
integrationInterval | which will be drawn |
filename | name of the output file. If empty the canvas is drawn. |
Definition at line 154 of file IDCCCDBHelper.h.
|
inline |
draw IDCs which is calculated with: (IDCDelta + 1) * IDCOne * IDCZero
side | side which will be drawn |
integrationInterval | which will be drawn |
filename | name of the output file. If empty the canvas is drawn. |
Definition at line 137 of file IDCCCDBHelper.h.
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.
TCanvas * o2::tpc::IDCCCDBHelper< DataT >::drawIDCZeroRadialProfile | ( | TCanvas * | outputCanvas, |
int | nbinsY, | ||
float | yMin, | ||
float | yMax | ||
) | const |
Definition at line 263 of file IDCCCDBHelper.cxx.
TCanvas * o2::tpc::IDCCCDBHelper< DataT >::drawIDCZeroScale | ( | TCanvas * | outputCanvas, |
const bool | rejectOutlier = true |
||
) | const |
Definition at line 225 of file IDCCCDBHelper.cxx.
|
inline |
draw IDC zero I_0(r,\phi) = <I(r,\phi,t)>_t
sector | sector which will be drawn |
filename | name of the output file. If empty the canvas is drawn. |
Definition at line 142 of file IDCCCDBHelper.h.
|
inline |
draw IDC zero I_0(r,\phi) = <I(r,\phi,t)>_t
side | side which will be drawn |
filename | name of the output file. If empty the canvas is drawn. |
Definition at line 125 of file IDCCCDBHelper.h.
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.
|
inline |
draw the status map for the flags (for debugging) for a sector
sector | sector which will be drawn \flag flag which will be drawn |
filename | name of the output file. If empty the canvas is drawn. |
Definition at line 160 of file IDCCCDBHelper.h.
|
inline |
draw the status map for the flags (for debugging) for a full side
side | side which will be drawn |
flag | which will be drawn |
filename | name of the output file. If empty the canvas is drawn. |
Definition at line 166 of file IDCCCDBHelper.h.
void o2::tpc::IDCCCDBHelper< DataT >::dumpToFourierCoeffToTree | ( | const char * | outFileName = "FourierCCDBTree.root" | ) | const |
dumping the loaded fourier coefficients to a tree
outFileName | name of the output file |
Definition at line 540 of file IDCCCDBHelper.cxx.
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
side | TPC side of the data which will be dumped |
outFileName | name of the output file |
Definition at line 438 of file IDCCCDBHelper.cxx.
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
side | TPC side of the data which will be dumped |
outFileName | name of the output file |
Definition at line 509 of file IDCCCDBHelper.cxx.
std::vector< o2::tpc::CalDet< float > > o2::tpc::IDCCCDBHelper< DataT >::getIDCDeltaCalDet | ( | ) | const |
convert the loaded IDCDelta to a vector of CalDets
Definition at line 596 of file IDCCCDBHelper.cxx.
float o2::tpc::IDCCCDBHelper< DataT >::getIDCDeltaVal | ( | const unsigned int | sector, |
const unsigned int | region, | ||
unsigned int | urow, | ||
unsigned int | upad, | ||
unsigned int | integrationInterval | ||
) | const |
sector | sector |
region | region |
urow | row of the ungrouped IDCs |
upad | pad number of the ungrouped IDCs |
integrationInterval | integration interval |
Definition at line 56 of file IDCCCDBHelper.cxx.
float o2::tpc::IDCCCDBHelper< DataT >::getIDCOneVal | ( | const o2::tpc::Side | side, |
const unsigned int | integrationInterval | ||
) | const |
side | side of the TPC |
integrationInterval | integration interval |
Definition at line 63 of file IDCCCDBHelper.cxx.
float o2::tpc::IDCCCDBHelper< DataT >::getIDCVal | ( | const unsigned int | sector, |
const unsigned int | region, | ||
unsigned int | urow, | ||
unsigned int | upad, | ||
unsigned int | integrationInterval | ||
) | const |
sector | sector |
region | region |
urow | row of the ungrouped IDCs |
upad | pad number of the ungrouped IDCs |
integrationInterval | integration interval |
Definition at line 69 of file IDCCCDBHelper.cxx.
o2::tpc::CalDet< float > o2::tpc::IDCCCDBHelper< DataT >::getIDCZeroCalDet | ( | ) | const |
convert the loaded IDC0 map to a CalDet<float>
Definition at line 576 of file IDCCCDBHelper.cxx.
float o2::tpc::IDCCCDBHelper< DataT >::getIDCZeroVal | ( | const unsigned int | sector, |
const unsigned int | region, | ||
unsigned int | urow, | ||
unsigned int | upad | ||
) | const |
sector | sector |
region | region |
urow | row of the ungrouped IDCs |
upad | pad 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.
|
static |
side | TPC side of the IDCs |
idcZero | IDCZero object for which to get the mean |
outlierMap | possible 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.
unsigned int o2::tpc::IDCCCDBHelper< DataT >::getNIntegrationIntervalsIDCDelta | ( | const o2::tpc::Side | side | ) | const |
Definition at line 35 of file IDCCCDBHelper.cxx.
unsigned int o2::tpc::IDCCCDBHelper< DataT >::getNIntegrationIntervalsIDCOne | ( | const o2::tpc::Side | side | ) | const |
Definition at line 41 of file IDCCCDBHelper.cxx.
std::pair< int, int > o2::tpc::IDCCCDBHelper< DataT >::getNOutliers | ( | ) | const |
Definition at line 791 of file IDCCCDBHelper.cxx.
|
inline |
Definition at line 203 of file IDCCCDBHelper.h.
|
static |
get median of IDC0 for given stack and sector
idcZero | IDCZero object for which to get the mean |
sector | TPC sector |
stack | stack in sector |
Definition at line 744 of file IDCCCDBHelper.cxx.
|
static |
get medians per stack for given side
Definition at line 776 of file IDCCCDBHelper.cxx.
void o2::tpc::IDCCCDBHelper< DataT >::scaleIDC0 | ( | const float | factor, |
const Side | side | ||
) |
scale the stored IDC0 to 1
factor | to scale the IDC0s with (IDC0/=factor) |
side | TPC side of the IDCs |
Definition at line 659 of file IDCCCDBHelper.cxx.
|
inline |
setting the fourier coefficients
Definition at line 76 of file IDCCCDBHelper.h.
|
inline |
setting the grouping parameters
Definition at line 83 of file IDCCCDBHelper.h.
|
inline |
setting the IDCDelta class member
Definition at line 67 of file IDCCCDBHelper.h.
|
inline |
setting the 1D-IDCs
Definition at line 73 of file IDCCCDBHelper.h.
|
inline |
setting the 0D-IDCs
Definition at line 70 of file IDCCCDBHelper.h.
void o2::tpc::IDCCCDBHelper< DataT >::setIDCZeroScale | ( | const bool | rejectOutlier = true | ) |
set scaling of IDC0 to 1
rejectOutlier | do 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.
|
inline |
Definition at line 206 of file IDCCCDBHelper.h.