#include <LA_Filler_Fitter.h>
Classes | |
struct | EnsembleSummary |
struct | Result |
Public Types | |
enum | Method { WIDTH =1<<0, FIRST_METHOD =1<<0, PROB1 =1<<1, AVGV2 =1<<2, AVGV3 =1<<3, RMSV2 =1<<4, RMSV3 =1<<5, LAST_METHOD =1<<5 } |
Public Member Functions | |
poly< std::string > | allAndOne (const unsigned width) const |
void | fill (TTree *, Book &) const |
void | fill_one_cluster (Book &, const poly< std::string > &, const unsigned, const float, const float, const float, const float) const |
poly< std::string > | granularity (const SiStripDetId, const float, const Long64_t, const float, const unsigned) const |
LA_Filler_Fitter (int methods, int M, int N, double low, double up, unsigned max, const TrackerTopology *tTopo) | |
LA_Filler_Fitter (int methods, bool layer, bool module, float localybin, unsigned stripbin, unsigned max, const TrackerTopology *tTopo) | |
std::string | layerLabel (const SiStripDetId) const |
void | summarize_ensembles (Book &) const |
poly< std::string > | varWidth (const unsigned width) const |
Static Public Member Functions | |
static std::map< std::string, std::vector< Result > > | ensemble_results (const Book &, const Method) |
static std::map< std::string, std::vector< EnsembleSummary > > | ensemble_summary (const Book &) |
static unsigned | find_rebin (const TH1 *const) |
static void | fit (Book &book) |
static void | fit_width_profile (Book &) |
static unsigned | layer_index (bool TIB, bool stereo, unsigned layer) |
static std::map< std::string, Result > | layer_results (const Book &, const Method) |
static void | make_and_fit_symmchi2 (Book &) |
static std::string | method (Method m, bool fit=true) |
static std::map< uint32_t, Result > | module_results (const Book &, const Method) |
static std::string | moduleLabel (const SiStripDetId) |
static std::pair< std::pair< float, float >, std::pair< float, float > > | offset_slope (const std::vector< EnsembleSummary > &) |
static float | pull (const std::vector< EnsembleSummary > &) |
static Result | result (Method, const std::string name, const Book &) |
static TH1 * | rms_profile (const std::string, const TProfile *const) |
static std::string | subdetLabel (const SiStripDetId) |
static TH1 * | subset_probability (const std::string name, const TH1 *const , const TH1 *const ) |
Private Attributes | |
const bool | byLayer_ |
const bool | byModule_ |
const int | ensembleBins_ |
const double | ensembleLow_ |
const int | ensembleSize_ |
const double | ensembleUp_ |
const float | localYbin_ |
const Long64_t | maxEvents_ |
const int | methods_ |
const unsigned | stripsPerBin_ |
const TrackerTopology * | tTopo_ |
Definition at line 14 of file LA_Filler_Fitter.h.
Enumerator | |
---|---|
WIDTH | |
FIRST_METHOD | |
PROB1 | |
AVGV2 | |
AVGV3 | |
RMSV2 | |
RMSV3 | |
LAST_METHOD |
Definition at line 40 of file LA_Filler_Fitter.h.
|
inline |
Definition at line 19 of file LA_Filler_Fitter.h.
|
inline |
Definition at line 30 of file LA_Filler_Fitter.h.
poly< std::string > LA_Filler_Fitter::allAndOne | ( | const unsigned | width | ) | const |
Definition at line 61 of file LA_Filler.cc.
References varWidth().
Referenced by LA_Filler_Fitter::EnsembleSummary::EnsembleSummary(), and fill_one_cluster().
|
static |
Definition at line 73 of file LA_Results.cc.
References Book::begin(), Book::end(), method(), dataset::name, result(), mps_update::results, AlCaHLTBitMon_QueryRunRegistry::string, and summarize_ensembles().
Referenced by fit(), layer_results(), and summarize_ensembles().
|
static |
Definition at line 107 of file LA_Results.cc.
References runEdmFileComparison::base, Book::begin(), Book::end(), LA_Filler_Fitter::EnsembleSummary::meanMeasured, LA_Filler_Fitter::EnsembleSummary::meanUncertainty, dataset::name, offset_slope(), LA_Filler_Fitter::EnsembleSummary::pull, pull(), alignCSCRings::s, LA_Filler_Fitter::EnsembleSummary::samples, LA_Filler_Fitter::EnsembleSummary::sigmaMeasured, AlCaHLTBitMon_QueryRunRegistry::string, heppy_report::summary, and LA_Filler_Fitter::EnsembleSummary::truth.
Referenced by fit(), summarize_ensembles(), and sistrip::EnsembleCalibrationLA::write_ensembles_text().
void LA_Filler_Fitter::fill | ( | TTree * | tree, |
Book & | book | ||
) | const |
Definition at line 9 of file LA_Filler.cc.
References funct::cos(), ensembleBins_, fill_one_cluster(), granularity(), mps_fire::i, localYbin_, maxEvents_, N, Validation_hcalonly_cfi::sign, stripsPerBin_, SiStripDetId::subDetector(), edm::swap(), funct::tan(), SiStripDetId::TIB, and SiStripDetId::TOB.
Referenced by sistrip::EnsembleCalibrationLA::endJob(), LA_Filler_Fitter::EnsembleSummary::EnsembleSummary(), and sistrip::MeasureLA::MeasureLA().
void LA_Filler_Fitter::fill_one_cluster | ( | Book & | book, |
const poly< std::string > & | gran, | ||
const unsigned | width, | ||
const float | variance, | ||
const float | tthetaL, | ||
const float | tthetaT, | ||
const float | BdotY | ||
) | const |
Definition at line 46 of file LA_Filler.cc.
References allAndOne(), ensembleBins_, Book::fill(), method(), methods_, varWidth(), and WIDTH.
Referenced by LA_Filler_Fitter::EnsembleSummary::EnsembleSummary(), and fill().
|
static |
Definition at line 81 of file LA_Fitter.cc.
References begin, end, mps_fire::i, hpstanc_transforms::max, RecoTauDiscriminantConfiguration::mean, min(), RecoTauDiscriminantConfiguration::rms, and rms_profile().
Referenced by fit(), and make_and_fit_symmchi2().
|
inlinestatic |
Definition at line 89 of file LA_Filler_Fitter.h.
References ensemble_results(), ensemble_summary(), find_rebin(), fit_width_profile(), layer_results(), make_and_fit_symmchi2(), module_results(), dataset::name, offset_slope(), pull(), result(), rms_profile(), AlCaHLTBitMon_QueryRunRegistry::string, subset_probability(), and summarize_ensembles().
Referenced by sistrip::EnsembleCalibrationLA::endJob(), sistrip::MeasureLA::MeasureLA(), and trackingPlots.Iteration::modules().
|
static |
Definition at line 10 of file LA_Fitter.cc.
References Book::begin(), Book::end(), Book::erase(), make_and_fit_symmchi2(), hpstanc_transforms::max, method(), min(), AlCaHLTBitMon_ParallelJobs::p, and WIDTH.
Referenced by fit().
poly< std::string > LA_Filler_Fitter::granularity | ( | const SiStripDetId | detid, |
const float | tthetaL, | ||
const Long64_t | TFE_index, | ||
const float | localy, | ||
const unsigned | apvstrip | ||
) | const |
Definition at line 73 of file LA_Filler.cc.
References funct::abs(), byLayer_, byModule_, ensembleBins_, ensembleLow_, ensembleSize_, ensembleUp_, layerLabel(), localYbin_, moduleLabel(), AlCaHLTBitMon_QueryRunRegistry::string, stripsPerBin_, and subdetLabel().
Referenced by LA_Filler_Fitter::EnsembleSummary::EnsembleSummary(), fill(), and varWidth().
|
inlinestatic |
Definition at line 86 of file LA_Filler_Fitter.h.
Referenced by sistrip::MeasureLA::calibration_key(), and sistrip::EnsembleCalibrationLA::write_ensembles_text().
|
static |
Definition at line 63 of file LA_Results.cc.
References Book::begin(), Book::end(), ensemble_results(), method(), dataset::name, result(), mps_update::results, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by fit(), module_results(), and sistrip::MeasureLA::process_reports().
std::string LA_Filler_Fitter::layerLabel | ( | const SiStripDetId | detid | ) | const |
Definition at line 93 of file LA_Filler.cc.
References DetId::subdetId(), subdetLabel(), StripSubdetector::TIB, TrackerTopology::tibLayer(), TrackerTopology::tibStereo(), TrackerTopology::tobLayer(), TrackerTopology::tobStereo(), and tTopo_.
Referenced by LA_Filler_Fitter::EnsembleSummary::EnsembleSummary(), granularity(), moduleLabel(), and sistrip::MeasureLA::summarize_module_muH_byLayer().
|
static |
Definition at line 34 of file LA_Fitter.cc.
References Vispa.Plugins.EdmBrowser.EdmDataAccessor::all(), AVGV2, AVGV3, runEdmFileComparison::base, Book::begin(), create_public_pileup_plots::bins, Book::book(), HiEvtPlane_cfi::chi2, Book::end(), Book::find(), find_rebin(), create_public_lumi_plots::hist, hpstanc_transforms::max, method(), PROB1, rms_profile(), RMSV2, RMSV3, AlCaHLTBitMon_QueryRunRegistry::string, subset_probability(), and SymmetryFit::symmetryChi2().
Referenced by fit(), and fit_width_profile().
|
inlinestatic |
Definition at line 47 of file LA_Filler_Fitter.h.
References AVGV2, AVGV3, SymmetryFit::name(), PROB1, RMSV2, RMSV3, and WIDTH.
Referenced by ensemble_results(), fill_one_cluster(), fit_width_profile(), layer_results(), make_and_fit_symmchi2(), module_results(), result(), sistrip::MeasureLA::summarize_module_muH_byLayer(), varWidth(), sistrip::MeasureLA::write_report_plots(), and sistrip::MeasureLA::write_report_text_ms().
|
static |
Definition at line 51 of file LA_Results.cc.
References Book::begin(), Book::end(), layer_results(), method(), result(), mps_update::results, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by fit(), sistrip::MeasureLA::process_reports(), result(), and sistrip::MeasureLA::summarize_module_muH_byLayer().
|
static |
Definition at line 91 of file LA_Filler.cc.
References layerLabel(), AlCaHLTBitMon_QueryRunRegistry::string, and subdetLabel().
Referenced by LA_Filler_Fitter::EnsembleSummary::EnsembleSummary(), granularity(), and subdetLabel().
|
static |
Definition at line 132 of file LA_Results.cc.
References MessageLogger_cfi::cerr, MillePedeFileConverter_cfg::e, LA_Filler_Fitter::EnsembleSummary::meanMeasured, pull(), LA_Filler_Fitter::EnsembleSummary::truth, x, and y.
Referenced by ensemble_summary(), fit(), and sistrip::EnsembleCalibrationLA::write_ensembles_text().
|
static |
Definition at line 156 of file LA_Results.cc.
References AlCaHLTBitMon_ParallelJobs::p, funct::pow(), LA_Filler_Fitter::EnsembleSummary::pull, and w.
Referenced by ensemble_summary(), fit(), offset_slope(), and sistrip::EnsembleCalibrationLA::write_ensembles_text().
|
static |
Definition at line 14 of file LA_Results.cc.
References AVGV2, AVGV3, runEdmFileComparison::base, LA_Filler_Fitter::Result::chi2, LA_Filler_Fitter::Result::entries, f, LA_Filler_Fitter::Result::field, LA_Filler_Fitter::Result::measured, method(), module_results(), dataset::name, LA_Filler_Fitter::Result::ndof, AlCaHLTBitMon_ParallelJobs::p, PROB1, LA_Filler_Fitter::Result::reco, RMSV2, RMSV3, AlCaHLTBitMon_QueryRunRegistry::string, and WIDTH.
Referenced by ensemble_results(), fit(), layer_results(), and module_results().
|
static |
Definition at line 95 of file LA_Fitter.cc.
References create_public_pileup_plots::bins, mps_fire::i, RecoTauDiscriminantConfiguration::rms, mathSSE::sqrt(), and subset_probability().
Referenced by find_rebin(), fit(), and make_and_fit_symmchi2().
|
static |
Definition at line 89 of file LA_Filler.cc.
References moduleLabel(), AlCaHLTBitMon_QueryRunRegistry::string, SiStripDetId::subDetector(), and SiStripDetId::TOB.
Referenced by LA_Filler_Fitter::EnsembleSummary::EnsembleSummary(), granularity(), layerLabel(), and moduleLabel().
|
static |
Definition at line 108 of file LA_Fitter.cc.
References TtFullHadDaughter::B, create_public_pileup_plots::bins, mps_fire::i, AlCaHLTBitMon_ParallelJobs::p, TtFullHadEvtBuilder_cfi::prob, alignCSCRings::s, and mathSSE::sqrt().
Referenced by fit(), make_and_fit_symmchi2(), and rms_profile().
void LA_Filler_Fitter::summarize_ensembles | ( | Book & | book | ) | const |
Definition at line 83 of file LA_Results.cc.
References ensemble_results(), ensemble_summary(), ensembleBins_, ensembleLow_, ensembleUp_, Book::fill(), FIRST_METHOD, g, edmIntegrityCheck::group, LAST_METHOD, funct::m, LA_Filler_Fitter::Result::measured, methods_, dataset::name, AlCaHLTBitMon_ParallelJobs::p, LA_Filler_Fitter::Result::reco, mps_update::results, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by sistrip::EnsembleCalibrationLA::endJob(), ensemble_results(), and fit().
poly< std::string > LA_Filler_Fitter::varWidth | ( | const unsigned | width | ) | const |
Definition at line 65 of file LA_Filler.cc.
References AVGV2, AVGV3, granularity(), method(), methods_, RMSV2, and RMSV3.
Referenced by allAndOne(), LA_Filler_Fitter::EnsembleSummary::EnsembleSummary(), and fill_one_cluster().
|
private |
Definition at line 110 of file LA_Filler_Fitter.h.
Referenced by granularity().
|
private |
Definition at line 110 of file LA_Filler_Fitter.h.
Referenced by granularity().
|
private |
Definition at line 108 of file LA_Filler_Fitter.h.
Referenced by fill(), fill_one_cluster(), granularity(), and summarize_ensembles().
|
private |
Definition at line 109 of file LA_Filler_Fitter.h.
Referenced by granularity(), and summarize_ensembles().
|
private |
Definition at line 108 of file LA_Filler_Fitter.h.
Referenced by granularity().
|
private |
Definition at line 109 of file LA_Filler_Fitter.h.
Referenced by granularity(), and summarize_ensembles().
|
private |
Definition at line 111 of file LA_Filler_Fitter.h.
Referenced by fill(), and granularity().
|
private |
Definition at line 113 of file LA_Filler_Fitter.h.
Referenced by fill().
|
private |
Definition at line 114 of file LA_Filler_Fitter.h.
Referenced by fill_one_cluster(), summarize_ensembles(), and varWidth().
|
private |
Definition at line 112 of file LA_Filler_Fitter.h.
Referenced by fill(), and granularity().
|
private |
Definition at line 115 of file LA_Filler_Fitter.h.
Referenced by layerLabel().