CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends
PPSAlignmentConfiguration Class Reference

#include <PPSAlignmentConfiguration.h>

Classes

struct  Binning
 
struct  PointErrors
 
struct  RPConfig
 
struct  SectorConfig
 
struct  SelectionRange
 

Public Member Functions

const std::map< unsigned int,
SelectionRange > & 
alignment_x_meth_o_ranges () const
 
const std::map< unsigned int,
SelectionRange > & 
alignment_x_relative_ranges () const
 
const std::map< unsigned int,
SelectionRange > & 
alignment_y_ranges () const
 
const Binningbinning () const
 
double chiSqThreshold () const
 
const std::vector< double > & extraParams () const
 
unsigned int fitProfileMinBinEntries () const
 
unsigned int fitProfileMinNReasonable () const
 
const std::map< unsigned int,
std::vector< PointErrors > > & 
matchingReferencePoints () const
 
const std::map< unsigned int,
SelectionRange > & 
matchingShiftRanges () const
 
double maxRPTracksSize () const
 
unsigned int methOGraphMinN () const
 
double methOUncFitRange () const
 
double minRPTracksSize () const
 
unsigned int modeGraphMinN () const
 
unsigned int multSelProjYMinEntries () const
 
double n_si () const
 
unsigned int nearFarMinEntries () const
 
const SectorConfigsectorConfig45 () const
 
const SectorConfigsectorConfig56 () const
 
void setAlignment_x_meth_o_ranges (std::map< unsigned int, SelectionRange > &alignment_x_meth_o_ranges)
 
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 setBinning (Binning &binning)
 
void setChiSqThreshold (double chiSqThreshold)
 
void setExtraParams (std::vector< double > &extraParams)
 
void setFitProfileMinBinEntries (unsigned int fitProfileMinBinEntries)
 
void setFitProfileMinNReasonable (unsigned int fitProfileMinNReasonable)
 
void setMatchingReferencePoints (std::map< unsigned int, std::vector< PointErrors >> &matchingReferencePoints)
 
void setMatchingShiftRanges (std::map< unsigned int, SelectionRange > &matchingShiftRanges)
 
void setMaxRPTracksSize (unsigned int maxRPTracksSize)
 
void setMethOGraphMinN (unsigned int methOGraphMinN)
 
void setMethOUncFitRange (double methOUncFitRange)
 
void setMinRPTracksSize (unsigned int minRPTracksSize)
 
void setModeGraphMinN (unsigned int modeGraphMinN)
 
void setMultSelProjYMinEntries (unsigned int multSelProjYMinEntries)
 
void setN_si (double n_si)
 
void setNearFarMinEntries (unsigned int nearFarMinEntries)
 
void setSectorConfig45 (SectorConfig &sectorConfig45)
 
void setSectorConfig56 (SectorConfig &sectorConfig56)
 
void setX_ali_sh_step (double x_ali_sh_step)
 
void setY_mode_max_valid (double y_mode_max_valid)
 
void setY_mode_sys_unc (double y_mode_sys_unc)
 
void setY_mode_unc_max_valid (double y_mode_unc_max_valid)
 
double x_ali_sh_step () const
 
double y_mode_max_valid () const
 
double y_mode_sys_unc () const
 
double y_mode_unc_max_valid () const
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::map< unsigned int,
SelectionRange
alignment_x_meth_o_ranges_
 
std::map< unsigned int,
SelectionRange
alignment_x_relative_ranges_
 
std::map< unsigned int,
SelectionRange
alignment_y_ranges_
 
Binning binning_
 
double chiSqThreshold_
 
std::vector< double > extraParams_
 
unsigned int fitProfileMinBinEntries_
 
unsigned int fitProfileMinNReasonable_
 
std::map< unsigned int,
std::vector< PointErrors > > 
matchingReferencePoints_
 
std::map< unsigned int,
SelectionRange
matchingShiftRanges_
 
