#include <MuonAnalysis/MomentumScaleCalibration/plugins/ResolutionAnalyzer.cc>
Public Member Functions | |
ResolutionAnalyzer (const edm::ParameterSet &) | |
~ResolutionAnalyzer () | |
Public Member Functions inherited from edm::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
EDAnalyzer () | |
ModuleDescription const & | moduleDescription () const |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
bool | checkDeltaR (const reco::Particle::LorentzVector &genMu, const reco::Particle::LorentzVector &recMu) |
Returns true if the two particles have DeltaR < cut. More... | |
virtual void | endJob () |
void | fillHistoMap () |
Used to fill the map with the histograms needed. More... | |
template<typename T > | |
std::vector< reco::LeafCandidate > | fillMuonCollection (const std::vector< T > &tracks) |
void | writeHistoMap () |
Writes the histograms in the map. More... | |
Private Attributes | |
bool | debug_ |
TH1D * | deltaPtOverPt_ |
TH1D * | deltaPtOverPtForEta12_ |
int | eventCounter_ |
std::map< std::string, Histograms * > | mapHisto_ |
HCovarianceVSxy * | massResolutionVsPtEta_ |
int32_t | maxEvents_ |
TFile * | outputFile_ |
double | ptMax_ |
bool | readCovariances_ |
TH2D * | recoPtVsgenPt_ |
TH2D * | recoPtVsgenPtEta12_ |
bool | resonance_ |
std::string | theCovariancesRootFileName_ |
edm::InputTag | theMuonLabel_ |
int | theMuonType_ |
std::string | theRootFileName_ |
TString | treeFileName_ |
Additional Inherited Members | |
Public Types inherited from edm::EDAnalyzer | |
typedef EDAnalyzer | ModuleType |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 65 of file ResolutionAnalyzer.h.
|
explicit |
Definition at line 19 of file ResolutionAnalyzer.cc.
References eventCounter_, fillHistoMap(), edm::ParameterSet::getParameter(), outputFile_, MuScleFitUtils::parResol, MuScleFitUtils::resfind, MuScleFitUtils::ResolFitType, MuScleFitUtils::resolutionFunction, MuScleFitUtils::resolutionFunctionForVec, resolutionFunctionService(), resolutionFunctionVecService(), and theRootFileName_.
ResolutionAnalyzer::~ResolutionAnalyzer | ( | ) |
Definition at line 54 of file ResolutionAnalyzer.cc.
References gather_cfg::cout, eventCounter_, outputFile_, and writeHistoMap().
|
privatevirtual |
Implements edm::EDAnalyzer.
Definition at line 68 of file ResolutionAnalyzer.cc.
References RecoTauCleanerPlugins::charge, checkDeltaR(), funct::cos(), gather_cfg::cout, MuScleFitUtils::deltaPhiNoFabs(), deltaPtOverPt_, deltaPtOverPtForEta12_, reco::tau::disc::Eta(), eventCounter_, create_public_lumi_plots::exp, HCovarianceVSxy::Fill(), i, mapHisto_, MuScleFitUtils::massResolution(), massResolutionVsPtEta_, maxEvents_, MuScleFitUtils::mMu2, MuScleFitUtils::parResol, funct::pow(), reco::tau::disc::Pt(), readCovariances_, recoPtVsgenPt_, recoPtVsgenPtEta12_, MuScleFitUtils::resolutionFunctionForVec, resonance_, funct::sin(), mathSSE::sqrt(), and treeFileName_.
|
private |
Returns true if the two particles have DeltaR < cut.
Definition at line 552 of file ResolutionAnalyzer.cc.
References gather_cfg::cout, debug_, MuScleFitUtils::deltaPhi(), deltaR(), and mathSSE::sqrt().
Referenced by analyze().
|
inlineprivatevirtual |
|
private |
Used to fill the map with the histograms needed.
Definition at line 420 of file ResolutionAnalyzer.cc.
References deltaPtOverPt_, deltaPtOverPtForEta12_, mapHisto_, massResolutionVsPtEta_, HLT_25ns14e33_v1_cff::maxMass, HLT_25ns14e33_v1_cff::minMass, outputFile_, ptMax_, readCovariances_, recoPtVsgenPt_, recoPtVsgenPtEta12_, MuScleFitUtils::resfind, and theCovariancesRootFileName_.
Referenced by ResolutionAnalyzer().
|
inlineprivate |
Definition at line 75 of file ResolutionAnalyzer.h.
References gather_cfg::cout, debug_, MuScleFitUtils::goodmuon, MuScleFitUtils::mMu2, RPCpg::mu, metsig::muon, patZpeak::muons, and mathSSE::sqrt().
|
private |
Writes the histograms in the map.
Definition at line 539 of file ResolutionAnalyzer.cc.
References deltaPtOverPt_, deltaPtOverPtForEta12_, timingPdfMaker::histo, mapHisto_, massResolutionVsPtEta_, outputFile_, recoPtVsgenPt_, recoPtVsgenPtEta12_, and HCovarianceVSxy::Write().
Referenced by ~ResolutionAnalyzer().
|
private |
Definition at line 108 of file ResolutionAnalyzer.h.
Referenced by checkDeltaR(), and fillMuonCollection().
|
private |
Definition at line 124 of file ResolutionAnalyzer.h.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 125 of file ResolutionAnalyzer.h.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 112 of file ResolutionAnalyzer.h.
Referenced by analyze(), ResolutionAnalyzer(), and ~ResolutionAnalyzer().
|
private |
Definition at line 109 of file ResolutionAnalyzer.h.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 121 of file ResolutionAnalyzer.h.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 117 of file ResolutionAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 110 of file ResolutionAnalyzer.h.
Referenced by fillHistoMap(), ResolutionAnalyzer(), writeHistoMap(), and ~ResolutionAnalyzer().
|
private |
Definition at line 119 of file ResolutionAnalyzer.h.
Referenced by fillHistoMap().
|
private |
Definition at line 114 of file ResolutionAnalyzer.h.
Referenced by analyze(), and fillHistoMap().
|
private |
Definition at line 122 of file ResolutionAnalyzer.h.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 123 of file ResolutionAnalyzer.h.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 113 of file ResolutionAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 107 of file ResolutionAnalyzer.h.
Referenced by fillHistoMap().
|
private |
Definition at line 103 of file ResolutionAnalyzer.h.
|
private |
Definition at line 105 of file ResolutionAnalyzer.h.
|
private |
Definition at line 106 of file ResolutionAnalyzer.h.
Referenced by ResolutionAnalyzer().
|
private |
Definition at line 116 of file ResolutionAnalyzer.h.
Referenced by analyze().