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.");
28 const auto &it =
floatMap_.find(AlignableId);
33 throw cms::Exception(
"AlignPCLThresholdsHG") <<
"No float vector defined for Alignable id " << AlignableId <<
"\n";
40 const auto &it =
floatMap_.find(AlignableId);
59 <<
"Requested setting fraction threshold for undefined coordinate" <<
type <<
"\n";
65 const std::vector<float> vec =
getFloatVec(AlignableId);
76 const std::vector<float> vec =
getFloatVec(AlignableId);
92 <<
"Requested fraction threshold for undefined coordinate" <<
type <<
"\n";
103 <<
"Payload version with parameter size equal to " <<
FSIZE +
ISIZE +
SSIZE <<
" is not defined.\n";
111 out <<
"AlignPCLThresholdsHG::printAll()\n";
112 out <<
"=============================================================================================================" 116 out <<
"===========================================================================================================" 119 std::stringstream
ss;
121 ss <<
"key : " << it->first <<
" \n" 122 <<
"- Xcut : " << std::setw(4) << (it->second).getXcut() << std::setw(5) <<
" um" 123 <<
"| sigXcut : " << std::setw(4) << (it->second).getSigXcut() << std::setw(1) <<
" " 124 <<
"| maxMoveXcut : " << std::setw(4) << (it->second).getMaxMoveXcut() << std::setw(5) <<
" um" 125 <<
"| ErrorXcut : " << std::setw(4) << (it->second).getErrorXcut() << std::setw(5) <<
" um";
128 ss <<
"| X_fractionCut : " << std::setw(4) <<
getFractionCut(it->first,
X) << std::setw(5) <<
"\n";
133 ss <<
"- thetaXcut : " << std::setw(4) << (it->second).getThetaXcut() << std::setw(5) <<
" urad" 134 <<
"| sigThetaXcut : " << std::setw(4) << (it->second).getSigThetaXcut() << std::setw(1) <<
" " 135 <<
"| maxMoveThetaXcut : " << std::setw(4) << (it->second).getMaxMoveThetaXcut() << std::setw(5) <<
" urad" 136 <<
"| ErrorThetaXcut : " << std::setw(4) << (it->second).getErrorThetaXcut() << std::setw(5) <<
" urad";
144 ss <<
"- Ycut : " << std::setw(4) << (it->second).getYcut() << std::setw(5) <<
" um" 145 <<
"| sigYcut : " << std::setw(4) << (it->second).getSigXcut() << std::setw(1) <<
" " 146 <<
"| maxMoveYcut : " << std::setw(4) << (it->second).getMaxMoveYcut() << std::setw(5) <<
" um" 147 <<
"| ErrorYcut : " << std::setw(4) << (it->second).getErrorYcut() << std::setw(5) <<
" um";
150 ss <<
"| Y_fractionCut : " << std::setw(4) <<
getFractionCut(it->first,
Y) << std::setw(5) <<
"\n";
155 ss <<
"- thetaYcut : " << std::setw(4) << (it->second).getThetaYcut() << std::setw(5) <<
" urad" 156 <<
"| sigThetaYcut : " << std::setw(4) << (it->second).getSigThetaYcut() << std::setw(1) <<
" " 157 <<
"| maxMoveThetaYcut : " << std::setw(4) << (it->second).getMaxMoveThetaYcut() << std::setw(5) <<
" urad" 158 <<
"| ErrorThetaYcut : " << std::setw(4) << (it->second).getErrorThetaYcut() << std::setw(5) <<
" urad";
166 ss <<
"- Zcut : " << std::setw(4) << (it->second).getZcut() << std::setw(5) <<
" um" 167 <<
"| sigZcut : " << std::setw(4) << (it->second).getSigZcut() << std::setw(1) <<
" " 168 <<
"| maxMoveZcut : " << std::setw(4) << (it->second).getMaxMoveZcut() << std::setw(5) <<
" um" 169 <<
"| ErrorZcut : " << std::setw(4) << (it->second).getErrorZcut() << std::setw(5) <<
" um";
172 ss <<
"| Z_fractionCut : " << std::setw(4) <<
getFractionCut(it->first,
Z) << std::setw(5) <<
"\n";
177 ss <<
"- thetaZcut : " << std::setw(4) << (it->second).getThetaZcut() << std::setw(5) <<
" urad" 178 <<
"| sigThetaZcut : " << std::setw(4) << (it->second).getSigThetaZcut() << std::setw(1) <<
" " 179 <<
"| maxMoveThetaZcut : " << std::setw(4) << (it->second).getMaxMoveThetaZcut() << std::setw(5) <<
" urad" 180 <<
"| ErrorThetaZcut : " << std::setw(4) << (it->second).getErrorThetaZcut() << std::setw(5) <<
" urad";
188 out <<
ss.str() << std::endl;
190 if ((it->second).hasExtraDOF()) {
191 for (
unsigned int j = 0;
j < (it->second).extraDOFSize();
j++) {
195 out <<
"- cut : " << std::setw(4) << extraDOFCuts.at(0) << std::setw(5) <<
" " 196 <<
"| sigCut : " << std::setw(4) << extraDOFCuts.at(1) << std::setw(1) <<
" " 197 <<
"| maxMoveCut : " << std::setw(4) << extraDOFCuts.at(2) << std::setw(5) <<
" " 198 <<
"| maxErrorCut : " << std::setw(4) << extraDOFCuts.at(3) << std::setw(5) <<
" ";
std::string getExtraDOFLabelForAlignable(const std::string &AlignableId, const unsigned int i) const
std::string to_string(const V &value)
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 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)