unsigned int maxRPTracksSize_
 
unsigned int methOGraphMinN_
 
double methOUncFitRange_
 
unsigned int minRPTracksSize_
 
unsigned int modeGraphMinN_
 
unsigned int multSelProjYMinEntries_
 
double n_si_
 
unsigned int nearFarMinEntries_
 
SectorConfig sectorConfig45_
 
SectorConfig sectorConfig56_
 
double x_ali_sh_step_
 
double y_mode_max_valid_
 
double y_mode_sys_unc_
 
double y_mode_unc_max_valid_
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 
std::ostream & operator<< (std::ostream &os, const PPSAlignmentConfiguration &c)
 

Detailed Description

Definition at line 16 of file PPSAlignmentConfiguration.h.

Member Function Documentation

const std::map< unsigned int, PPSAlignmentConfiguration::SelectionRange > & PPSAlignmentConfiguration::alignment_x_meth_o_ranges ( ) const
const std::map< unsigned int, PPSAlignmentConfiguration::SelectionRange > & PPSAlignmentConfiguration::alignment_x_relative_ranges ( ) const

Definition at line 52 of file PPSAlignmentConfiguration.cc.

References alignment_x_relative_ranges_.

Referenced by setAlignment_x_relative_ranges(), and PPSAlignmentHarvester::xAlignmentRelative().

52  {
54 }
std::map< unsigned int, SelectionRange > alignment_x_relative_ranges_
const std::map< unsigned int, PPSAlignmentConfiguration::SelectionRange > & PPSAlignmentConfiguration::alignment_y_ranges ( ) const

Definition at line 57 of file PPSAlignmentConfiguration.cc.

References alignment_y_ranges_.

Referenced by setAlignment_y_ranges(), and PPSAlignmentHarvester::yAlignment().

58  {
59  return alignment_y_ranges_;
60 }
std::map< unsigned int, SelectionRange > alignment_y_ranges_
const PPSAlignmentConfiguration::Binning & PPSAlignmentConfiguration::binning ( ) const
double PPSAlignmentConfiguration::chiSqThreshold ( ) const
const std::vector< double > & PPSAlignmentConfiguration::extraParams ( ) const

Definition at line 66 of file PPSAlignmentConfiguration.cc.

References extraParams_.

Referenced by setExtraParams().

66 { return extraParams_; }
unsigned int PPSAlignmentConfiguration::fitProfileMinBinEntries ( ) const
unsigned int PPSAlignmentConfiguration::fitProfileMinNReasonable ( ) const
const std::map< unsigned int, std::vector< PPSAlignmentConfiguration::PointErrors > > & PPSAlignmentConfiguration::matchingReferencePoints ( ) const

Definition at line 34 of file PPSAlignmentConfiguration.cc.

References matchingReferencePoints_.

Referenced by setMatchingReferencePoints(), and PPSAlignmentHarvester::xAlignment().

34  {
36 }
std::map< unsigned int, std::vector< PointErrors > > matchingReferencePoints_
const std::map< unsigned int, PPSAlignmentConfiguration::SelectionRange > & PPSAlignmentConfiguration::matchingShiftRanges ( ) const

Definition at line 38 of file PPSAlignmentConfiguration.cc.

References matchingShiftRanges_.

Referenced by setMatchingShiftRanges(), and PPSAlignmentHarvester::xAlignment().

38  {
39  return matchingShiftRanges_;
40 }
std::map< unsigned int, SelectionRange > matchingShiftRanges_
double PPSAlignmentConfiguration::maxRPTracksSize ( ) const
unsigned int PPSAlignmentConfiguration::methOGraphMinN ( ) const
double PPSAlignmentConfiguration::methOUncFitRange ( ) const
double PPSAlignmentConfiguration::minRPTracksSize ( ) const
unsigned int PPSAlignmentConfiguration::modeGraphMinN ( ) const

Definition at line 61 of file PPSAlignmentConfiguration.cc.

