test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MillePedeFileReader.h
Go to the documentation of this file.
1 #ifndef ALIGNMENT_MILLEPEDEALIGNMENTALGORITHM_INTERFACE_MILLEPEDEFILEREADER_H_
2 #define ALIGNMENT_MILLEPEDEALIGNMENTALGORITHM_INTERFACE_MILLEPEDEFILEREADER_H_
3 
4 /*** system includes ***/
5 #include <array>
6 #include <string>
7 
8 /*** core framework functionality ***/
10 
11 
13 
14  //========================== PUBLIC METHODS ==================================
15  public: //====================================================================
16 
17  explicit MillePedeFileReader(const edm::ParameterSet&);
19 
20  void read();
21  bool storeAlignments();
22 
23  std::array<double, 6> const& getXobs() const { return Xobs; }
24  std::array<double, 6> const& getXobsErr() const { return XobsErr; }
25  std::array<double, 6> const& getTXobs() const { return tXobs; }
26  std::array<double, 6> const& getTXobsErr() const { return tXobsErr; }
27 
28  std::array<double, 6> const& getYobs() const { return Yobs; }
29  std::array<double, 6> const& getYobsErr() const { return YobsErr; }
30  std::array<double, 6> const& getTYobs() const { return tYobs; }
31  std::array<double, 6> const& getTYobsErr() const { return tYobsErr; }
32 
33  std::array<double, 6> const& getZobs() const { return Zobs; }
34  std::array<double, 6> const& getZobsErr() const { return ZobsErr; }
35  std::array<double, 6> const& getTZobs() const { return tZobs; }
36  std::array<double, 6> const& getTZobsErr() const { return tZobsErr; }
37 
38  //========================= PRIVATE METHODS ==================================
39  private: //===================================================================
40 
41  void readMillePedeLogFile();
43 
44  //========================== PRIVATE DATA ====================================
45  //============================================================================
46 
47  // file-names
50 
51  // signifiance of movement must be above
52  double sigCut_;
53  // cutoff in micro-meter & micro-rad
54  double Xcut_, tXcut_;
55  double Ycut_, tYcut_;
56  double Zcut_, tZcut_;
57  // maximum movement in micro-meter/rad
59 
60  double Cutoffs[6] = { Xcut_, Ycut_, Zcut_,
61  tXcut_, tYcut_, tZcut_};
62 
63  bool updateDB = false;
64  int Nrec = 0;
65 
66  std::array<double, 6> Xobs = {{0.,0.,0.,0.,0.,0.}};
67  std::array<double, 6> XobsErr = {{0.,0.,0.,0.,0.,0.}};
68  std::array<double, 6> tXobs = {{0.,0.,0.,0.,0.,0.}};
69  std::array<double, 6> tXobsErr = {{0.,0.,0.,0.,0.,0.}};
70 
71  std::array<double, 6> Yobs = {{0.,0.,0.,0.,0.,0.}};
72  std::array<double, 6> YobsErr = {{0.,0.,0.,0.,0.,0.}};
73  std::array<double, 6> tYobs = {{0.,0.,0.,0.,0.,0.}};
74  std::array<double, 6> tYobsErr = {{0.,0.,0.,0.,0.,0.}};
75 
76  std::array<double, 6> Zobs = {{0.,0.,0.,0.,0.,0.}};
77  std::array<double, 6> ZobsErr = {{0.,0.,0.,0.,0.,0.}};
78  std::array<double, 6> tZobs = {{0.,0.,0.,0.,0.,0.}};
79  std::array<double, 6> tZobsErr = {{0.,0.,0.,0.,0.,0.}};
80 
81 };
82 
83 #endif /* ALIGNMENT_MILLEPEDEALIGNMENTALGORITHM_INTERFACE_MILLEPEDEFILEREADER_H_ */
std::array< double, 6 > const & getTYobs() const
std::array< double, 6 > const & getYobsErr() const
std::array< double, 6 > Yobs
std::array< double, 6 > tZobs
std::array< double, 6 > XobsErr
std::array< double, 6 > Zobs
std::array< double, 6 > tXobsErr
std::array< double, 6 > ZobsErr
std::array< double, 6 > const & getYobs() const
std::array< double, 6 > const & getTXobs() const
std::array< double, 6 > const & getXobsErr() const
std::array< double, 6 > const & getTZobs() const
std::array< double, 6 > tZobsErr
std::array< double, 6 > tYobs
std::array< double, 6 > Xobs
std::array< double, 6 > tYobsErr
std::array< double, 6 > const & getTXobsErr() const
std::array< double, 6 > const & getZobs() const
std::array< double, 6 > YobsErr
std::array< double, 6 > tXobs
std::array< double, 6 > const & getZobsErr() const
MillePedeFileReader(const edm::ParameterSet &)
std::array< double, 6 > const & getTZobsErr() const
std::array< double, 6 > const & getTYobsErr() const
std::array< double, 6 > const & getXobs() const