#include <MuonAnalysis/MomentumScaleCalibration/plugins/ResolutionAnalyzer.cc>
Public Member Functions | |
ResolutionAnalyzer (const edm::ParameterSet &) | |
~ResolutionAnalyzer () | |
Public Member Functions inherited from edm::EDAnalyzer | |
EDAnalyzer () | |
std::string | workerType () const |
virtual | ~EDAnalyzer () |
Public Member Functions inherited from edm::EDConsumerBase | |
EDConsumerBase () | |
ProductHolderIndex | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) 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 |
typedef WorkerT< EDAnalyzer > | WorkerType |
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::EDAnalyzer | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
CurrentProcessingContext const * | currentContext () const |
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 66 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 DeDxDiscriminatorTools::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_, outputFile_, jptDQMConfig_cff::ptMax, ptMax_, readCovariances_, recoPtVsgenPt_, recoPtVsgenPtEta12_, MuScleFitUtils::resfind, and theCovariancesRootFileName_.
Referenced by ResolutionAnalyzer().
|
inlineprivate |
Definition at line 76 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 109 of file ResolutionAnalyzer.h.
Referenced by checkDeltaR(), and fillMuonCollection().
|
private |
Definition at line 125 of file ResolutionAnalyzer.h.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 126 of file ResolutionAnalyzer.h.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 113 of file ResolutionAnalyzer.h.
Referenced by analyze(), ResolutionAnalyzer(), and ~ResolutionAnalyzer().
|
private |
Definition at line 110 of file ResolutionAnalyzer.h.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 122 of file ResolutionAnalyzer.h.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 118 of file ResolutionAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 111 of file ResolutionAnalyzer.h.
Referenced by fillHistoMap(), ResolutionAnalyzer(), writeHistoMap(), and ~ResolutionAnalyzer().
|
private |
Definition at line 120 of file ResolutionAnalyzer.h.
Referenced by fillHistoMap().
|
private |
Definition at line 115 of file ResolutionAnalyzer.h.
Referenced by analyze(), and fillHistoMap().
|
private |
Definition at line 123 of file ResolutionAnalyzer.h.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 124 of file ResolutionAnalyzer.h.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 114 of file ResolutionAnalyzer.h.
Referenced by analyze().
|
private |
Definition at line 108 of file ResolutionAnalyzer.h.
Referenced by fillHistoMap().
|
private |
Definition at line 104 of file ResolutionAnalyzer.h.
|
private |
Definition at line 106 of file ResolutionAnalyzer.h.
|
private |
Definition at line 107 of file ResolutionAnalyzer.h.
Referenced by ResolutionAnalyzer().
|
private |
Definition at line 117 of file ResolutionAnalyzer.h.
Referenced by analyze().