CMS 3D CMS Logo

Classes | Functions
PPSAlignmentConfig.h File Reference
#include "CondFormats/Serialization/interface/Serializable.h"
#include <vector>
#include <string>
#include <map>

Go to the source code of this file.

Classes

struct  Binning
 
struct  PointErrors
 
class  PPSAlignmentConfig
 
struct  RPConfig
 
struct  SectorConfig
 
struct  SelectionRange
 

Functions

std::ostream & operator<< (std::ostream &os, Binning &b)
 
std::ostream & operator<< (std::ostream &os, PPSAlignmentConfig c)
 
std::ostream & operator<< (std::ostream &os, RPConfig &rc)
 
std::ostream & operator<< (std::ostream &os, SectorConfig &sc)
 

Function Documentation

◆ operator<<() [1/4]

std::ostream& operator<< ( std::ostream &  os,
Binning b 
)

Definition at line 155 of file PPSAlignmentConfig.cc.

156  {
157  os << " bin_size_x = " << b.bin_size_x_ << ", n_bins_x = " << b.n_bins_x_ << "\n";
158  os << " pixel_x_offset = " << b.pixel_x_offset_ << "\n";
159  os << " n_bins_y = " << b.n_bins_y_ << ", y_min = " << b.y_min_ << ", y_max = " << b.y_max_;
160 
161  return os;

References b.

◆ operator<<() [2/4]

std::ostream& operator<< ( std::ostream &  os,
PPSAlignmentConfig  c 
)

Definition at line 163 of file PPSAlignmentConfig.cc.

164  {
165  os << "* sequence\n";
166  for (unsigned int i = 0; i < c.sequence_.size(); i++) {
167  os << " " << i + 1 << ": " << c.sequence_[i] << "\n";
168  }
169  os << "\n";
170 
171  if (c.resultsDir_.empty()) {
172  os << "* no results file\n\n";
173  } else {
174  os << "* results file directory:\n";
175  os << " " << c.resultsDir_ << "\n\n";
176  }
177 
178  os << "* " << c.sectorConfig45_ << "\n\n";
179  os << "* " << c.sectorConfig56_ << "\n\n";
180 
181  std::map<unsigned int, std::string> rpTags = {{c.sectorConfig45_.rp_F_.id_, c.sectorConfig45_.rp_F_.name_},
182  {c.sectorConfig45_.rp_N_.id_, c.sectorConfig45_.rp_N_.name_},
183  {c.sectorConfig56_.rp_N_.id_, c.sectorConfig56_.rp_N_.name_},
184  {c.sectorConfig56_.rp_F_.id_, c.sectorConfig56_.rp_F_.name_}};
185 
186  os << "* x alignment shift step\n";
187  os << " x_ali_sh_step = " << c.x_ali_sh_step_ << "\n\n";
188 
189  os << "* mode graph parameters\n";
190  os << " y_mode_sys_unc = " << c.y_mode_sys_unc_ << "\n";
191  os << " chiSqThreshold = " << c.chiSqThreshold_ << "\n";
192  os << " y_mode_unc_max_valid = " << c.y_mode_unc_max_valid_ << "\n";
193  os << " y_mode_max_valid = " << c.y_mode_max_valid_ << "\n\n";
194 
195  os << "* selection\n";
196  os << " max_RP_tracks_size = " << c.maxRPTracksSize_ << "\n\n";
197 
198  os << "* cuts\n";
199  os << " n_si = " << c.n_si_ << "\n\n";
200 
201  os << "* matching\n" << std::setprecision(3);
202 
203  os << " shift ranges:\n";
204  for (const auto &p : c.matchingShiftRanges_)
205  os << " RP " << rpTags[p.first] << " (" << std::setw(3) << p.first << "): sh_min = " << p.second.x_min_
206  << ", sh_max = " << p.second.x_max_ << "\n";
207 
208  os << " reference points:\n";
209  for (const auto &pm : c.matchingReferencePoints_) {
210  os << " " << std::setw(3) << pm.first << ": ";
211  for (unsigned int i = 0; i < pm.second.size(); i++) {
212  const auto &p = pm.second[i];
213  if (i % 5 == 0 && i > 0)
214  os << "\n ";
215  os << "(" << std::setw(6) << p.x_ << " +- " << p.ex_ << ", " << std::setw(6) << p.y_ << " +- " << p.ey_ << "), ";
216  }
217  os << "\n";
218  }
219 
220  os << "\n"
221  << "* alignment_x_meth_o\n";
222  for (const auto &p : c.alignment_x_meth_o_ranges_)
223  os << " RP " << rpTags[p.first] << " (" << std::setw(3) << p.first << "): sh_min = " << p.second.x_min_
224  << ", sh_max = " << p.second.x_max_ << "\n";
225  os << " fit_profile_min_bin_entries = " << c.fitProfileMinBinEntries_ << "\n";
226  os << " fit_profile_min_N_reasonable = " << c.fitProfileMinNReasonable_ << "\n";
227  os << " meth_o_graph_min_N = " << c.methOGraphMinN_ << "\n";
228  os << " meth_o_unc_fit_range = " << c.methOUncFitRange_ << "\n";
229 
230  os << "\n"
231  << "* alignment_x_relative\n";
232  for (const auto &p : c.alignment_x_relative_ranges_)
233  os << " RP " << rpTags[p.first] << " (" << std::setw(3) << p.first << "): sh_min = " << p.second.x_min_
234  << ", sh_max = " << p.second.x_max_ << "\n";
235  os << " near_far_min_entries = " << c.nearFarMinEntries_ << "\n";
236 
237  os << "\n"
238  << "* alignment_y\n";
239  for (const auto &p : c.alignment_y_ranges_)
240  os << " RP " << rpTags[p.first] << " (" << std::setw(3) << p.first << "): sh_min = " << p.second.x_min_
241  << ", sh_max = " << p.second.x_max_ << "\n";
242  os << " mode_graph_min_N = " << c.modeGraphMinN_ << "\n";
243  os << " mult_sel_proj_y_min_entries = " << c.multSelProjYMinEntries_ << "\n";
244 
245  os << "\n"
246  << "* binning\n";
247  os << c.binning_ << "\n";
248 
249  return os;

References c, mps_fire::i, and AlCaHLTBitMon_ParallelJobs::p.

◆ operator<<() [3/4]

std::ostream& operator<< ( std::ostream &  os,
RPConfig rc 
)

Definition at line 128 of file PPSAlignmentConfig.cc.

129  {
130  os << std::fixed << std::setprecision(3);
131  os << " " << rc.name_ << ", id = " << rc.id_ << ", position = " << rc.position_ << ":\n";
132  os << " slope = " << rc.slope_ << ", sh_x = " << rc.sh_x_ << "\n";
133  os << " x_min_fit_mode = " << rc.x_min_fit_mode_ << ", x_max_fit_mode = " << rc.x_max_fit_mode_ << "\n";
134  os << " y_max_fit_mode = " << rc.y_max_fit_mode_ << "\n";
135  os << " y_cen_add = " << rc.y_cen_add_ << ", y_width_mult = " << rc.y_width_mult_ << "\n";
136  os << std::setprecision(2);
137  os << " x slices: min = " << rc.x_slice_min_ << ", w = " << rc.x_slice_w_ << ", n = " << rc.x_slice_n_;
138 
139  return os;

References alignBH_cfg::fixed, RPConfig::id_, RPConfig::name_, RPConfig::position_, RPConfig::sh_x_, RPConfig::slope_, RPConfig::x_max_fit_mode_, RPConfig::x_min_fit_mode_, RPConfig::x_slice_min_, RPConfig::x_slice_n_, RPConfig::x_slice_w_, RPConfig::y_cen_add_, RPConfig::y_max_fit_mode_, and RPConfig::y_width_mult_.

◆ operator<<() [4/4]

std::ostream& operator<< ( std::ostream &  os,
SectorConfig sc 
)

Definition at line 141 of file PPSAlignmentConfig.cc.

142  {
143  os << std::fixed << std::setprecision(3);
144  os << sc.name_ << ":\n";
145  os << sc.rp_N_ << "\n" << sc.rp_F_ << "\n";
146  os << std::setprecision(3);
147  os << " slope = " << sc.slope_ << "\n";
148  os << " cut_h: apply = " << sc.cut_h_apply_ << ", a = " << sc.cut_h_a_ << ", c = " << sc.cut_h_c_
149  << ", si = " << sc.cut_h_si_ << "\n";
150  os << " cut_v: apply = " << sc.cut_v_apply_ << ", a = " << sc.cut_v_a_ << ", c = " << sc.cut_v_c_
151  << ", si = " << sc.cut_v_si_ << "\n";
152 
153  return os;

References SectorConfig::cut_h_a_, SectorConfig::cut_h_apply_, SectorConfig::cut_h_c_, SectorConfig::cut_h_si_, SectorConfig::cut_v_a_, SectorConfig::cut_v_apply_, SectorConfig::cut_v_c_, SectorConfig::cut_v_si_, alignBH_cfg::fixed, SectorConfig::name_, SectorConfig::rp_F_, SectorConfig::rp_N_, and SectorConfig::slope_.

RPConfig::x_slice_min_
double x_slice_min_
Definition: PPSAlignmentConfig.h:56
SectorConfig::name_
std::string name_
Definition: PPSAlignmentConfig.h:65
alignBH_cfg.fixed
fixed
Definition: alignBH_cfg.py:54
mps_fire.i
i
Definition: mps_fire.py:428
SectorConfig::cut_h_c_
double cut_h_c_
Definition: PPSAlignmentConfig.h:70
RPConfig::slope_
double slope_
Definition: PPSAlignmentConfig.h:47
SectorConfig::rp_F_
RPConfig rp_F_
Definition: PPSAlignmentConfig.h:66
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
RPConfig::x_slice_w_
double x_slice_w_
Definition: PPSAlignmentConfig.h:56
SectorConfig::slope_
double slope_
Definition: PPSAlignmentConfig.h:67
SectorConfig::cut_v_si_
double cut_v_si_
Definition: PPSAlignmentConfig.h:73
RPConfig::x_min_fit_mode_
double x_min_fit_mode_
Definition: PPSAlignmentConfig.h:50
RPConfig::position_
std::string position_
Definition: PPSAlignmentConfig.h:46
RPConfig::y_cen_add_
double y_cen_add_
Definition: PPSAlignmentConfig.h:52
RPConfig::x_slice_n_
int x_slice_n_
Definition: PPSAlignmentConfig.h:55
b
double b
Definition: hdecay.h:118
SectorConfig::cut_v_apply_
bool cut_v_apply_
Definition: PPSAlignmentConfig.h:72
RPConfig::x_max_fit_mode_
double x_max_fit_mode_
Definition: PPSAlignmentConfig.h:50
RPConfig::name_
std::string name_
Definition: PPSAlignmentConfig.h:44
SectorConfig::cut_v_c_
double cut_v_c_
Definition: PPSAlignmentConfig.h:73
RPConfig::y_max_fit_mode_
double y_max_fit_mode_
Definition: PPSAlignmentConfig.h:51
RPConfig::sh_x_
double sh_x_
Definition: PPSAlignmentConfig.h:48
RPConfig::id_
unsigned int id_
Definition: PPSAlignmentConfig.h:45
SectorConfig::cut_h_apply_
bool cut_h_apply_
Definition: PPSAlignmentConfig.h:69
RPConfig::y_width_mult_
double y_width_mult_
Definition: PPSAlignmentConfig.h:53
SectorConfig::rp_N_
RPConfig rp_N_
Definition: PPSAlignmentConfig.h:66
SectorConfig::cut_v_a_
double cut_v_a_
Definition: PPSAlignmentConfig.h:73
SectorConfig::cut_h_si_
double cut_h_si_
Definition: PPSAlignmentConfig.h:70
SectorConfig::cut_h_a_
double cut_h_a_
Definition: PPSAlignmentConfig.h:70
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46