#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 30 of file ZIterativeAlgorithmWithFit.h.
ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFit | ( | ) |
Default constructor.
Definition at line 47 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 65 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 253 of file ZIterativeAlgorithmWithFit.cc.
References gather_cfg::cout, currentEvent_, 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 115 of file ZIterativeAlgorithmWithFit.cc.
References channels_, 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 84 of file ZIterativeAlgorithmWithFit.h.
References funct::cos().
Referenced by invMassCalc().
|
static |
Definition at line 367 of file ZIterativeAlgorithmWithFit.cc.
References gather_cfg::cout, p1, and createPayload::suffix.
Referenced by ZeeCalibration::endOfLoop(), and iterate().
|
inline |
Definition at line 76 of file ZIterativeAlgorithmWithFit.h.
References calib_fac_.
|
private |
Definition at line 296 of file ZIterativeAlgorithmWithFit.cc.
|
inline |
Definition at line 60 of file ZIterativeAlgorithmWithFit.h.
References thePlots_.
Referenced by ZeeCalibration::endOfJob(), and ZeeRescaleFactorPlots::writeHistograms().
|
inline |
Definition at line 64 of file ZIterativeAlgorithmWithFit.h.
References channels_.
Referenced by ZeeCalibration::duringLoop(), ZeeCalibration::endOfJob(), ZeeCalibration::endOfLoop(), and ZeeRescaleFactorPlots::writeHistograms().
|
inline |
Definition at line 62 of file ZIterativeAlgorithmWithFit.h.
References numberOfIterations_.
Referenced by ZeeCalibration::endOfJob(), and ZeeRescaleFactorPlots::writeHistograms().
|
inline |
Definition at line 70 of file ZIterativeAlgorithmWithFit.h.
References optimizedChiSquare_.
Referenced by ZeeCalibration::endOfLoop().
|
inline |
Definition at line 66 of file ZIterativeAlgorithmWithFit.h.
References optimizedCoefficients_.
Referenced by ZeeCalibration::endOfLoop().
|
inline |
Definition at line 68 of file ZIterativeAlgorithmWithFit.h.
References optimizedCoefficientsError_.
Referenced by ZeeCalibration::endOfLoop().
|
inline |
Definition at line 72 of file ZIterativeAlgorithmWithFit.h.
References optimizedIterations_.
Referenced by ZeeCalibration::endOfLoop().
|
private |
Definition at line 155 of file ZIterativeAlgorithmWithFit.cc.
References channels_, gather_cfg::cout, cmsRelvalreport::exit, i, and StatWeights_.
Referenced by ZIterativeAlgorithmWithFit().
|
private |
Definition at line 290 of file ZIterativeAlgorithmWithFit.cc.
Referenced by addEvent().
|
private |
Definition at line 301 of file ZIterativeAlgorithmWithFit.cc.
References calib_fac_, calibType_, channels_, gather_cfg::cout, currentIteration_, plotBeamSpotDB::first, calib::CalibElectron::getRecoElectron(), massReco_, MAX_RESCALE, MIN_RESCALE, mod(), edmConvertToStreamModule::modules, nCrystalCut_, edm::second(), reco::GsfElectron::superCluster(), thePlots_, ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::unweightedRescaleFactor, ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weight, weight_sum_, and ZIterativeAlgorithmWithFit::ZIterativeAlgorithmWithFitPlots::weightedRescaleFactor.
|
inline |
Definition at line 74 of file ZIterativeAlgorithmWithFit.h.
References weight_sum_.
|
inlinestatic |
Definition at line 80 of file ZIterativeAlgorithmWithFit.h.
References cosTheta12(), 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 184 of file ZIterativeAlgorithmWithFit.cc.
References calib_fac_, channels_, gather_cfg::cout, currentIteration_, gausfit(), i, 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 47 of file ZIterativeAlgorithmWithFit.h.
|
private |
|
private |
|
private |
bool ZIterativeAlgorithmWithFit::resetIteration | ( | ) |
Definition at line 170 of file ZIterativeAlgorithmWithFit.cc.
References calib_fac_, channels_, currentEvent_, i, massReco_, totalEvents_, and weight_sum_.
Referenced by ZeeCalibration::startingNewLoop().
|
private |
Definition at line 131 of file ZIterativeAlgorithmWithFit.h.
Referenced by getEpsilonSum(), getWeight(), iterate(), resetIteration(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 145 of file ZIterativeAlgorithmWithFit.h.
Referenced by getWeight(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 120 of file ZIterativeAlgorithmWithFit.h.
Referenced by bookHistograms(), getNumberOfChannels(), getStatWeights(), getWeight(), iterate(), resetIteration(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 124 of file ZIterativeAlgorithmWithFit.h.
Referenced by addEvent(), resetIteration(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 125 of file ZIterativeAlgorithmWithFit.h.
Referenced by getWeight(), iterate(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 127 of file ZIterativeAlgorithmWithFit.h.
Referenced by ZIterativeAlgorithmWithFit().
|
private |
Definition at line 143 of file ZIterativeAlgorithmWithFit.h.
|
staticprivate |
Definition at line 147 of file ZIterativeAlgorithmWithFit.h.
|
private |
Definition at line 137 of file ZIterativeAlgorithmWithFit.h.
Referenced by addEvent(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 133 of file ZIterativeAlgorithmWithFit.h.
Referenced by addEvent(), getWeight(), resetIteration(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 118 of file ZIterativeAlgorithmWithFit.h.
Referenced by getWeight(), iterate(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 122 of file ZIterativeAlgorithmWithFit.h.
Referenced by bookHistograms(), getNumberOfIterations(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 134 of file ZIterativeAlgorithmWithFit.h.
Referenced by getOptimizedChiSquare(), iterate(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 129 of file ZIterativeAlgorithmWithFit.h.
Referenced by getOptimizedCoefficients(), iterate(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 130 of file ZIterativeAlgorithmWithFit.h.
Referenced by getOptimizedCoefficientsError(), iterate(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 135 of file ZIterativeAlgorithmWithFit.h.
Referenced by getOptimizedIterations(), iterate(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 142 of file ZIterativeAlgorithmWithFit.h.
Referenced by getStatWeights(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 116 of file ZIterativeAlgorithmWithFit.h.
Referenced by bookHistograms(), getHistos(), getWeight(), iterate(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 121 of file ZIterativeAlgorithmWithFit.h.
Referenced by addEvent(), resetIteration(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 139 of file ZIterativeAlgorithmWithFit.h.
Referenced by ZIterativeAlgorithmWithFit().
|
private |
Definition at line 132 of file ZIterativeAlgorithmWithFit.h.
Referenced by getWeight(), getWeightSum(), iterate(), resetIteration(), and ZIterativeAlgorithmWithFit().
|
private |
Definition at line 140 of file ZIterativeAlgorithmWithFit.h.
Referenced by ZIterativeAlgorithmWithFit().