#include <AlignPCLThresholdsHG.h>
Public Types | |
enum | FloatParamIndex { FRACTION_CUT_X = 0, FRACTION_CUT_Y = 1, FRACTION_CUT_Z = 2, FRACTION_CUT_TX = 3, FRACTION_CUT_TY = 4, FRACTION_CUT_TZ = 5, FSIZE = 6 } |
enum | IntParamIndex { ISIZE = 0 } |
typedef std::unordered_map< std::string, std::vector< float > > | param_map |
enum | StringParamIndex { SSIZE = 0 } |
Public Types inherited from AlignPCLThresholds | |
enum | coordType { X, Y, Z, theta_X, theta_Y, theta_Z, extra_DOF, endOfTypes } |
typedef std::map< std::string, AlignPCLThreshold > | threshold_map |
Public Member Functions | |
AlignPCLThresholdsHG () | |
const param_map & | getFloatMap () const |
const std::vector< float > & | getFloatVec (const std::string &AlignableId) const |
float | getFractionCut (const std::string &AlignableId, const coordType &type) const |
std::array< float, 6 > | getFractionCut (const std::string &AlignableId) const |
const bool | hasFloatMap (const std::string &AlignableId) const |
const int | payloadVersion () const |
void | printAll () const |
void | setFloatMap (const param_map &floatMap) |
void | setFractionCut (const std::string &AlignableId, const coordType &type, const float &cut) |
~AlignPCLThresholdsHG () override=default | |
Public Member Functions inherited from AlignPCLThresholds | |
AlignPCLThresholds () | |
std::vector< std::string > | getAlignableList () const |
AlignPCLThreshold | getAlignPCLThreshold (const std::string &AlignableId) const |
AlignPCLThreshold & | getAlignPCLThreshold (const std::string &AlignableId) |
float | getCut (const std::string &AlignableId, const coordType &type) const |
std::array< float, 6 > | getCut (const std::string &AlignableId) const |
std::array< float, 4 > | getExtraDOFCutsForAlignable (const std::string &AlignableId, const unsigned int i) const |
std::string | getExtraDOFLabelForAlignable (const std::string &AlignableId, const unsigned int i) const |
float | getMaxErrorCut (const std::string &AlignableId, const coordType &type) const |
std::array< float, 6 > | getMaxErrorCut (const std::string &AlignableId) const |
float | getMaxMoveCut (const std::string &AlignableId, const coordType &type) const |
std::array< float, 6 > | getMaxMoveCut (const std::string &AlignableId) const |
const int & | getNrecords () const |
float | getSigCut (const std::string &AlignableId, const coordType &type) const |
std::array< float, 6 > | getSigCut (const std::string &AlignableId) const |
const threshold_map & | getThreshold_Map () const |
void | printAll () const |
void | setAlignPCLThreshold (const std::string &AlignableId, const AlignPCLThreshold &Threshold) |
void | setAlignPCLThresholds (const int &Nrecords, const threshold_map &Thresholds) |
void | setNRecords (const int &Nrecords) |
double | size () const |
virtual | ~AlignPCLThresholds () |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
param_map | floatMap_ |
std::unordered_map< std::string, std::vector< int > > | intMap_ |
std::unordered_map< std::string, std::vector< std::string > > | stringMap_ |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
Additional Inherited Members | |
Protected Attributes inherited from AlignPCLThresholds | |
int | m_nrecords |
threshold_map | m_thresholds |
Definition at line 11 of file AlignPCLThresholdsHG.h.
typedef std::unordered_map<std::string, std::vector<float> > AlignPCLThresholdsHG::param_map |
Definition at line 13 of file AlignPCLThresholdsHG.h.
Enumerator | |
---|---|
FRACTION_CUT_X | |
FRACTION_CUT_Y | |
FRACTION_CUT_Z | |
FRACTION_CUT_TX | |
FRACTION_CUT_TY | |
FRACTION_CUT_TZ | |
FSIZE |
Definition at line 16 of file AlignPCLThresholdsHG.h.
|
inline |
Definition at line 14 of file AlignPCLThresholdsHG.h.
|
overridedefault |
|
inline |
const std::vector< float > & AlignPCLThresholdsHG::getFloatVec | ( | const std::string & | AlignableId | ) | const |
Definition at line 32 of file AlignPCLThresholdsHG.cc.
References Exception, floatMap_, and ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it.
Referenced by getFractionCut().
float AlignPCLThresholdsHG::getFractionCut | ( | const std::string & | AlignableId, |
const coordType & | type | ||
) | const |
Definition at line 80 of file AlignPCLThresholdsHG.cc.
References Exception, FRACTION_CUT_TX, FRACTION_CUT_TY, FRACTION_CUT_TZ, FRACTION_CUT_X, FRACTION_CUT_Y, FRACTION_CUT_Z, getFloatVec(), AlignPCLThresholdsHGImpl::getParam(), AlignPCLThresholds::theta_X, AlignPCLThresholds::theta_Y, AlignPCLThresholds::theta_Z, AlignPCLThresholds::X, AlignPCLThresholds::Y, and AlignPCLThresholds::Z.
Referenced by printAll().
std::array< float, 6 > AlignPCLThresholdsHG::getFractionCut | ( | const std::string & | AlignableId | ) | const |
Definition at line 69 of file AlignPCLThresholdsHG.cc.
References FRACTION_CUT_TX, FRACTION_CUT_TY, FRACTION_CUT_TZ, FRACTION_CUT_X, FRACTION_CUT_Y, FRACTION_CUT_Z, getFloatVec(), and AlignPCLThresholdsHGImpl::getParam().
const bool AlignPCLThresholdsHG::hasFloatMap | ( | const std::string & | AlignableId | ) | const |
Definition at line 102 of file AlignPCLThresholdsHG.cc.
References floatMap_, and ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it.
const int AlignPCLThresholdsHG::payloadVersion | ( | ) | const |
Definition at line 108 of file AlignPCLThresholdsHG.cc.
References Exception, FSIZE, ISIZE, and SSIZE.
void AlignPCLThresholdsHG::printAll | ( | ) | const |
Definition at line 120 of file AlignPCLThresholdsHG.cc.
References floatMap_, AlignPCLThresholds::getExtraDOFCutsForAlignable(), AlignPCLThresholds::getExtraDOFLabelForAlignable(), getFractionCut(), AlignPCLThresholds::getNrecords(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, dqmiolumiharvest::j, AlignPCLThresholds::m_thresholds, MillePedeFileConverter_cfg::out, contentValuesCheck::ss, AlignPCLThresholds::theta_X, AlignPCLThresholds::theta_Y, AlignPCLThresholds::theta_Z, AlignPCLThresholds::X, AlignPCLThresholds::Y, and AlignPCLThresholds::Z.
|
private |
void AlignPCLThresholdsHG::setFloatMap | ( | const param_map & | floatMap | ) |
void AlignPCLThresholdsHG::setFractionCut | ( | const std::string & | AlignableId, |
const coordType & | type, | ||
const float & | cut | ||
) |
Definition at line 43 of file AlignPCLThresholdsHG.cc.
References DMR_cfg::cut, Exception, floatMap_, FRACTION_CUT_TX, FRACTION_CUT_TY, FRACTION_CUT_TZ, FRACTION_CUT_X, FRACTION_CUT_Y, FRACTION_CUT_Z, FSIZE, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, AlignPCLThresholdsHGImpl::setParam(), AlignPCLThresholds::theta_X, AlignPCLThresholds::theta_Y, AlignPCLThresholds::theta_Z, AlignPCLThresholds::X, AlignPCLThresholds::Y, and AlignPCLThresholds::Z.
Referenced by AlignPCLThresholdsWriter< T >::storeHGthresholds().
|
friend |
Definition at line 52 of file AlignPCLThresholdsHG.h.
|
friend |
Definition at line 52 of file AlignPCLThresholdsHG.h.
|
private |
Definition at line 47 of file AlignPCLThresholdsHG.h.
Referenced by getFloatMap(), getFloatVec(), hasFloatMap(), printAll(), setFloatMap(), and setFractionCut().
|
private |
Definition at line 49 of file AlignPCLThresholdsHG.h.
|
private |
Definition at line 50 of file AlignPCLThresholdsHG.h.