References modeGraphMinN_.

Referenced by setModeGraphMinN(), and PPSAlignmentHarvester::yAlignment().

61 { return modeGraphMinN_; }
unsigned int PPSAlignmentConfiguration::multSelProjYMinEntries ( ) const
double PPSAlignmentConfiguration::n_si ( ) const

Definition at line 31 of file PPSAlignmentConfiguration.cc.

References n_si_.

Referenced by PPSAlignmentWorker::SectorData::process(), and setN_si().

unsigned int PPSAlignmentConfiguration::nearFarMinEntries ( ) const
const PPSAlignmentConfiguration::SectorConfig & PPSAlignmentConfiguration::sectorConfig45 ( ) const
const PPSAlignmentConfiguration::SectorConfig & PPSAlignmentConfiguration::sectorConfig56 ( ) const
template<class Archive >
void PPSAlignmentConfiguration::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void PPSAlignmentConfiguration::setAlignment_x_meth_o_ranges ( std::map< unsigned int, SelectionRange > &  alignment_x_meth_o_ranges)

Definition at line 99 of file PPSAlignmentConfiguration.cc.

References alignment_x_meth_o_ranges(), and alignment_x_meth_o_ranges_.

100  {
102 }
std::map< unsigned int, SelectionRange > alignment_x_meth_o_ranges_
const std::map< unsigned int, SelectionRange > & alignment_x_meth_o_ranges() const
void PPSAlignmentConfiguration::setAlignment_x_relative_ranges ( std::map< unsigned int, SelectionRange > &  alignment_x_relative_ranges)

Definition at line 112 of file PPSAlignmentConfiguration.cc.

References alignment_x_relative_ranges(), and alignment_x_relative_ranges_.

113  {
115 }
std::map< unsigned int, SelectionRange > alignment_x_relative_ranges_
const std::map< unsigned int, SelectionRange > & alignment_x_relative_ranges() const
void PPSAlignmentConfiguration::setAlignment_y_ranges ( std::map< unsigned int, SelectionRange > &  alignment_y_ranges)

Definition at line 120 of file PPSAlignmentConfiguration.cc.

References alignment_y_ranges(), and alignment_y_ranges_.

121  {
123 }
const std::map< unsigned int, SelectionRange > & alignment_y_ranges() const
std::map< unsigned int, SelectionRange > alignment_y_ranges_
void PPSAlignmentConfiguration::setBinning ( PPSAlignmentConfiguration::Binning binning)

Definition at line 129 of file PPSAlignmentConfiguration.cc.

References binning(), and binning_.

void PPSAlignmentConfiguration::setChiSqThreshold ( double  chiSqThreshold)
void PPSAlignmentConfiguration::setExtraParams ( std::vector< double > &  extraParams)

Definition at line 131 of file PPSAlignmentConfiguration.cc.

References extraParams(), and extraParams_.

const std::vector< double > & extraParams() const
void PPSAlignmentConfiguration::setFitProfileMinBinEntries ( unsigned int  fitProfileMinBinEntries)
void PPSAlignmentConfiguration::setFitProfileMinNReasonable ( unsigned int  fitProfileMinNReasonable)
void PPSAlignmentConfiguration::setMatchingReferencePoints ( std::map< unsigned int, std::vector< PointErrors >> &  matchingReferencePoints)

Definition at line 90 of file PPSAlignmentConfiguration.cc.

References matchingReferencePoints(), and matchingReferencePoints_.

91  {
93 }
const std::map< unsigned int, std::vector< PointErrors > > & matchingReferencePoints() const
std::map< unsigned int, std::vector< PointErrors > > matchingReferencePoints_
void PPSAlignmentConfiguration::setMatchingShiftRanges ( std::map< unsigned int, SelectionRange > &  matchingShiftRanges)

Definition at line 94 of file PPSAlignmentConfiguration.cc.

References matchingShiftRanges(), and matchingShiftRanges_.

