CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 126 of file PPSAlignmentConfig.cc.

References 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_.

126  {
127  os << std::fixed << std::setprecision(3);
128  os << " " << rc.name_ << ", id = " << rc.id_ << ", position = " << rc.position_ << ":\n";
129  os << " slope = " << rc.slope_ << ", sh_x = " << rc.sh_x_ << "\n";
130  os << " x_min_fit_mode = " << rc.x_min_fit_mode_ << ", x_max_fit_mode = " << rc.x_max_fit_mode_ << "\n";
131  os << " y_max_fit_mode = " << rc.y_max_fit_mode_ << "\n";
132  os << " y_cen_add = " << rc.y_cen_add_ << ", y_width_mult = " << rc.y_width_mult_ << "\n";
133  os << std::setprecision(2);
134  os << " x slices: min = " << rc.x_slice_min_ << ", w = " << rc.x_slice_w_ << ", n = " << rc.x_slice_n_;
135 
136  return os;
137 }
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_
std::ostream& operator<< ( std::ostream &  os,
SectorConfig sc 
)

Definition at line 139 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_, SectorConfig::name_, SectorConfig::rp_F_, SectorConfig::rp_N_, and SectorConfig::slope_.

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

Definition at line 153 of file PPSAlignmentConfig.cc.

References Binning::bin_size_x_, Binning::n_bins_x_, Binning::n_bins_y_, Binning::pixel_x_offset_, Binning::y_max_, and Binning::y_min_.

153  {
154  os << " bin_size_x = " << b.bin_size_x_ << ", n_bins_x = " << b.n_bins_x_ << "\n";
155  os << " pixel_x_offset = " << b.pixel_x_offset_ << "\n";
156  os << " n_bins_y = " << b.n_bins_y_ << ", y_min = " << b.y_min_ << ", y_max = " << b.y_max_;
157 
158  return os;
159 }
double bin_size_x_
unsigned int n_bins_x_
unsigned int n_bins_y_
double pixel_x_offset_
std::ostream& operator<< ( std::ostream &  os,
PPSAlignmentConfig  c 
)

Definition at line 161 of file PPSAlignmentConfig.cc.

References PPSAlignmentConfig::alignment_x_meth_o_ranges_, PPSAlignmentConfig::alignment_x_relative_ranges_, PPSAlignmentConfig::alignment_y_ranges_, PPSAlignmentConfig::binning_, PPSAlignmentConfig::chiSqThreshold_, PPSAlignmentConfig::fitProfileMinBinEntries_, PPSAlignmentConfig::fitProfileMinNReasonable_, mps_fire::i, RPConfig::id_, PPSAlignmentConfig::matchingReferencePoints_, PPSAlignmentConfig::matchingShiftRanges_, PPSAlignmentConfig::maxRPTracksSize_, PPSAlignmentConfig::methOGraphMinN_, PPSAlignmentConfig::methOUncFitRange_, PPSAlignmentConfig::modeGraphMinN_, PPSAlignmentConfig::multSelProjYMinEntries_, PPSAlignmentConfig::n_si_, RPConfig::name_, PPSAlignmentConfig::nearFarMinEntries_, AlCaHLTBitMon_ParallelJobs::p, PPSAlignmentConfig::resultsDir_, SectorConfig::rp_F_, SectorConfig::rp_N_, PPSAlignmentConfig::sectorConfig45_, PPSAlignmentConfig::sectorConfig56_, PPSAlignmentConfig::sequence_, PPSAlignmentConfig::x_ali_sh_step_, PPSAlignmentConfig::y_mode_max_valid_, PPSAlignmentConfig::y_mode_sys_unc_, and PPSAlignmentConfig::y_mode_unc_max_valid_.

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