#include <ZIterativeAlgorithmWithFit.h>
Classes | |
struct | ZIterativeAlgorithmWithFitPlots |
Public Member Functions | |
bool | addEvent (calib::CalibElectron *, calib::CalibElectron *, float) |
const std::vector< float > & | getEpsilonSum () const |
const ZIterativeAlgorithmWithFitPlots * | getHistos () const |
int | getNumberOfChannels () const |
int | getNumberOfIterations () const |
const std::vector< float > & | getOptimizedChiSquare () const |
const std::vector< float > & | getOptimizedCoefficients () const |
const std::vector< float > & | getOptimizedCoefficientsError () const |
const std::vector< int > & | getOptimizedIterations () const |
const std::vector< float > & | getWeightSum () const |
bool | iterate () |
ZIterativeAlgorithmWithFit & | operator= (const ZIterativeAlgorithmWithFit &r) |
Assignment operator. More... | |
bool | resetIteration () |
ZIterativeAlgorithmWithFit () | |
Default constructor. More... | |
ZIterativeAlgorithmWithFit (const edm::ParameterSet &ps) | |
Constructor with explicit iterations & exponent. More... | |
virtual | ~ZIterativeAlgorithmWithFit () |
Destructor. More... | |
Static Public Member Functions | |
static float | cosTheta12 (float Eta1, float Phi1, float Eta2, float Phi2) |
static void | gausfit (TH1F *histoou, double *par, double *errpar, float nsigmalow, float nsigmaup, double *mychi2, int *iterations) |
static float | invMassCalc (float Energy1, float Eta1, float Phi1, float Energy2, float Eta2, float Phi2) |
Private Member Functions | |
void | addWeightsCorrections (unsigned int event_id) |
void | bookHistograms () |
float | getEventWeight (unsigned int event_id) |
void | getStatWeights (const std::string &file) |
void | getWeight (unsigned int evid, std::pair< calib::CalibElectron *, calib::CalibElectron *>, float) |
void | getWeight (unsigned int evid, calib::CalibElectron *ele, float) |
void | recalculateMasses () |
void | recalculateWeightsEnergies () |
void | recalculateWeightsEnergies (calib::CalibElectron *electron) |
Private Attributes | |
std::vector< float > | calib_fac_ |
TString | calibType_ |
unsigned int | channels_ |
unsigned int | currentEvent_ |
unsigned int | currentIteration_ |
std::vector< std::pair< calib::CalibElectron *, calib::CalibElectron * > > | electrons_ |
std::vector< float > | Event_Weight_ |
std::string | massMethod |
std::vector< float > | massReco_ |
int | nCrystalCut_ |
unsigned int | numberOfIterations_ |
std::vector< float > | optimizedChiSquare_ |
std::vector< float > | optimizedCoefficients_ |
std::vector< float > | optimizedCoefficientsError_ |
std::vector< int > | optimizedIterations_ |
std::vector< float > | StatWeights_ |
ZIterativeAlgorithmWithFitPlots * | thePlots_ |
unsigned int | totalEvents_ |
bool | UseStatWeights_ |
std::vector< float > | weight_sum_ |
std::string | WeightFileName_ |
Static Private Attributes | |
static const double | M_Z_ = 91.187 |
Class that implements an iterative in situ calibration algorithm using Z events
Author: paolo .mer idian i@ro ma1.i nfn. it
Definition at line 28 of file ZIterativeAlgorithmWithFit.h.
ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFit | ( | ) |
Default constructor.
Definition at line 46 of file ZIterativeAlgorithmWithFit.cc.
References calib_fac_, channels_, currentEvent_, currentIteration_, electrons_, massReco_, numberOfIterations_, optimizedChiSquare_, optimizedCoefficients_, optimizedCoefficientsError_, optimizedIterations_, totalEvents_, and weight_sum_.
ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFit | ( | const edm::ParameterSet & | ps | ) |
Constructor with explicit iterations & exponent.
Definition at line 63 of file ZIterativeAlgorithmWithFit.cc.
References bookHistograms(), calib_fac_, calibType_, channels_, gather_cfg::cout, currentEvent_, currentIteration_, EcalIndexingTools::getInstance(), EcalIndexingTools::getNumberOfChannels(), getStatWeights(), edm::ParameterSet::getUntrackedParameter(), massMethod, EcalRingCalibrationTools::N_MODULES_BARREL, EcalRingCalibrationTools::N_RING_TOTAL, nCrystalCut_, numberOfIterations_, optimizedChiSquare_, optimizedCoefficients_, optimizedCoefficientsError_, optimizedIterations_, StatWeights_, AlCaHLTBitMon_QueryRunRegistry::string, thePlots_, totalEvents_, UseStatWeights_, weight_sum_, and WeightFileName_.
|
virtual |
bool ZIterativeAlgorithmWithFit::addEvent | ( | calib::CalibElectron * | ele1, |
calib::CalibElectron * | ele2, | ||
float | invMassRescFactor | ||
) |
Definition at line 250 of file ZIterativeAlgorithmWithFit.cc.
References gather_cfg::cout, currentEvent_, HLTTauDQMOffline_cfi::Electrons, reco::LeafCandidate::eta(), calib::CalibElectron::getRecoElectron(), getWeight(), invMassCalc(), massMethod, massReco_, reco::LeafCandidate::phi(), reco::GsfElectron::superCluster(), and totalEvents_.
Referenced by ZeeCalibration::duringLoop().
|
private |
|
private |
Definition at line 111 of file ZIterativeAlgorithmWithFit.cc.
References channels_, HltBtagPostValidation_cff::histoName, testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, MAX_RESCALE, MIN_RESCALE, NBINS_HIGHETA, NBINS_LOWETA, numberOfIterations_, thePlots_, ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::unweightedRescaleFactor, ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weight, and ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weightedRescaleFactor.
Referenced by ZIterativeAlgorithmWithFit().
|
inlinestatic |
Definition at line 79 of file ZIterativeAlgorithmWithFit.h.
References funct::cos(), and calostep_cfi::Eta1.
Referenced by invMassCalc().
|
static |
Definition at line 355 of file ZIterativeAlgorithmWithFit.cc.
References hltPixelTracks_cff::chi2, gather_cfg::cout, LaserDQM_cfg::p1, and makePlotsFromDump::suffix.
Referenced by ZeeCalibration::endOfLoop(), and iterate().
|
inline |
Definition at line 71 of file ZIterativeAlgorithmWithFit.h.
References calib_fac_.
|
private |
Definition at line 304 of file ZIterativeAlgorithmWithFit.cc.
|
inline |
Definition at line 55 of file ZIterativeAlgorithmWithFit.h.
References thePlots_.
Referenced by ZeeCalibration::endOfJob(), and ZeeRescaleFactorPlots::writeHistograms().
|
inline |
Definition at line 59 of file ZIterativeAlgorithmWithFit.h.
References channels_.
Referenced by ZeeCalibration::duringLoop(), ZeeCalibration::endOfJob(), ZeeCalibration::endOfLoop(), and ZeeRescaleFactorPlots::writeHistograms().
|
inline |
Definition at line 57 of file ZIterativeAlgorithmWithFit.h.
References numberOfIterations_.
Referenced by ZeeCalibration::endOfJob(), and ZeeRescaleFactorPlots::writeHistograms().
|
inline |
Definition at line 65 of file ZIterativeAlgorithmWithFit.h.
References optimizedChiSquare_.
Referenced by ZeeCalibration::endOfLoop().
|
inline |
Definition at line 61 of file ZIterativeAlgorithmWithFit.h.
References optimizedCoefficients_.
Referenced by ZeeCalibration::endOfLoop().
|
inline |
Definition at line 63 of file ZIterativeAlgorithmWithFit.h.
References optimizedCoefficientsError_.
Referenced by ZeeCalibration::endOfLoop().
|
inline |
Definition at line 67 of file ZIterativeAlgorithmWithFit.h.
References optimizedIterations_.
Referenced by ZeeCalibration::endOfLoop().
|
private |
Definition at line 154 of file ZIterativeAlgorithmWithFit.cc.
References channels_, gather_cfg::cout, beamvalidation::exit(), geometryDiff::file, mps_fire::i, and StatWeights_.
Referenced by ZIterativeAlgorithmWithFit().
|
private |
Definition at line 297 of file ZIterativeAlgorithmWithFit.cc.
Referenced by addEvent().
|
private |
Definition at line 306 of file ZIterativeAlgorithmWithFit.cc.
References calib_fac_, calibType_, channels_, gather_cfg::cout, currentIteration_, first, calib::CalibElectron::getRecoElectron(), createfilelist::int, massReco_, MAX_RESCALE, MIN_RESCALE, mod(), nCrystalCut_, edm::second(), reco::GsfElectron::superCluster(), thePlots_, ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::unweightedRescaleFactor, ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weight, weight_sum_, and ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weightedRescaleFactor.
|
inline |
Definition at line 69 of file ZIterativeAlgorithmWithFit.h.
References weight_sum_.
|
inlinestatic |
Definition at line 75 of file ZIterativeAlgorithmWithFit.h.
References cosTheta12(), calostep_cfi::Eta1, and mathSSE::sqrt().
Referenced by addEvent(), ZeeKinematicTools::calculateZMass_noTK(), ZeeKinematicTools::calculateZMass_withTK(), ZeeKinematicTools::calculateZMassWithCorrectedElectrons_noTK(), and ZeeKinematicTools::calculateZMassWithCorrectedElectrons_withTK().
bool ZIterativeAlgorithmWithFit::iterate | ( | ) |
Definition at line 182 of file ZIterativeAlgorithmWithFit.cc.
References calib_fac_, channels_, hltPixelTracks_cff::chi2, gather_cfg::cout, currentIteration_, gausfit(), mps_fire::i, createfilelist::int, MAX_RESCALE, MIN_RESCALE, nCrystalCut_, optimizedChiSquare_, optimizedCoefficients_, optimizedCoefficientsError_, optimizedIterations_, thePlots_, weight_sum_, and ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weightedRescaleFactor.
Referenced by ZeeCalibration::endOfLoop().
|
inline |
Assignment operator.
Definition at line 44 of file ZIterativeAlgorithmWithFit.h.
|
private |
|
private |
|
private |
bool ZIterativeAlgorithmWithFit::resetIteration | ( | ) |
Definition at line 168 of file ZIterativeAlgorithmWithFit.cc.
References calib_fac_, channels_, currentEvent_, mps_fire::i, massReco_, totalEvents_, and weight_sum_.
Referenced by ZeeCalibration::startingNewLoop().
|
private |
Definition at line 126 of file ZIterativeAlgorithmWithFit.h.
Referenced by getEpsilonSum(), getWeight(), iterate(), resetIteration(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 140 of file ZIterativeAlgorithmWithFit.h.
Referenced by getWeight(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 115 of file ZIterativeAlgorithmWithFit.h.
Referenced by bookHistograms(), getNumberOfChannels(), getStatWeights(), getWeight(), iterate(), resetIteration(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 119 of file ZIterativeAlgorithmWithFit.h.
Referenced by addEvent(), resetIteration(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 120 of file ZIterativeAlgorithmWithFit.h.
Referenced by getWeight(), iterate(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 122 of file ZIterativeAlgorithmWithFit.h.
Referenced by ZIterativeAlgorithmWithFit().
|
private |
Definition at line 138 of file ZIterativeAlgorithmWithFit.h.
|
staticprivate |
Definition at line 142 of file ZIterativeAlgorithmWithFit.h.
|
private |
Definition at line 132 of file ZIterativeAlgorithmWithFit.h.
Referenced by addEvent(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 128 of file ZIterativeAlgorithmWithFit.h.
Referenced by addEvent(), getWeight(), resetIteration(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 113 of file ZIterativeAlgorithmWithFit.h.
Referenced by getWeight(), iterate(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 117 of file ZIterativeAlgorithmWithFit.h.
Referenced by bookHistograms(), getNumberOfIterations(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 129 of file ZIterativeAlgorithmWithFit.h.
Referenced by getOptimizedChiSquare(), iterate(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 124 of file ZIterativeAlgorithmWithFit.h.
Referenced by getOptimizedCoefficients(), iterate(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 125 of file ZIterativeAlgorithmWithFit.h.
Referenced by getOptimizedCoefficientsError(), iterate(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 130 of file ZIterativeAlgorithmWithFit.h.
Referenced by getOptimizedIterations(), iterate(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 137 of file ZIterativeAlgorithmWithFit.h.
Referenced by getStatWeights(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 111 of file ZIterativeAlgorithmWithFit.h.
Referenced by bookHistograms(), getHistos(), getWeight(), iterate(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 116 of file ZIterativeAlgorithmWithFit.h.
Referenced by addEvent(), resetIteration(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 134 of file ZIterativeAlgorithmWithFit.h.
Referenced by ZIterativeAlgorithmWithFit().
|
private |
Definition at line 127 of file ZIterativeAlgorithmWithFit.h.
Referenced by getWeight(), getWeightSum(), iterate(), resetIteration(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 135 of file ZIterativeAlgorithmWithFit.h.
Referenced by ZIterativeAlgorithmWithFit().