95  {
97 }
std::map< unsigned int, SelectionRange > matchingShiftRanges_
const std::map< unsigned int, SelectionRange > & matchingShiftRanges() const
void PPSAlignmentConfiguration::setMaxRPTracksSize ( unsigned int  maxRPTracksSize)
void PPSAlignmentConfiguration::setMethOGraphMinN ( unsigned int  methOGraphMinN)
void PPSAlignmentConfiguration::setMethOUncFitRange ( double  methOUncFitRange)
void PPSAlignmentConfiguration::setMinRPTracksSize ( unsigned int  minRPTracksSize)
void PPSAlignmentConfiguration::setModeGraphMinN ( unsigned int  modeGraphMinN)
void PPSAlignmentConfiguration::setMultSelProjYMinEntries ( unsigned int  multSelProjYMinEntries)
void PPSAlignmentConfiguration::setN_si ( double  n_si)

Definition at line 88 of file PPSAlignmentConfiguration.cc.

References n_si(), and n_si_.

void PPSAlignmentConfiguration::setNearFarMinEntries ( unsigned int  nearFarMinEntries)

Definition at line 116 of file PPSAlignmentConfiguration.cc.

References nearFarMinEntries(), and nearFarMinEntries_.

void PPSAlignmentConfiguration::setSectorConfig45 ( PPSAlignmentConfiguration::SectorConfig sectorConfig45)

Definition at line 70 of file PPSAlignmentConfiguration.cc.

References sectorConfig45(), and sectorConfig45_.

70  {
72 }
const SectorConfig & sectorConfig45() const
void PPSAlignmentConfiguration::setSectorConfig56 ( PPSAlignmentConfiguration::SectorConfig sectorConfig56)

Definition at line 73 of file PPSAlignmentConfiguration.cc.

References sectorConfig56(), and sectorConfig56_.

73  {
75 }
const SectorConfig & sectorConfig56() const
void PPSAlignmentConfiguration::setX_ali_sh_step ( double  x_ali_sh_step)
void PPSAlignmentConfiguration::setY_mode_max_valid ( double  y_mode_max_valid)
void PPSAlignmentConfiguration::setY_mode_sys_unc ( double  y_mode_sys_unc)
void PPSAlignmentConfiguration::setY_mode_unc_max_valid ( double  y_mode_unc_max_valid)
double PPSAlignmentConfiguration::x_ali_sh_step ( ) const
double PPSAlignmentConfiguration::y_mode_max_valid ( ) const
double PPSAlignmentConfiguration::y_mode_sys_unc ( ) const
double PPSAlignmentConfiguration::y_mode_unc_max_valid ( ) const

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 192 of file PPSAlignmentConfiguration.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 192 of file PPSAlignmentConfiguration.h.

std::ostream& operator<< ( std::ostream &  os,
const PPSAlignmentConfiguration c 
)
friend

Definition at line 179 of file PPSAlignmentConfiguration.cc.

