84 std::map<
unsigned int, std::vector<PointErrors>> &matchingReferencePoints) {
92 std::map<unsigned int, SelectionRange> &alignment_x_meth_o_ranges) {
105 std::map<unsigned int, SelectionRange> &alignment_x_relative_ranges) {
126 os <<
" " << rc.
name_ <<
", id = " << rc.
id_ <<
", position = " << rc.
position_ <<
":\n";
127 os <<
" slope = " << rc.
slope_ <<
", sh_x = " << rc.
sh_x_ <<
"\n";
131 os << std::setprecision(2);
139 os << sc.
name_ <<
":\n";
141 os << std::setprecision(3);
142 os <<
" slope = " << sc.
slope_ <<
"\n";
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_;
160 os <<
"* sequence\n";
161 for (
unsigned int i = 0;
i <
c.sequence_.size();
i++) {
162 os <<
" " <<
i + 1 <<
": " <<
c.sequence_[
i] <<
"\n";
166 if (
c.resultsDir_.empty()) {
167 os <<
"* no results file\n\n";
169 os <<
"* results file directory:\n";
170 os <<
" " <<
c.resultsDir_ <<
"\n\n";
173 os <<
"* " <<
c.sectorConfig45_ <<
"\n\n";
174 os <<
"* " <<
c.sectorConfig56_ <<
"\n\n";
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_}};
181 os <<
"* x alignment shift step\n";
182 os <<
" x_ali_sh_step = " <<
c.x_ali_sh_step_ <<
"\n\n";
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";
190 os <<
"* selection\n";
191 os <<
" max_RP_tracks_size = " <<
c.maxRPTracksSize_ <<
"\n\n";
194 os <<
" n_si = " <<
c.n_si_ <<
"\n\n";
196 os <<
"* matching\n" << std::setprecision(3);
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";
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)
210 os <<
"(" << std::setw(6) <<
p.x_ <<
" +- " <<
p.ex_ <<
", " << std::setw(6) <<
p.y_ <<
" +- " <<
p.ey_ <<
"), ";
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";
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";
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";
242 os <<
c.binning_ <<
"\n";
void setBinning(Binning &binning)
const Binning & binning() const
SectorConfig sectorConfig45_
unsigned int fitProfileMinNReasonable() const
const std::map< unsigned int, SelectionRange > & alignment_x_relative_ranges() const
double maxRPTracksSize() const
const std::map< unsigned int, SelectionRange > & alignment_x_meth_o_ranges() const
double y_mode_unc_max_valid() const
unsigned int methOGraphMinN() const
void setMaxRPTracksSize(unsigned int maxRPTracksSize)
unsigned int multSelProjYMinEntries() const
const std::map< unsigned int, SelectionRange > & matchingShiftRanges() const
unsigned int modeGraphMinN() const
double chiSqThreshold() const
const std::vector< std::string > & sequence() const
unsigned int nearFarMinEntries() const
std::map< unsigned int, SelectionRange > alignment_x_meth_o_ranges_
void setSequence(std::vector< std::string > &sequence)
double x_ali_sh_step() const
std::map< unsigned int, SelectionRange > alignment_x_relative_ranges_
void setFitProfileMinBinEntries(unsigned int fitProfileMinBinEntries)
SectorConfig sectorConfig56_
std::vector< std::string > sequence_
double y_mode_sys_unc() const
unsigned int fitProfileMinBinEntries_
double methOUncFitRange() const
std::map< unsigned int, SelectionRange > alignment_y_ranges_
void setY_mode_unc_max_valid(double y_mode_unc_max_valid)
const std::string & resultsDir() const
unsigned int methOGraphMinN_
unsigned int fitProfileMinNReasonable_
void setChiSqThreshold(double chiSqThreshold)
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 setNearFarMinEntries(unsigned int nearFarMinEntries)
void setMatchingReferencePoints(std::map< unsigned int, std::vector< PointErrors >> &matchingReferencePoints)
std::map< unsigned int, std::vector< PointErrors > > matchingReferencePoints_
void setFitProfileMinNReasonable(unsigned int fitProfileMinNReasonable)
double y_mode_unc_max_valid_
unsigned int fitProfileMinBinEntries() const
void setMultSelProjYMinEntries(unsigned int multSelProjYMinEntries)
std::ostream & operator<<(std::ostream &os, RPConfig &rc)
void setResultsDir(std::string &resultsDir)
void setAlignment_x_meth_o_ranges(std::map< unsigned int, SelectionRange > &alignment_x_meth_o_ranges)
void setMatchingShiftRanges(std::map< unsigned int, SelectionRange > &matchingShiftRanges)
void setY_mode_sys_unc(double y_mode_sys_unc)
void setY_mode_max_valid(double y_mode_max_valid)
std::map< unsigned int, SelectionRange > matchingShiftRanges_
const SectorConfig & sectorConfig45() const
void setMethOGraphMinN(unsigned int methOGraphMinN)
unsigned int nearFarMinEntries_
void setMethOUncFitRange(double methOUncFitRange)
void setSectorConfig45(SectorConfig §orConfig45)
void setX_ali_sh_step(double x_ali_sh_step)
unsigned int maxRPTracksSize_
const std::map< unsigned int, SelectionRange > & alignment_y_ranges() const
const SectorConfig & sectorConfig56() const
void setModeGraphMinN(unsigned int modeGraphMinN)
double y_mode_max_valid() const
unsigned int multSelProjYMinEntries_
void setN_si(double n_si)
unsigned int modeGraphMinN_
void setSectorConfig56(SectorConfig §orConfig56)
const std::map< unsigned int, std::vector< PointErrors > > & matchingReferencePoints() const