CMS 3D CMS Logo

PPSAlignmentConfig.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * This class is obsolete! Use PPSAlignmentConfiguration instead.
4  *
5  * Authors:
6  * - Jan Kašpar
7  * - Mateusz Kocot
8  *
9  ****************************************************************************/
10 
11 #ifndef CondFormats_PPSObjects_PPSAlignmentConfig_h
12 #define CondFormats_PPSObjects_PPSAlignmentConfig_h
13 
15 
16 #include <vector>
17 #include <string>
18 #include <map>
19 
20 //---------------------------------------------------------------------------------------------
21 
22 struct PointErrors {
23  double x_;
24  double y_;
25  double ex_; // error x
26  double ey_; // error y
27 
29 };
30 
31 //---------------------------------------------------------------------------------------------
32 
34  double x_min_;
35  double x_max_;
36 
38 };
39 
40 //---------------------------------------------------------------------------------------------
41 
42 struct RPConfig {
44  unsigned int id_;
46  double slope_;
47  double sh_x_;
48 
51  double y_cen_add_;
52  double y_width_mult_;
53 
56 
58 };
59 std::ostream &operator<<(std::ostream &os, RPConfig &rc);
60 
61 //---------------------------------------------------------------------------------------------
62 
63 struct SectorConfig {
66  double slope_;
67 
70 
73 
75 };
76 std::ostream &operator<<(std::ostream &os, SectorConfig &sc);
77 
78 //---------------------------------------------------------------------------------------------
79 
80 struct Binning {
81  double bin_size_x_; // mm
82  unsigned int n_bins_x_;
83 
85 
86  unsigned int n_bins_y_;
87  double y_min_, y_max_;
88 
90 };
91 std::ostream &operator<<(std::ostream &os, Binning &b);
92 
93 //---------------------------------------------------------------------------------------------
94 
96 public:
97  // Getters
98  const std::vector<std::string> &sequence() const;
99  const std::string &resultsDir() const;
100 
101  const SectorConfig &sectorConfig45() const;
102  const SectorConfig &sectorConfig56() const;
103 
104  double x_ali_sh_step() const;
105 
106  double y_mode_sys_unc() const;
107  double chiSqThreshold() const;
108  double y_mode_unc_max_valid() const;
109  double y_mode_max_valid() const;
110 
111  double maxRPTracksSize() const;
112  double n_si() const;
113 
114  const std::map<unsigned int, std::vector<PointErrors>> &matchingReferencePoints() const;
115  const std::map<unsigned int, SelectionRange> &matchingShiftRanges() const;
116 
117  const std::map<unsigned int, SelectionRange> &alignment_x_meth_o_ranges() const;
118  unsigned int fitProfileMinBinEntries() const;
119  unsigned int fitProfileMinNReasonable() const;
120  unsigned int methOGraphMinN() const;
121  double methOUncFitRange() const;
122 
123  const std::map<unsigned int, SelectionRange> &alignment_x_relative_ranges() const;
124  unsigned int nearFarMinEntries() const;
125 
126  const std::map<unsigned int, SelectionRange> &alignment_y_ranges() const;
127  unsigned int modeGraphMinN() const;
128  unsigned int multSelProjYMinEntries() const;
129 
130  const Binning &binning() const;
131 
132  // Setters
133  void setSequence(std::vector<std::string> &sequence);
135 
138 
139  void setX_ali_sh_step(double x_ali_sh_step);
140 
141  void setY_mode_sys_unc(double y_mode_sys_unc);
142  void setChiSqThreshold(double chiSqThreshold);
145 
146  void setMaxRPTracksSize(unsigned int maxRPTracksSize);
147  void setN_si(double n_si);
148 
149  void setMatchingReferencePoints(std::map<unsigned int, std::vector<PointErrors>> &matchingReferencePoints);
150  void setMatchingShiftRanges(std::map<unsigned int, SelectionRange> &matchingShiftRanges);
151 
152  void setAlignment_x_meth_o_ranges(std::map<unsigned int, SelectionRange> &alignment_x_meth_o_ranges);
155  void setMethOGraphMinN(unsigned int methOGraphMinN);
157 
158  void setAlignment_x_relative_ranges(std::map<unsigned int, SelectionRange> &alignment_x_relative_ranges);
159  void setNearFarMinEntries(unsigned int nearFarMinEntries);
160 
161  void setAlignment_y_ranges(std::map<unsigned int, SelectionRange> &alignment_y_ranges);
162  void setModeGraphMinN(unsigned int modeGraphMinN);
164 
165  void setBinning(Binning &binning);
166 
167  // << operator
168  friend std::ostream &operator<<(std::ostream &os, PPSAlignmentConfig c);
169 
170 private:
171  std::vector<std::string> sequence_;
173 
175 
176  double x_ali_sh_step_; // mm
177 
182 
183  unsigned int maxRPTracksSize_;
184  double n_si_;
185 
186  std::map<unsigned int, std::vector<PointErrors>> matchingReferencePoints_;
187  std::map<unsigned int, SelectionRange> matchingShiftRanges_;
188 
189  std::map<unsigned int, SelectionRange> alignment_x_meth_o_ranges_;
192  unsigned int methOGraphMinN_;
193  double methOUncFitRange_; // mm
194 
195  std::map<unsigned int, SelectionRange> alignment_x_relative_ranges_;
196  unsigned int nearFarMinEntries_;
197 
198  std::map<unsigned int, SelectionRange> alignment_y_ranges_;
199  unsigned int modeGraphMinN_;
201 
203 
205 };
206 
207 std::ostream &operator<<(std::ostream &os, PPSAlignmentConfig c);
208 
209 #endif
void setBinning(Binning &binning)
const Binning & binning() const
std::ostream & operator<<(std::ostream &os, RPConfig &rc)
SectorConfig sectorConfig45_
double bin_size_x_
unsigned int fitProfileMinNReasonable() const
const std::map< unsigned int, SelectionRange > & alignment_x_relative_ranges() const
double maxRPTracksSize() const
const std::map< unsigned int, SelectionRange > & alignment_x_meth_o_ranges() const
double y_mode_unc_max_valid() const
unsigned int methOGraphMinN() const
void setMaxRPTracksSize(unsigned int maxRPTracksSize)
double x_min_fit_mode_
unsigned int multSelProjYMinEntries() const
const std::map< unsigned int, SelectionRange > & matchingShiftRanges() const
unsigned int modeGraphMinN() const
double chiSqThreshold() const
const std::vector< std::string > & sequence() const
unsigned int nearFarMinEntries() const
std::map< unsigned int, SelectionRange > alignment_x_meth_o_ranges_
std::string name_
double y_width_mult_
void setSequence(std::vector< std::string > &sequence)
unsigned int n_bins_x_
double x_ali_sh_step() const
std::map< unsigned int, SelectionRange > alignment_x_relative_ranges_
void setFitProfileMinBinEntries(unsigned int fitProfileMinBinEntries)
SectorConfig sectorConfig56_
std::vector< std::string > sequence_
double y_mode_sys_unc() const
unsigned int fitProfileMinBinEntries_
double methOUncFitRange() const
std::map< unsigned int, SelectionRange > alignment_y_ranges_
void setY_mode_unc_max_valid(double y_mode_unc_max_valid)
const std::string & resultsDir() const
unsigned int methOGraphMinN_
double x_max_fit_mode_
unsigned int fitProfileMinNReasonable_
void setChiSqThreshold(double chiSqThreshold)
void setAlignment_x_relative_ranges(std::map< unsigned int, SelectionRange > &alignment_x_relative_ranges)
void setAlignment_y_ranges(std::map< unsigned int, SelectionRange > &alignment_y_ranges)
void setNearFarMinEntries(unsigned int nearFarMinEntries)
void setMatchingReferencePoints(std::map< unsigned int, std::vector< PointErrors >> &matchingReferencePoints)
friend std::ostream & operator<<(std::ostream &os, PPSAlignmentConfig c)
std::map< unsigned int, std::vector< PointErrors > > matchingReferencePoints_
void setFitProfileMinNReasonable(unsigned int fitProfileMinNReasonable)
std::string name_
unsigned int id_
unsigned int fitProfileMinBinEntries() const
double y_max_fit_mode_
void setMultSelProjYMinEntries(unsigned int multSelProjYMinEntries)
void setResultsDir(std::string &resultsDir)
double x_slice_min_
void setAlignment_x_meth_o_ranges(std::map< unsigned int, SelectionRange > &alignment_x_meth_o_ranges)
void setMatchingShiftRanges(std::map< unsigned int, SelectionRange > &matchingShiftRanges)
void setY_mode_sys_unc(double y_mode_sys_unc)
void setY_mode_max_valid(double y_mode_max_valid)
std::map< unsigned int, SelectionRange > matchingShiftRanges_
const SectorConfig & sectorConfig45() const
void setMethOGraphMinN(unsigned int methOGraphMinN)
unsigned int nearFarMinEntries_
double y_cen_add_
void setMethOUncFitRange(double methOUncFitRange)
void setSectorConfig45(SectorConfig &sectorConfig45)
void setX_ali_sh_step(double x_ali_sh_step)
std::string position_
double x_slice_w_
double b
Definition: hdecay.h:118
#define COND_SERIALIZABLE
Definition: Serializable.h:39
unsigned int maxRPTracksSize_
const std::map< unsigned int, SelectionRange > & alignment_y_ranges() const
unsigned int n_bins_y_
const SectorConfig & sectorConfig56() const
void setModeGraphMinN(unsigned int modeGraphMinN)
double y_mode_max_valid() const
unsigned int multSelProjYMinEntries_
void setN_si(double n_si)
double pixel_x_offset_
unsigned int modeGraphMinN_
void setSectorConfig56(SectorConfig &sectorConfig56)
const std::map< unsigned int, std::vector< PointErrors > > & matchingReferencePoints() const