39 edm::LogInfo(
"AlignPCLThresholdsReader") <<
"### AlignPCLThresholdsReader::analyze ###" << std::endl;
40 edm::LogInfo(
"AlignPCLThresholdsReader") <<
" I AM IN RUN NUMBER " <<
e.id().run() << std::endl;
41 edm::LogInfo(
"AlignPCLThresholdsReader") <<
" ---EVENT NUMBER " <<
e.id().event() << std::endl;
48 edm::LogInfo(
"AlignPCLThresholdsReader") <<
"Record \"AlignPCLThresholdsRcd"
49 <<
"\" does not exist " << std::endl;
54 edm::LogInfo(
"AlignPCLThresholdsReader") <<
"got eshandle" << std::endl;
57 edm::LogInfo(
"AlignPCLThresholdsReader") <<
"got context" << std::endl;
60 edm::LogInfo(
"AlignPCLThresholdsReader") <<
"got AlignPCLThresholds* " << std::endl;
61 edm::LogInfo(
"AlignPCLThresholdsReader") <<
"print pointer address : ";
65 edm::LogInfo(
"AlignPCLThresholdsReader") <<
"Content of myThresholds " << std::endl;
71 FILE* pFile =
nullptr;
75 fprintf(pFile,
"AlignPCLThresholds::printAll() \n");
77 " ======================================================================================================="
79 fprintf(pFile,
"N records cut: %i \n",
thresholds->getNrecords());
83 for (
auto it = m_thresholds.begin(); it != m_thresholds.end(); ++it) {
85 " ====================================================================================================="
87 fprintf(pFile,
"key : %s \n ", (it->first).c_str());
88 fprintf(pFile,
"- Xcut : %8.3f um ", (it->second).getXcut());
89 fprintf(pFile,
"| sigXcut : %8.3f ", (it->second).getSigXcut());
90 fprintf(pFile,
"| maxMoveXcut : %8.3f um ", (it->second).getMaxMoveXcut());
91 fprintf(pFile,
"| ErrorXcut : %8.3f um\n ", (it->second).getErrorXcut());
93 fprintf(pFile,
"- thetaXcut : %8.3f urad ", (it->second).getThetaXcut());
94 fprintf(pFile,
"| sigThetaXcut : %8.3f ", (it->second).getSigThetaXcut());
95 fprintf(pFile,
"| maxMoveThetaXcut : %8.3f urad ", (it->second).getMaxMoveThetaXcut());
96 fprintf(pFile,
"| ErrorThetaXcut : %8.3f urad\n ", (it->second).getErrorThetaXcut());
98 fprintf(pFile,
"- Ycut : %8.3f um ", (it->second).getYcut());
99 fprintf(pFile,
"| sigYcut : %8.3f ", (it->second).getSigXcut());
100 fprintf(pFile,
"| maxMoveYcut : %8.3f um ", (it->second).getMaxMoveYcut());
101 fprintf(pFile,
"| ErrorYcut : %8.3f um\n ", (it->second).getErrorYcut());
103 fprintf(pFile,
"- thetaYcut : %8.3f urad ", (it->second).getThetaYcut());
104 fprintf(pFile,
"| sigThetaYcut : %8.3f ", (it->second).getSigThetaYcut());
105 fprintf(pFile,
"| maxMoveThetaYcut : %8.3f urad ", (it->second).getMaxMoveThetaYcut());
106 fprintf(pFile,
"| ErrorThetaYcut : %8.3f urad\n ", (it->second).getErrorThetaYcut());
108 fprintf(pFile,
"- Zcut : %8.3f um ", (it->second).getZcut());
109 fprintf(pFile,
"| sigZcut : %8.3f ", (it->second).getSigZcut());
110 fprintf(pFile,
"| maxMoveZcut : %8.3f um ", (it->second).getMaxMoveZcut());
111 fprintf(pFile,
"| ErrorZcut : %8.3f um\n ", (it->second).getErrorZcut());
113 fprintf(pFile,
"- thetaZcut : %8.3f urad ", (it->second).getThetaZcut());
114 fprintf(pFile,
"| sigThetaZcut : %8.3f ", (it->second).getSigThetaZcut());
115 fprintf(pFile,
"| maxMoveThetaZcut : %8.3f urad ", (it->second).getMaxMoveThetaZcut());
116 fprintf(pFile,
"| ErrorThetaZcut : %8.3f urad\n ", (it->second).getErrorThetaZcut());
118 if ((it->second).hasExtraDOF()) {
119 for (
unsigned int j = 0;
j < (it->second).extraDOFSize();
j++) {
120 std::array<float, 4> extraDOFCuts =
thresholds->getExtraDOFCutsForAlignable(it->first,
j);
122 "Extra DOF: %i with label %s \n ",
124 thresholds->getExtraDOFLabelForAlignable(it->first,
j).c_str());
125 fprintf(pFile,
"- cut : %8.3f ", extraDOFCuts.at(0));
126 fprintf(pFile,
"| sigCut : %8.3f ", extraDOFCuts.at(1));
127 fprintf(pFile,
"| maxMoveCut : %8.3f ", extraDOFCuts.at(2));
128 fprintf(pFile,
"| maxErrorCut : %8.3f \n ", extraDOFCuts.at(3));