26 threshold_map::const_iterator it =
m_thresholds.find(AlignableId);
31 throw cms::Exception(
"AlignPCLThresholds")<<
"No Thresholds defined for Alignable id " << AlignableId <<
"\n";
56 throw cms::Exception(
"AlignPCLThresholds")<<
"Requested significance threshold for undefined coordinate"<< type <<
"\n";
84 throw cms::Exception(
"AlignPCLThresholds")<<
"Requested significance threshold for undefined coordinate"<< type <<
"\n";
113 throw cms::Exception(
"AlignPCLThresholds")<<
"Requested significance threshold for undefined coordinate"<< type <<
"\n";
142 throw cms::Exception(
"AlignPCLThresholds")<<
"Requested significance threshold for undefined coordinate"<< type <<
"\n";
171 edm::LogVerbatim(
"AlignPCLThresholds")<<
" ===================================================================================================================";
174 edm::LogVerbatim(
"AlignPCLThresholds")<<
" ===================================================================================================================";
176 <<
"- Xcut : " <<std::setw(4)<< (it->second).getXcut() <<std::setw(5)<<
" um" 177 <<
"| sigXcut : " <<std::setw(4)<< (it->second).getSigXcut() <<std::setw(1)<<
" " 178 <<
"| maxMoveXcut : " <<std::setw(4)<< (it->second).getMaxMoveXcut() <<std::setw(5)<<
" um" 179 <<
"| ErrorXcut : " <<std::setw(4)<< (it->second).getErrorXcut() <<std::setw(5)<<
" um\n" 181 <<
"- thetaXcut : " <<std::setw(4)<< (it->second).getThetaXcut() <<std::setw(5)<<
" urad" 182 <<
"| sigThetaXcut : " <<std::setw(4)<< (it->second).getSigThetaXcut() <<std::setw(1)<<
" " 183 <<
"| maxMoveThetaXcut : " <<std::setw(4)<< (it->second).getMaxMoveThetaXcut()<<std::setw(5)<<
" urad" 184 <<
"| ErrorThetaXcut : " <<std::setw(4)<< (it->second).getErrorThetaXcut() <<std::setw(5)<<
" urad\n" 186 <<
"- Ycut : " <<std::setw(4)<< (it->second).getYcut() <<std::setw(5)<<
" um" 187 <<
"| sigYcut : " <<std::setw(4)<< (it->second).getSigXcut() <<std::setw(1)<<
" " 188 <<
"| maxMoveYcut : " <<std::setw(4)<< (it->second).getMaxMoveYcut() <<std::setw(5)<<
" um" 189 <<
"| ErrorYcut : " <<std::setw(4)<< (it->second).getErrorYcut() <<std::setw(5)<<
" um\n" 191 <<
"- thetaYcut : " <<std::setw(4)<< (it->second).getThetaYcut() <<std::setw(5)<<
" urad" 192 <<
"| sigThetaYcut : " <<std::setw(4)<< (it->second).getSigThetaYcut() <<std::setw(1)<<
" " 193 <<
"| maxMoveThetaYcut : " <<std::setw(4)<< (it->second).getMaxMoveThetaYcut()<<std::setw(5)<<
" urad" 194 <<
"| ErrorThetaYcut : " <<std::setw(4)<< (it->second).getErrorThetaYcut() <<std::setw(5)<<
" urad\n" 196 <<
"- Zcut : " <<std::setw(4)<< (it->second).getZcut() <<std::setw(5)<<
" um" 197 <<
"| sigZcut : " <<std::setw(4)<< (it->second).getSigZcut() <<std::setw(1)<<
" " 198 <<
"| maxMoveZcut : " <<std::setw(4)<< (it->second).getMaxMoveZcut() <<std::setw(5)<<
" um" 199 <<
"| ErrorZcut : " <<std::setw(4)<< (it->second).getErrorZcut() <<std::setw(5)<<
" um\n" 201 <<
"- thetaZcut : " <<std::setw(4)<< (it->second).getThetaZcut() <<std::setw(5)<<
" urad" 202 <<
"| sigThetaZcut : " <<std::setw(4)<< (it->second).getSigThetaZcut() <<std::setw(1)<<
" " 203 <<
"| maxMoveThetaZcut : " <<std::setw(4)<< (it->second).getMaxMoveThetaZcut()<<std::setw(5)<<
" urad" 204 <<
"| ErrorThetaZcut : " <<std::setw(4)<< (it->second).getErrorThetaZcut() <<std::setw(5)<<
" urad";
206 if((it->second).hasExtraDOF()){
207 for (
unsigned int j=0; j<(it->second).extraDOFSize(); j++){
211 edm::LogVerbatim(
"AlignPCLThresholds") <<
"- cut : " << std::setw(4) << extraDOFCuts.at(0) << std::setw(5)<<
" " 212 <<
"| sigCut : " << std::setw(4) << extraDOFCuts.at(1) << std::setw(1)<<
" " 213 <<
"| maxMoveCut : " << std::setw(4) << extraDOFCuts.at(2) << std::setw(5)<<
" " 214 <<
"| maxErrorCut : " << std::setw(4) << extraDOFCuts.at(3) << std::setw(5)<<
" ";
222 std::vector<std::string> alignables_;
226 alignables_.push_back(it->first);
float getSigCut(const std::string &AlignableId, const coordType &type) const
float getErrorThetaZcut() const
void setAlignPCLThreshold(const std::string &AlignableId, const AlignPCLThreshold &Threshold)
float getMaxMoveThetaXcut() const
float getMaxMoveZcut() const
float getMaxMoveThetaZcut() const
std::array< float, 4 > getExtraDOFCuts(const unsigned int i) const
float getSigThetaXcut() const
AlignPCLThreshold getAlignPCLThreshold(const std::string &AlignableId) const
std::vector< std::string > getAlignableList() const
float getMaxMoveYcut() const
float getErrorYcut() const
std::string getExtraDOFLabelForAlignable(const std::string &AlignableId, const unsigned int i) const
float getSigThetaYcut() const
float getCut(const std::string &AlignableId, const coordType &type) const
float getThetaXcut() const
float getMaxMoveCut(const std::string &AlignableId, const coordType &type) const
float getMaxErrorCut(const std::string &AlignableId, const coordType &type) const
std::array< float, 4 > getExtraDOFCutsForAlignable(const std::string &AlignableId, const unsigned int i) const
float getThetaZcut() const
float getErrorZcut() const
void setNRecords(const int &Nrecords)
threshold_map m_thresholds
void setAlignPCLThresholds(const int &Nrecords, const threshold_map &Thresholds)
std::map< std::string, AlignPCLThreshold > threshold_map
const int & getNrecords() const
float getErrorThetaYcut() const
float getMaxMoveThetaYcut() const
float getErrorXcut() const
float getMaxMoveXcut() const
float getErrorThetaXcut() const
float getThetaYcut() const
std::string getExtraDOFLabel(const unsigned int i) const
float getSigThetaZcut() const