![]() |
Project
|
#include <IDCAverageGroup.h>
Inherits o2::tpc::IDCAverageGroupBase< Type >.
Public Member Functions | |
template<bool IsEnabled = true, typename std::enable_if<(IsEnabled &&(std::is_same< Type, IDCAverageGroupCRU >::value)), int >::type = 0> | |
IDCAverageGroup (const unsigned char groupPads=4, const unsigned char groupRows=4, const unsigned char groupLastRowsThreshold=2, const unsigned char groupLastPadsThreshold=2, const unsigned int groupPadsSectorEdges=0, const unsigned short cru=0, const unsigned char overlapRows=0, const unsigned char overlapPads=0) | |
template<bool IsEnabled = true, typename std::enable_if<(IsEnabled &&(std::is_same< Type, IDCAverageGroupTPC >::value)), int >::type = 0> | |
IDCAverageGroup (const std::array< unsigned char, Mapper::NREGIONS > &groupPads={1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, const std::array< unsigned char, Mapper::NREGIONS > &groupRows={1, 1, 1, 1, 1, 1, 1, 1, 1, 1}, const std::array< unsigned char, Mapper::NREGIONS > &groupLastRowsThreshold={}, const std::array< unsigned char, Mapper::NREGIONS > &groupLastPadsThreshold={}, const unsigned int groupPadsSectorEdges=0, const unsigned char overlapRows=0, const unsigned char overlapPads=0) | |
void | processIDCs (const CalDet< PadFlags > *padStatusFlags=nullptr) |
void | drawGrouping (const std::string filename="") |
void | dumpToFile (const char *outFileName="IDCAverageGroup.root", const char *outName="IDCAverageGroup") const |
const auto & | getIDCGroup () const |
const auto & | getIDCsUngrouped () const |
bool | setFromFile (const char *fileName="IDCAverageGroup.root", const char *name="IDCAverageGroup") |
void | createDebugTree (const char *nameFile) |
void | processIDCs (const CalDet< PadFlags > *padStatusFlags) |
void | processIDCs (const CalDet< PadFlags > *padStatusFlags) |
void | createDebugTree (const char *nameFile) |
void | createDebugTree (const char *nameFile) |
void | createDebugTreeForAllCRUs (const char *nameFile, const char *filename) |
Static Public Member Functions | |
static int | getNThreads () |
get the number of threads used for some of the calculations | |
static void | setSigma (const float sigma) |
static void | setNThreads (const int nThreads) |
set the number of threads used for some of the calculations | |
static void | createDebugTreeForAllCRUs (const char *nameFile, const char *filename) |
class for averaging and grouping IDCs usage:
IDCAverageGroupCRU | or IDCAverageGroupTPC |
Definition at line 55 of file IDCAverageGroup.h.
|
inline |
constructor
groupPads | number of pads in pad direction which will be grouped |
groupRows | number of pads in row direction which will be grouped |
groupLastRowsThreshold | minimum number of pads in row direction for the last group in row direction |
groupLastPadsThreshold | minimum number of pads in pad direction for the last group in pad direction |
groupPadsSectorEdges | decoded number of pads at the sector edges which are grouped differently. First digit specifies the EdgePadGroupingMethod (example: 0: no pads are grouped, 110: first two pads are not grouped, 3210: first pad is not grouped, second + third pads are grouped, fourth + fifth + sixth pads are grouped) |
cru | cru index |
overlapRows | define parameter for additional overlapping pads in row direction |
overlapPads | define parameter for additional overlapping pads in pad direction |
Definition at line 68 of file IDCAverageGroup.h.
|
inline |
groupPads | number of pads in pad direction which will be grouped |
groupRows | number of pads in row direction which will be grouped |
groupLastRowsThreshold | minimum number of pads in row direction for the last group in row direction |
groupLastPadsThreshold | minimum number of pads in pad direction for the last group in pad direction |
groupPadsSectorEdges | decoded number of pads at the sector edges which are grouped differently. First digit specifies the EdgePadGroupingMethod (example: 0: no pads are grouped, 110: first two pads are not grouped, 3210: first pad is not grouped, second + third pads are grouped, fourth + fifth + sixth pads are grouped) |
overlapRows | define parameter for additional overlapping pads in row direction |
overlapPads | define parameter for additional overlapping pads in pad direction |
Definition at line 82 of file IDCAverageGroup.h.
void o2::tpc::IDCAverageGroup< Type >::createDebugTree | ( | const char * | nameFile | ) |
for debugging: creating debug tree
nameFile | name of the output file |
void o2::tpc::IDCAverageGroup< o2::tpc::IDCAverageGroupCRU >::createDebugTree | ( | const char * | nameFile | ) |
Definition at line 457 of file IDCAverageGroup.cxx.
void o2::tpc::IDCAverageGroup< o2::tpc::IDCAverageGroupTPC >::createDebugTree | ( | const char * | nameFile | ) |
Definition at line 470 of file IDCAverageGroup.cxx.
|
static |
for debugging: creating debug tree for integrated IDCs for all objects which are in the same file
nameFile | name of the output file |
filename | name of the input file containing all objects |
void o2::tpc::IDCAverageGroup< o2::tpc::IDCAverageGroupCRU >::createDebugTreeForAllCRUs | ( | const char * | nameFile, |
const char * | filename | ||
) |
Definition at line 487 of file IDCAverageGroup.cxx.
void o2::tpc::IDCAverageGroup< Type >::drawGrouping | ( | const std::string | filename = "" | ) |
draw plot with information about the performed grouping
filename | name of the output file. If empty the name is chosen automatically |
Definition at line 145 of file IDCAverageGroup.cxx.
void o2::tpc::IDCAverageGroup< Type >::dumpToFile | ( | const char * | outFileName = "IDCAverageGroup< Type >.root" , |
const char * | outName = "IDCAverageGroup< Type >" |
||
) | const |
dump object to disc
outFileName | name of the output file |
outName | name of the object in the output file |
Definition at line 427 of file IDCAverageGroup.cxx.
|
inline |
Definition at line 105 of file IDCAverageGroup.h.
|
inline |
Definition at line 108 of file IDCAverageGroup.h.
|
inlinestatic |
get the number of threads used for some of the calculations
Definition at line 102 of file IDCAverageGroup.h.
void o2::tpc::IDCAverageGroup< o2::tpc::IDCAverageGroupCRU >::processIDCs | ( | const CalDet< PadFlags > * | padStatusFlags | ) |
Definition at line 110 of file IDCAverageGroup.cxx.
void o2::tpc::IDCAverageGroup< o2::tpc::IDCAverageGroupTPC >::processIDCs | ( | const CalDet< PadFlags > * | padStatusFlags | ) |
Definition at line 122 of file IDCAverageGroup.cxx.
void o2::tpc::IDCAverageGroup< Type >::processIDCs | ( | const CalDet< PadFlags > * | padStatusFlags = nullptr | ) |
grouping and averaging of IDCs
padStatusFlags | pointer to map containing status flags for each pad to skip dead pads etc. |
bool o2::tpc::IDCAverageGroup< Type >::setFromFile | ( | const char * | fileName = "IDCAverageGroup< Type >.root" , |
const char * | name = "IDCAverageGroup< Type >" |
||
) |
load ungrouped and grouped IDCs from File
fileName | name of the input file |
name | name of the object in the output file |
Definition at line 435 of file IDCAverageGroup.cxx.
|
inlinestatic |
set the number of threads used for some of the calculations
Definition at line 114 of file IDCAverageGroup.h.
|
inlinestatic |
sigma | sigma which is used during outlier filtering |
Definition at line 111 of file IDCAverageGroup.h.