13 throw std::out_of_range(
"Parameter with index " +
std::to_string(
index) +
" is out of range.");
20 throw std::out_of_range(
"Parameter with index " +
std::to_string(
index) +
" is out of range.");
38 throw cms::Exception(
"AlignPCLThresholdsHG") <<
"No float vector defined for Alignable id " << AlignableId <<
"\n";
64 <<
"Requested setting fraction threshold for undefined coordinate" <<
type <<
"\n";
70 const std::vector<float> vec =
getFloatVec(AlignableId);
81 const std::vector<float> vec =
getFloatVec(AlignableId);
97 <<
"Requested fraction threshold for undefined coordinate" <<
type <<
"\n";
114 <<
"Payload version with parameter size equal to " <<
FSIZE +
ISIZE +
SSIZE <<
" is not defined.\n";
122 out <<
"AlignPCLThresholdsHG::printAll()\n";
123 out <<
"=============================================================================================================" 127 out <<
"===========================================================================================================" 130 std::stringstream
ss;
132 ss <<
"key : " <<
it->first <<
" \n" 133 <<
"- Xcut : " << std::setw(4) << (
it->second).getXcut() << std::setw(5) <<
" um" 134 <<
"| sigXcut : " << std::setw(4) << (
it->second).getSigXcut() << std::setw(1) <<
" " 135 <<
"| maxMoveXcut : " << std::setw(4) << (
it->second).getMaxMoveXcut() << std::setw(5) <<
" um" 136 <<
"| ErrorXcut : " << std::setw(4) << (
it->second).getErrorXcut() << std::setw(5) <<
" um";
139 ss <<
"| X_fractionCut : " << std::setw(4) <<
getFractionCut(
it->first,
X) << std::setw(5) <<
"\n";
144 ss <<
"- thetaXcut : " << std::setw(4) << (
it->second).getThetaXcut() << std::setw(5) <<
" urad" 145 <<
"| sigThetaXcut : " << std::setw(4) << (
it->second).getSigThetaXcut() << std::setw(1) <<
" " 146 <<
"| maxMoveThetaXcut : " << std::setw(4) << (
it->second).getMaxMoveThetaXcut() << std::setw(5) <<
" urad" 147 <<
"| ErrorThetaXcut : " << std::setw(4) << (
it->second).getErrorThetaXcut() << std::setw(5) <<
" urad";
155 ss <<
"- Ycut : " << std::setw(4) << (
it->second).getYcut() << std::setw(5) <<
" um" 156 <<
"| sigYcut : " << std::setw(4) << (
it->second).getSigXcut() << std::setw(1) <<
" " 157 <<
"| maxMoveYcut : " << std::setw(4) << (
it->second).getMaxMoveYcut() << std::setw(5) <<
" um" 158 <<
"| ErrorYcut : " << std::setw(4) << (
it->second).getErrorYcut() << std::setw(5) <<
" um";
161 ss <<
"| Y_fractionCut : " << std::setw(4) <<
getFractionCut(
it->first,
Y) << std::setw(5) <<
"\n";
166 ss <<
"- thetaYcut : " << std::setw(4) << (
it->second).getThetaYcut() << std::setw(5) <<
" urad" 167 <<
"| sigThetaYcut : " << std::setw(4) << (
it->second).getSigThetaYcut() << std::setw(1) <<
" " 168 <<
"| maxMoveThetaYcut : " << std::setw(4) << (
it->second).getMaxMoveThetaYcut() << std::setw(5) <<
" urad" 169 <<
"| ErrorThetaYcut : " << std::setw(4) << (
it->second).getErrorThetaYcut() << std::setw(5) <<
" urad";
177 ss <<
"- Zcut : " << std::setw(4) << (
it->second).getZcut() << std::setw(5) <<
" um" 178 <<
"| sigZcut : " << std::setw(4) << (
it->second).getSigZcut() << std::setw(1) <<
" " 179 <<
"| maxMoveZcut : " << std::setw(4) << (
it->second).getMaxMoveZcut() << std::setw(5) <<
" um" 180 <<
"| ErrorZcut : " << std::setw(4) << (
it->second).getErrorZcut() << std::setw(5) <<
" um";
183 ss <<
"| Z_fractionCut : " << std::setw(4) <<
getFractionCut(
it->first,
Z) << std::setw(5) <<
"\n";
188 ss <<
"- thetaZcut : " << std::setw(4) << (
it->second).getThetaZcut() << std::setw(5) <<
" urad" 189 <<
"| sigThetaZcut : " << std::setw(4) << (
it->second).getSigThetaZcut() << std::setw(1) <<
" " 190 <<
"| maxMoveThetaZcut : " << std::setw(4) << (
it->second).getMaxMoveThetaZcut() << std::setw(5) <<
" urad" 191 <<
"| ErrorThetaZcut : " << std::setw(4) << (
it->second).getErrorThetaZcut() << std::setw(5) <<
" urad";
199 out <<
ss.str() << std::endl;
201 if ((
it->second).hasExtraDOF()) {
202 for (
unsigned int j = 0;
j < (
it->second).extraDOFSize();
j++) {
206 out <<
"- cut : " << std::setw(4) << extraDOFCuts.at(0) << std::setw(5) <<
" " 207 <<
"| sigCut : " << std::setw(4) << extraDOFCuts.at(1) << std::setw(1) <<
" " 208 <<
"| maxMoveCut : " << std::setw(4) << extraDOFCuts.at(2) << std::setw(5) <<
" " 209 <<
"| maxErrorCut : " << std::setw(4) << extraDOFCuts.at(3) << std::setw(5) <<
" ";
void setFloatMap(const param_map &floatMap)
std::string getExtraDOFLabelForAlignable(const std::string &AlignableId, const unsigned int i) const
static std::string to_string(const XMLCh *ch)
void setParam(std::vector< T > ¶ms, size_t index, const T &value)
const std::vector< float > & getFloatVec(const std::string &AlignableId) const
const int & getNrecords() const
std::array< float, 4 > getExtraDOFCutsForAlignable(const std::string &AlignableId, const unsigned int i) const
const bool hasFloatMap(const std::string &AlignableId) const
const T & getParam(const std::vector< T > ¶ms, size_t index)
const int payloadVersion() const
threshold_map m_thresholds
float getFractionCut(const std::string &AlignableId, const coordType &type) const
void setFractionCut(const std::string &AlignableId, const coordType &type, const float &cut)