1 #ifndef ALIGNMENT_MILLEPEDEALIGNMENTALGORITHM_INTERFACE_MILLEPEDEFILEREADER_H_ 2 #define ALIGNMENT_MILLEPEDEALIGNMENTALGORITHM_INTERFACE_MILLEPEDEFILEREADER_H_ 29 bool isDBUpdateVetoed,
62 const std::shared_ptr<const PedeLabelerBase>&,
63 const std::shared_ptr<const AlignPCLThresholdsHG>&,
64 const std::shared_ptr<const PixelTopologyMap>&);
73 const std::array<double, SIZE_LG_STRUCTS>&
getXobs()
const {
return Xobs_; }
75 const std::array<double, SIZE_LG_STRUCTS>&
getTXobs()
const {
return tXobs_; }
78 const std::array<double, SIZE_LG_STRUCTS>&
getYobs()
const {
return Yobs_; }
80 const std::array<double, SIZE_LG_STRUCTS>&
getTYobs()
const {
return tYobs_; }
83 const std::array<double, SIZE_LG_STRUCTS>&
getZobs()
const {
return Zobs_; }
85 const std::array<double, SIZE_LG_STRUCTS>&
getTZobs()
const {
return tZobs_; }
197 std::array<double, SIZE_LG_STRUCTS>
Xobs_ = std::array<double, SIZE_LG_STRUCTS>();
198 std::array<double, SIZE_LG_STRUCTS>
XobsErr_ = std::array<double, SIZE_LG_STRUCTS>();
199 std::array<double, SIZE_LG_STRUCTS>
tXobs_ = std::array<double, SIZE_LG_STRUCTS>();
200 std::array<double, SIZE_LG_STRUCTS>
tXobsErr_ = std::array<double, SIZE_LG_STRUCTS>();
202 std::array<double, SIZE_LG_STRUCTS>
Yobs_ = std::array<double, SIZE_LG_STRUCTS>();
203 std::array<double, SIZE_LG_STRUCTS>
YobsErr_ = std::array<double, SIZE_LG_STRUCTS>();
204 std::array<double, SIZE_LG_STRUCTS>
tYobs_ = std::array<double, SIZE_LG_STRUCTS>();
205 std::array<double, SIZE_LG_STRUCTS>
tYobsErr_ = std::array<double, SIZE_LG_STRUCTS>();
207 std::array<double, SIZE_LG_STRUCTS>
Zobs_ = std::array<double, SIZE_LG_STRUCTS>();
208 std::array<double, SIZE_LG_STRUCTS>
ZobsErr_ = std::array<double, SIZE_LG_STRUCTS>();
209 std::array<double, SIZE_LG_STRUCTS>
tZobs_ = std::array<double, SIZE_LG_STRUCTS>();
210 std::array<double, SIZE_LG_STRUCTS>
tZobsErr_ = std::array<double, SIZE_LG_STRUCTS>();
212 std::array<double, SIZE_HG_STRUCTS>
Xobs_HG_ = std::array<double, SIZE_HG_STRUCTS>();
213 std::array<double, SIZE_HG_STRUCTS>
XobsErr_HG_ = std::array<double, SIZE_HG_STRUCTS>();
214 std::array<double, SIZE_HG_STRUCTS>
tXobs_HG_ = std::array<double, SIZE_HG_STRUCTS>();
215 std::array<double, SIZE_HG_STRUCTS>
tXobsErr_HG_ = std::array<double, SIZE_HG_STRUCTS>();
217 std::array<double, SIZE_HG_STRUCTS>
Yobs_HG_ = std::array<double, SIZE_HG_STRUCTS>();
218 std::array<double, SIZE_HG_STRUCTS>
YobsErr_HG_ = std::array<double, SIZE_HG_STRUCTS>();
219 std::array<double, SIZE_HG_STRUCTS>
tYobs_HG_ = std::array<double, SIZE_HG_STRUCTS>();
220 std::array<double, SIZE_HG_STRUCTS>
tYobsErr_HG_ = std::array<double, SIZE_HG_STRUCTS>();
222 std::array<double, SIZE_HG_STRUCTS>
Zobs_HG_ = std::array<double, SIZE_HG_STRUCTS>();
223 std::array<double, SIZE_HG_STRUCTS>
ZobsErr_HG_ = std::array<double, SIZE_HG_STRUCTS>();
224 std::array<double, SIZE_HG_STRUCTS>
tZobs_HG_ = std::array<double, SIZE_HG_STRUCTS>();
225 std::array<double, SIZE_HG_STRUCTS>
tZobsErr_HG_ = std::array<double, SIZE_HG_STRUCTS>();
230 const std::array<std::string, 8>
coord_str = {{
"X",
"Y",
"Z",
"theta_X",
"theta_Y",
"theta_Z",
"extra_DOF",
"none"}};
233 return os <<
"unrecongnized coordinate";
std::array< double, SIZE_LG_STRUCTS > Zobs_
const std::array< double, SIZE_LG_STRUCTS > & getTZobsErr() const
mpPCLresults(bool isDBUpdated, bool isDBUpdateVetoed, int nRecords, int exitCode, std::string exitMessage, std::bitset< 4 > updateBits)
MillePedeFileReader(const edm::ParameterSet &, const std::shared_ptr< const PedeLabelerBase > &, const std::shared_ptr< const AlignPCLThresholdsHG > &, const std::shared_ptr< const PixelTopologyMap > &)
const std::array< double, SIZE_LG_STRUCTS > & getZobs() const
std::array< double, SIZE_HG_STRUCTS > tXobs_HG_
std::array< double, SIZE_LG_STRUCTS > tYobs_
std::array< double, SIZE_LG_STRUCTS > tZobsErr_
std::map< std::string, AlignPCLThreshold > threshold_map
std::array< double, SIZE_LG_STRUCTS > Yobs_
std::ostream & operator<<(std::ostream &os, const AlignPCLThresholdsHG::coordType &c)
const std::shared_ptr< const AlignPCLThresholdsHG > theThresholds_
std::array< double, SIZE_HG_STRUCTS > XobsErr_HG_
std::bitset< 4 > updateBits_
std::array< double, SIZE_LG_STRUCTS > YobsErr_
std::array< double, SIZE_HG_STRUCTS > YobsErr_HG_
const std::array< double, SIZE_HG_STRUCTS > & getTXobs_HG() const
const std::array< double, SIZE_HG_STRUCTS > & getXobs_HG() const
const std::shared_ptr< const PixelTopologyMap > pixelTopologyMap_
const std::array< double, SIZE_HG_STRUCTS > & getTYobsErr_HG() const
const std::array< double, SIZE_HG_STRUCTS > & getZobsErr_HG() const
const std::array< double, SIZE_HG_STRUCTS > & getZobs_HG() const
const std::array< double, SIZE_LG_STRUCTS > & getXobs() const
const std::array< double, SIZE_HG_STRUCTS > & getXobsErr_HG() const
PclHLS getHLS(const Alignable *)
const int binariesAmount() const
virtual ~MillePedeFileReader()=default
const std::array< double, SIZE_HG_STRUCTS > & getTXobsErr_HG() const
void readMillePedeLogFile()
std::array< double, SIZE_HG_STRUCTS > Zobs_HG_
std::array< double, SIZE_LG_STRUCTS > Xobs_
static constexpr std::array< double, 6 > multiplier_
std::array< double, SIZE_HG_STRUCTS > Xobs_HG_
const std::array< double, SIZE_LG_STRUCTS > & getYobsErr() const
std::array< double, SIZE_HG_STRUCTS > tYobs_HG_
const std::string millePedeLogFile_
const std::array< double, SIZE_HG_STRUCTS > & getYobsErr_HG() const
const std::array< double, SIZE_LG_STRUCTS > & getTXobsErr() const
const std::map< std::string, std::array< bool, 6 > > & getResultsHG() const
const std::array< double, SIZE_LG_STRUCTS > & getTYobs() const
const std::array< double, SIZE_HG_STRUCTS > & getTYobs_HG() const
const mpPCLresults getResults() const
const bool belowSignificance()
const std::array< double, SIZE_LG_STRUCTS > & getXobsErr() const
std::array< double, SIZE_LG_STRUCTS > tXobs_
void initializeIndexHelper()
void readMillePedeResultFile()
const std::array< double, SIZE_HG_STRUCTS > & getTZobs_HG() const
std::array< double, SIZE_LG_STRUCTS > tYobsErr_
std::array< double, SIZE_HG_STRUCTS > ZobsErr_HG_
const bool exceedsCutoffs()
std::array< double, SIZE_HG_STRUCTS > tZobs_HG_
const std::string getExitMessage()
const std::array< double, SIZE_LG_STRUCTS > & getYobs() const
const AlignPCLThresholdsHG::threshold_map getThresholdMap() const
std::bitset< 4 > m_updateBits
std::string getStringFromHLS(PclHLS HLS)
Log< level::Info, false > LogInfo
const std::array< double, SIZE_LG_STRUCTS > & getTYobsErr() const
const std::string millePedeResFile_
std::string m_exitMessage
std::array< double, SIZE_LG_STRUCTS > tXobsErr_
const std::array< std::string, 8 > coord_str
std::unordered_map< PclHLS, std::pair< int, int > > indexHelper
const std::array< double, SIZE_HG_STRUCTS > & getYobs_HG() const
const bool getDBUpdated()
std::array< double, SIZE_HG_STRUCTS > tZobsErr_HG_
std::array< double, SIZE_LG_STRUCTS > XobsErr_
int getIndexForHG(align::ID id, PclHLS HLS)
const bool exceedsThresholds()
const std::shared_ptr< const PedeLabelerBase > pedeLabeler_
const std::array< double, SIZE_LG_STRUCTS > & getTZobs() const
const std::string millePedeEndFile_
std::array< double, SIZE_HG_STRUCTS > tXobsErr_HG_
std::array< double, SIZE_HG_STRUCTS > Yobs_HG_
void readMillePedeEndFile()
std::array< double, SIZE_LG_STRUCTS > tZobs_
const bool exceedsMaxError()
const std::array< double, SIZE_LG_STRUCTS > & getZobsErr() const
std::map< std::string, std::array< bool, 6 > > fractionExceeded_
const std::array< double, SIZE_HG_STRUCTS > & getTZobsErr_HG() const
std::array< double, SIZE_LG_STRUCTS > ZobsErr_
std::array< double, SIZE_HG_STRUCTS > tYobsErr_HG_
const std::array< double, SIZE_LG_STRUCTS > & getTXobs() const