33 const std::map<unsigned int, std::vector<PPSAlignmentConfiguration::PointErrors>>&
37 const std::map<unsigned int, PPSAlignmentConfiguration::SelectionRange>&
42 const std::map<unsigned int, PPSAlignmentConfiguration::SelectionRange>&
51 const std::map<unsigned int, PPSAlignmentConfiguration::SelectionRange>&
91 std::map<
unsigned int, std::vector<PPSAlignmentConfiguration::PointErrors>>& matchingReferencePoints) {
95 std::map<unsigned int, PPSAlignmentConfiguration::SelectionRange>& matchingShiftRanges) {
100 std::map<unsigned int, PPSAlignmentConfiguration::SelectionRange>& alignment_x_meth_o_ranges) {
113 std::map<unsigned int, PPSAlignmentConfiguration::SelectionRange>& alignment_x_relative_ranges) {
121 std::map<unsigned int, PPSAlignmentConfiguration::SelectionRange>& alignment_y_ranges) {
137 os <<
" " << rc.
name_ <<
", id = " << rc.
id_ <<
", position = " << rc.
position_ <<
":\n";
138 os <<
" slope = " << rc.
slope_ <<
", sh_x = " << rc.
sh_x_ <<
"\n";
142 os << std::setprecision(2);
150 os << sc.
name_ <<
":\n";
152 os << std::setprecision(3);
153 os <<
" slope = " << sc.
slope_ <<
"\n";
163 os <<
" bin_size_x = " <<
b.bin_size_x_ <<
", n_bins_x = " <<
b.n_bins_x_ <<
"\n";
164 os <<
" pixel_x_offset = " <<
b.pixel_x_offset_ <<
"\n";
165 os <<
" n_bins_y = " <<
b.n_bins_y_ <<
", y_min = " <<
b.y_min_ <<
", y_max = " <<
b.y_max_ <<
"\n";
166 os <<
" diff far-near:" 168 os <<
" n_bins_x = " <<
b.diffFN_n_bins_x_ <<
", x_min = " <<
b.diffFN_x_min_
169 <<
", x_max = " <<
b.diffFN_x_max_ <<
"\n";
170 os <<
" slice plots:" 172 os <<
" n_bins_x = " <<
b.slice_n_bins_x_ <<
", x_min = " <<
b.slice_x_min_ <<
", x_max = " <<
b.slice_x_max_
174 os <<
" n_bins_y = " <<
b.slice_n_bins_y_ <<
", y_min = " <<
b.slice_y_min_ <<
", y_max = " <<
b.slice_y_max_;
180 os <<
"* " <<
c.sectorConfig45_ <<
"\n\n";
181 os <<
"* " <<
c.sectorConfig56_ <<
"\n\n";
183 std::map<unsigned int, std::string> rpTags = {{
c.sectorConfig45_.rp_F_.id_,
c.sectorConfig45_.rp_F_.name_},
184 {
c.sectorConfig45_.rp_N_.id_,
c.sectorConfig45_.rp_N_.name_},
185 {
c.sectorConfig56_.rp_N_.id_,
c.sectorConfig56_.rp_N_.name_},
186 {
c.sectorConfig56_.rp_F_.id_,
c.sectorConfig56_.rp_F_.name_}};
188 os <<
"* x alignment shift step\n";
189 os <<
" x_ali_sh_step = " <<
c.x_ali_sh_step_ <<
"\n\n";
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";
197 os <<
"* selection\n";
198 os <<
" min_RP_tracks_size = " <<
c.minRPTracksSize_ <<
"\n";
199 os <<
" max_RP_tracks_size = " <<
c.maxRPTracksSize_ <<
"\n\n";
202 os <<
" n_si = " <<
c.n_si_ <<
"\n\n";
204 os <<
"* matching\n" << std::setprecision(3);
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";
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)
218 os <<
"(" << std::setw(6) <<
p.x_ <<
" +- " <<
p.ex_ <<
", " << std::setw(6) <<
p.y_ <<
" +- " <<
p.ey_ <<
"), ";
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";
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_) {
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";
240 os <<
" near_far_min_entries = " <<
c.nearFarMinEntries_ <<
"\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";
252 os <<
c.binning_ <<
"\n";
254 if (!
c.extraParams_.empty()) {
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";
unsigned int maxRPTracksSize_
const std::map< unsigned int, SelectionRange > & alignment_x_meth_o_ranges() const
void setSectorConfig56(SectorConfig §orConfig56)
void setMethOGraphMinN(unsigned int methOGraphMinN)
unsigned int nearFarMinEntries_
double y_mode_sys_unc() const
const std::map< unsigned int, SelectionRange > & alignment_y_ranges() const
void setFitProfileMinNReasonable(unsigned int fitProfileMinNReasonable)
double chiSqThreshold() const
double y_mode_max_valid() const
std::map< unsigned int, SelectionRange > alignment_x_relative_ranges_
const std::map< unsigned int, SelectionRange > & matchingShiftRanges() const
std::map< unsigned int, SelectionRange > matchingShiftRanges_
void setY_mode_unc_max_valid(double y_mode_unc_max_valid)
void setAlignment_x_relative_ranges(std::map< unsigned int, SelectionRange > &alignment_x_relative_ranges)
double maxRPTracksSize() const
void setY_mode_max_valid(double y_mode_max_valid)
unsigned int methOGraphMinN_
void setAlignment_y_ranges(std::map< unsigned int, SelectionRange > &alignment_y_ranges)
unsigned int fitProfileMinBinEntries_
double minRPTracksSize() const
unsigned int multSelProjYMinEntries() const
const SectorConfig & sectorConfig45() const
void setMatchingReferencePoints(std::map< unsigned int, std::vector< PointErrors >> &matchingReferencePoints)
const std::map< unsigned int, std::vector< PointErrors > > & matchingReferencePoints() const
void setMatchingShiftRanges(std::map< unsigned int, SelectionRange > &matchingShiftRanges)
std::vector< double > extraParams_
unsigned int minRPTracksSize_
void setFitProfileMinBinEntries(unsigned int fitProfileMinBinEntries)
const Binning & binning() const
void setNearFarMinEntries(unsigned int nearFarMinEntries)
std::map< unsigned int, std::vector< PointErrors > > matchingReferencePoints_
void setAlignment_x_meth_o_ranges(std::map< unsigned int, SelectionRange > &alignment_x_meth_o_ranges)
double methOUncFitRange() const
void setMultSelProjYMinEntries(unsigned int multSelProjYMinEntries)
void setX_ali_sh_step(double x_ali_sh_step)
const std::map< unsigned int, SelectionRange > & alignment_x_relative_ranges() const
double y_mode_unc_max_valid_
std::map< unsigned int, SelectionRange > alignment_x_meth_o_ranges_
void setMethOUncFitRange(double methOUncFitRange)
unsigned int fitProfileMinNReasonable_
void setY_mode_sys_unc(double y_mode_sys_unc)
void setChiSqThreshold(double chiSqThreshold)
void setN_si(double n_si)
double x_ali_sh_step() const
const SectorConfig & sectorConfig56() const
SectorConfig sectorConfig45_
unsigned int modeGraphMinN() const
unsigned int modeGraphMinN_
SectorConfig sectorConfig56_
unsigned int methOGraphMinN() const
unsigned int fitProfileMinBinEntries() const
void setModeGraphMinN(unsigned int modeGraphMinN)
unsigned int fitProfileMinNReasonable() const
void setMinRPTracksSize(unsigned int minRPTracksSize)
void setBinning(Binning &binning)
void setSectorConfig45(SectorConfig §orConfig45)
void setExtraParams(std::vector< double > &extraParams)
std::map< unsigned int, SelectionRange > alignment_y_ranges_
unsigned int nearFarMinEntries() const
unsigned int multSelProjYMinEntries_
const std::vector< double > & extraParams() const
double y_mode_unc_max_valid() const
void setMaxRPTracksSize(unsigned int maxRPTracksSize)
std::ostream & operator<<(std::ostream &os, const PPSAlignmentConfiguration::RPConfig &rc)