CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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);
134  void setResultsDir(std::string &resultsDir);
135 
136  void setSectorConfig45(SectorConfig &sectorConfig45);
137  void setSectorConfig56(SectorConfig &sectorConfig56);
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);
143  void setY_mode_unc_max_valid(double y_mode_unc_max_valid);
144  void setY_mode_max_valid(double y_mode_max_valid);
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);
153  void setFitProfileMinBinEntries(unsigned int fitProfileMinBinEntries);
154  void setFitProfileMinNReasonable(unsigned int fitProfileMinNReasonable);
155  void setMethOGraphMinN(unsigned int methOGraphMinN);
156  void setMethOUncFitRange(double methOUncFitRange);
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);
163  void setMultSelProjYMinEntries(unsigned int multSelProjYMinEntries);
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)
unsigned int fitProfileMinNReasonable() const
SectorConfig sectorConfig45_
const edm::EventSetup & c
double bin_size_x_
double n_si() const
void setMaxRPTracksSize(unsigned int maxRPTracksSize)
double x_min_fit_mode_
unsigned int fitProfileMinBinEntries() const
unsigned int multSelProjYMinEntries() const
const Binning & binning() const
double methOUncFitRange() const
const std::string & resultsDir() const
std::map< unsigned int, SelectionRange > alignment_x_meth_o_ranges_
const std::map< unsigned int, SelectionRange > & matchingShiftRanges() const
const std::map< unsigned int, SelectionRange > & alignment_y_ranges() const
std::string name_
double y_width_mult_
void setSequence(std::vector< std::string > &sequence)
double chiSqThreshold() const
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
unsigned int n_bins_x_
unsigned int nearFarMinEntries() const
std::map< unsigned int, SelectionRange > alignment_x_relative_ranges_
void setFitProfileMinBinEntries(unsigned int fitProfileMinBinEntries)
SectorConfig sectorConfig56_
std::vector< std::string > sequence_
const std::map< unsigned int, std::vector< PointErrors > > & matchingReferencePoints() const
unsigned int fitProfileMinBinEntries_
std::map< unsigned int, SelectionRange > alignment_y_ranges_
void setY_mode_unc_max_valid(double y_mode_unc_max_valid)
unsigned int methOGraphMinN_
double y_mode_sys_unc() const
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)
const SectorConfig & sectorConfig56() const
std::map< unsigned int, std::vector< PointErrors > > matchingReferencePoints_
void setFitProfileMinNReasonable(unsigned int fitProfileMinNReasonable)
std::string name_
unsigned int id_
const std::map< unsigned int, SelectionRange > & alignment_x_meth_o_ranges() 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_
void setMethOGraphMinN(unsigned int methOGraphMinN)
unsigned int nearFarMinEntries_
double y_cen_add_
void setMethOUncFitRange(double methOUncFitRange)
const std::vector< std::string > & sequence() const
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 modeGraphMinN() const
unsigned int maxRPTracksSize_
unsigned int n_bins_y_
void setModeGraphMinN(unsigned int modeGraphMinN)
const SectorConfig & sectorConfig45() const
unsigned int methOGraphMinN() const
const std::map< unsigned int, SelectionRange > & alignment_x_relative_ranges() const
unsigned int multSelProjYMinEntries_
double y_mode_unc_max_valid() const
double y_mode_max_valid() const
double x_ali_sh_step() const
void setN_si(double n_si)
double pixel_x_offset_
double maxRPTracksSize() const
unsigned int modeGraphMinN_
void setSectorConfig56(SectorConfig &sectorConfig56)