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, RPConfig &rc)
 
std::ostream & operator<< (std::ostream &os, SectorConfig &sc)
 
std::ostream & operator<< (std::ostream &os, Binning &b)
 
std::ostream & operator<< (std::ostream &os, PPSAlignmentConfig c)
 

Function Documentation

◆ operator<<() [1/4]

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

Definition at line 124 of file PPSAlignmentConfig.cc.

References alignBH_cfg::fixed, RPConfig::id_, RPConfig::name_, l1tGTMenu_BTagSeeds_cff::os, 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_.

124  {
125  os << std::fixed << std::setprecision(3);
126  os << " " << rc.name_ << ", id = " << rc.id_ << ", position = " << rc.position_ << ":\n";
127  os << " slope = " << rc.slope_ << ", sh_x = " << rc.sh_x_ << "\n";
128  os << " x_min_fit_mode = " << rc.x_min_fit_mode_ << ", x_max_fit_mode = " << rc.x_max_fit_mode_ << "\n";
129  os << " y_max_fit_mode = " << rc.y_max_fit_mode_ << "\n";
130  os << " y_cen_add = " << rc.y_cen_add_ << ", y_width_mult = " << rc.y_width_mult_ << "\n";
131  os << std::setprecision(2);
132  os << " x slices: min = " << rc.x_slice_min_ << ", w = " << rc.x_slice_w_ << ", n = " << rc.x_slice_n_;
133 
134  return os;
135 }
double x_min_fit_mode_
double y_width_mult_
double x_max_fit_mode_
std::string name_
unsigned int id_
double y_max_fit_mode_
double x_slice_min_
double y_cen_add_
std::string position_
double x_slice_w_

◆ operator<<() [2/4]

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

Definition at line 137 of file PPSAlignmentConfig.cc.

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_, l1tGTMenu_BTagSeeds_cff::os, SectorConfig::rp_F_, SectorConfig::rp_N_, and SectorConfig::slope_.

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

◆ operator<<() [3/4]

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

Definition at line 151 of file PPSAlignmentConfig.cc.

References b, and l1tGTMenu_BTagSeeds_cff::os.

151  {
152  os << " bin_size_x = " << b.bin_size_x_ << ", n_bins_x = " << b.n_bins_x_ << "\n";
153  os << " pixel_x_offset = " << b.pixel_x_offset_ << "\n";
154  os << " n_bins_y = " << b.n_bins_y_ << ", y_min = " << b.y_min_ << ", y_max = " << b.y_max_;
155 
156  return os;
157 }
double b
Definition: hdecay.h:120

◆ operator<<() [4/4]

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

Definition at line 159 of file PPSAlignmentConfig.cc.

References DummyCfis::c, mps_fire::i, l1tGTMenu_BTagSeeds_cff::os, and AlCaHLTBitMon_ParallelJobs::p.

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