#include <MuonAnalysis/MomentumScaleCalibration/plugins/TestCorrection.cc>
Public Member Functions | |
TestCorrection (const edm::ParameterSet &) | |
~TestCorrection () | |
Public Member Functions inherited from edm::EDAnalyzer | |
EDAnalyzer () | |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
lorentzVector | correctMuon (const lorentzVector &muon) |
virtual void | endJob () |
template<typename T > | |
std::vector< reco::LeafCandidate > | fillMuonCollection (const std::vector< T > &tracks) |
virtual void | initialize (const edm::EventSetup &) |
Private Member Functions inherited from MuScleFitBase | |
MuScleFitBase (const edm::ParameterSet &iConfig) | |
virtual | ~MuScleFitBase () |
void | clearHistoMap () |
Clean the histograms map. More... | |
void | fillHistoMap (TFile *outputFile, unsigned int iLoop) |
Create the histograms map. More... | |
void | readProbabilityDistributionsFromFile () |
Read probability distributions from a local root file. More... | |
void | writeHistoMap (const unsigned int iLoop) |
Save the histograms map to file. More... | |
Private Attributes | |
std::auto_ptr< BackgroundFunction > | background_ |
TH1F * | correctedPt_ |
TProfile * | correctedPtVsEta_ |
std::auto_ptr < MomentumScaleCorrector > | corrector_ |
int | eventCounter_ |
std::auto_ptr< ResolutionFunction > | resolution_ |
TH1F * | uncorrectedPt_ |
TProfile * | uncorrectedPtVsEta_ |
Private Attributes inherited from MuScleFitBase | |
int | debug_ |
std::vector< GenMuonPair > | genMuonPairs_ |
Stores the genMuon pairs and the motherId prior to the creation of the internal tree. More... | |
std::map< std::string, Histograms * > | mapHisto_ |
The map of histograms. More... | |
std::vector< MuonPair > | muonPairs_ |
Used to store the muon pairs plus run and event number prior to the creation of the internal tree. More... | |
std::string | probabilitiesFile_ |
std::string | probabilitiesFileInPath_ |
std::vector< TFile * > | theFiles_ |
The files were the histograms are saved. More... | |
std::string | theGenInfoRootFileName_ |
edm::InputTag | theMuonLabel_ |
int | theMuonType_ |
std::string | theRootFileName_ |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
typedef WorkerT< EDAnalyzer > | WorkerType |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDAnalyzer | |
CurrentProcessingContext const * | currentContext () const |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 59 of file TestCorrection.h.
|
explicit |
Definition at line 20 of file TestCorrection.cc.
References background_, correctedPt_, correctedPtVsEta_, corrector_, gather_cfg::cout, eventCounter_, MuScleFitBase::fillHistoMap(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), download_sqlite_cfg::outputFile, MuScleFitUtils::parResol, MuScleFitUtils::resfind, resolution_, MuScleFitUtils::resolutionFunction, MuScleFitUtils::resolutionFunctionForVec, resolutionFunctionVecService(), MuScleFitBase::theFiles_, MuScleFitBase::theRootFileName_, uncorrectedPt_, and uncorrectedPtVsEta_.
TestCorrection::~TestCorrection | ( | ) |
Definition at line 51 of file TestCorrection.cc.
References MultipleCompare::canvas, correctedPt_, correctedPtVsEta_, gather_cfg::cout, eventCounter_, MultipleCompare::legend, MuScleFitBase::theFiles_, uncorrectedPt_, uncorrectedPtVsEta_, and MuScleFitBase::writeHistoMap().
|
privatevirtual |
Implements edm::EDAnalyzer.
Definition at line 84 of file TestCorrection.cc.
References abs, correctedPt_, correctedPtVsEta_, correctMuon(), gather_cfg::cout, eventCounter_, fillMuonCollection(), MuScleFitUtils::findBestRecoRes(), edm::Event::getByLabel(), initialize(), MuScleFitBase::mapHisto_, patZpeak::muons, MuScleFitUtils::ResFound, MuScleFitUtils::SavedPair, MuScleFitBase::theMuonLabel_, MuScleFitBase::theMuonType_, testEve_cfg::tracks, uncorrectedPt_, and uncorrectedPtVsEta_.
|
private |
Definition at line 180 of file TestCorrection.cc.
References corrector_, and MuScleFitUtils::fromPtEtaPhiToPxPyPz().
Referenced by analyze().
|
inlineprivatevirtual |
|
inlineprivate |
Definition at line 69 of file TestCorrection.h.
References metsig::muon, patZpeak::muons, and mathSSE::sqrt().
Referenced by analyze().
|
privatevirtual |
Definition at line 187 of file TestCorrection.cc.
References MuScleFitBase::readProbabilityDistributionsFromFile().
Referenced by analyze().
|
private |
Definition at line 98 of file TestCorrection.h.
Referenced by TestCorrection().
|
private |
Definition at line 91 of file TestCorrection.h.
Referenced by analyze(), TestCorrection(), and ~TestCorrection().
|
private |
Definition at line 92 of file TestCorrection.h.
Referenced by analyze(), TestCorrection(), and ~TestCorrection().
|
private |
Definition at line 96 of file TestCorrection.h.
Referenced by correctMuon(), and TestCorrection().
|
private |
Definition at line 94 of file TestCorrection.h.
Referenced by analyze(), TestCorrection(), and ~TestCorrection().
|
private |
Definition at line 97 of file TestCorrection.h.
Referenced by TestCorrection().
|
private |
Definition at line 89 of file TestCorrection.h.
Referenced by analyze(), TestCorrection(), and ~TestCorrection().
|
private |
Definition at line 90 of file TestCorrection.h.
Referenced by analyze(), TestCorrection(), and ~TestCorrection().