179  {
180  os << "* " << c.sectorConfig45_ << "\n\n";
181  os << "* " << c.sectorConfig56_ << "\n\n";
182 
183  std::map<unsigned int, std::string> rpTags = {{c.sectorConfig45_.rp_F_.id_, c.sectorConfig45_.rp_F_.name_},
187 
188  os << "* x alignment shift step\n";
189  os << " x_ali_sh_step = " << c.x_ali_sh_step_ << "\n\n";
190 
191  os << "* mode graph parameters\n";
192  os << " y_mode_sys_unc = " << c.y_mode_sys_unc_ << "\n";
193  os << " chiSqThreshold = " << c.chiSqThreshold_ << "\n";
194  os << " y_mode_unc_max_valid = " << c.y_mode_unc_max_valid_ << "\n";
195  os << " y_mode_max_valid = " << c.y_mode_max_valid_ << "\n\n";
196 
197  os << "* selection\n";
198  os << " min_RP_tracks_size = " << c.minRPTracksSize_ << "\n";
199  os << " max_RP_tracks_size = " << c.maxRPTracksSize_ << "\n\n";
200 
201  os << "* cuts\n";
202  os << " n_si = " << c.n_si_ << "\n\n";
203 
204  os << "* matching\n" << std::setprecision(3);
205 
206  os << " shift ranges:\n";
207  for (const auto& p : c.matchingShiftRanges_)
208  os << " RP " << rpTags[p.first] << " (" << std::setw(3) << p.first << "): sh_min = " << p.second.x_min_
209  << ", sh_max = " << p.second.x_max_ << "\n";
210 
211  os << " reference points:\n";
212  for (const auto& pm : c.matchingReferencePoints_) {
213  os << " " << std::setw(3) << pm.first << ": ";
214  for (unsigned int i = 0; i < pm.second.size(); i++) {
215  const auto& p = pm.second[i];
216  if (i % 5 == 0 && i > 0)
217  os << "\n ";
218  os << "(" << std::setw(6) << p.x_ << " +- " << p.ex_ << ", " << std::setw(6) << p.y_ << " +- " << p.ey_ << "), ";
219  }
220  os << "\n";
221  }
222 
223  os << "\n"
224  << "* alignment_x_meth_o\n";
225  for (const auto& p : c.alignment_x_meth_o_ranges_)
226  os << " RP " << rpTags[p.first] << " (" << std::setw(3) << p.first << "): sh_min = " << p.second.x_min_
227  << ", sh_max = " << p.second.x_max_ << "\n";
228  os << " fit_profile_min_bin_entries = " << c.fitProfileMinBinEntries_ << "\n";
229  os << " fit_profile_min_N_reasonable = " << c.fitProfileMinNReasonable_ << "\n";
230  os << " meth_o_graph_min_N = " << c.methOGraphMinN_ << "\n";
231  os << " meth_o_unc_fit_range = " << c.methOUncFitRange_ << "\n";
232 
233  os << "\n"
234  << "* alignment_x_relative\n";
235  for (const auto& p : c.alignment_x_relative_ranges_)
236  if (p.first == c.sectorConfig45_.rp_N_.id_ || p.first == c.sectorConfig56_.rp_N_.id_) { // only near RPs
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  }
240  os << " near_far_min_entries = " << c.nearFarMinEntries_ << "\n";
241 
242  os << "\n"
243  << "* alignment_y\n";
244  for (const auto& p : c.alignment_y_ranges_)
245  os << " RP " << rpTags[p.first] << " (" << std::setw(3) << p.first << "): sh_min = " << p.second.x_min_
246  << ", sh_max = " << p.second.x_max_ << "\n";
247  os << " mode_graph_min_N = " << c.modeGraphMinN_ << "\n";
248  os << " mult_sel_proj_y_min_entries = " << c.multSelProjYMinEntries_ << "\n";
249 
250  os << "\n"
251  << "* binning\n";
252  os << c.binning_ << "\n";
253 
254  if (!c.extraParams_.empty()) {
255  os << "\n";
256  os << "extra_params:\n";
257  for (size_t i = 0; i < c.extraParams_.size(); i++) {
258  os << std::setw(5) << i << ": " << c.extraParams_[i] << "\n";
259  }
260  }
261 
262  return os;
263 }
std::map< unsigned int, SelectionRange > alignment_x_relative_ranges_
std::map< unsigned int, SelectionRange > matchingShiftRanges_
std::map< unsigned int, std::vector< PointErrors > > matchingReferencePoints_
std::map< unsigned int, SelectionRange > alignment_x_meth_o_ranges_
std::map< unsigned int, SelectionRange > alignment_y_ranges_

Member Data Documentation

std::map<unsigned int, SelectionRange> PPSAlignmentConfiguration::alignment_x_meth_o_ranges_
private
std::map<unsigned int, SelectionRange> PPSAlignmentConfiguration::alignment_x_relative_ranges_
private
std::map<unsigned int, SelectionRange> PPSAlignmentConfiguration::alignment_y_ranges_
private
Binning PPSAlignmentConfiguration::binning_
private

Definition at line 188 of file PPSAlignmentConfiguration.h.

Referenced by binning(), operator<<(), and setBinning().

double PPSAlignmentConfiguration::chiSqThreshold_
private

Definition at line 164 of file PPSAlignmentConfiguration.h.

Referenced by chiSqThreshold(), operator<<(), and setChiSqThreshold().

std::vector<double> PPSAlignmentConfiguration::extraParams_
private

Definition at line 190 of file PPSAlignmentConfiguration.h.

Referenced by extraParams(), operator<<(), and setExtraParams().

unsigned int PPSAlignmentConfiguration::fitProfileMinBinEntries_
private
unsigned int PPSAlignmentConfiguration::fitProfileMinNReasonable_
private
std::map<unsigned int, std::vector<PointErrors> > PPSAlignmentConfiguration::matchingReferencePoints_
private
std::map<unsigned int, SelectionRange> PPSAlignmentConfiguration::matchingShiftRanges_
private
unsigned int PPSAlignmentConfiguration::maxRPTracksSize_
private

Definition at line 169 of file PPSAlignmentConfiguration.h.

Referenced by maxRPTracksSize(), operator<<(), and setMaxRPTracksSize().

unsigned int PPSAlignmentConfiguration::methOGraphMinN_
private

Definition at line 178 of file PPSAlignmentConfiguration.h.

Referenced by methOGraphMinN(), operator<<(), and setMethOGraphMinN().

double PPSAlignmentConfiguration::methOUncFitRange_
private

Definition at line 179 of file PPSAlignmentConfiguration.h.

Referenced by methOUncFitRange(), operator<<(), and setMethOUncFitRange().

unsigned int PPSAlignmentConfiguration::minRPTracksSize_
private

Definition at line 168 of file PPSAlignmentConfiguration.h.

Referenced by minRPTracksSize(), operator<<(), and setMinRPTracksSize().

unsigned int PPSAlignmentConfiguration::modeGraphMinN_
private

Definition at line 185 of file PPSAlignmentConfiguration.h.

Referenced by modeGraphMinN(), operator<<(), and setModeGraphMinN().

unsigned int PPSAlignmentConfiguration::multSelProjYMinEntries_
private
double PPSAlignmentConfiguration::n_si_
private

Definition at line 170 of file PPSAlignmentConfiguration.h.

Referenced by n_si(), operator<<(), and setN_si().

unsigned int PPSAlignmentConfiguration::nearFarMinEntries_
private
SectorConfig PPSAlignmentConfiguration::sectorConfig45_
private

Definition at line 159 of file PPSAlignmentConfiguration.h.

Referenced by operator<<(), sectorConfig45(), and setSectorConfig45().

SectorConfig PPSAlignmentConfiguration::sectorConfig56_
private

Definition at line 159 of file PPSAlignmentConfiguration.h.

Referenced by operator<<(), sectorConfig56(), and setSectorConfig56().

double PPSAlignmentConfiguration::x_ali_sh_step_
private

Definition at line 161 of file PPSAlignmentConfiguration.h.

Referenced by operator<<(), setX_ali_sh_step(), and x_ali_sh_step().

double PPSAlignmentConfiguration::y_mode_max_valid_
private

Definition at line 166 of file PPSAlignmentConfiguration.h.

Referenced by operator<<(), setY_mode_max_valid(), and y_mode_max_valid().

double PPSAlignmentConfiguration::y_mode_sys_unc_
private

Definition at line 163 of file PPSAlignmentConfiguration.h.

Referenced by operator<<(), setY_mode_sys_unc(), and y_mode_sys_unc().

double PPSAlignmentConfiguration::y_mode_unc_max_valid_
private