#include <MuonAnalysis/MomentumScaleCalibration/plugins/ResolutionAnalyzer.cc>
Private Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) override |
bool | checkDeltaR (const reco::Particle::LorentzVector &genMu, const reco::Particle::LorentzVector &recMu) |
Returns true if the two particles have DeltaR < cut. More... | |
void | endJob () override |
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::one::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::one::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
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) |
void | resetItemsToGetFrom (BranchType iType) |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 57 of file ResolutionAnalyzer.cc.
|
explicit |
Definition at line 124 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_.
|
override |
Definition at line 157 of file ResolutionAnalyzer.cc.
References gather_cfg::cout, eventCounter_, outputFile_, and writeHistoMap().
|
overrideprivatevirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 169 of file ResolutionAnalyzer.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, checkDeltaR(), funct::cos(), gather_cfg::cout, MuScleFitUtils::deltaPhiNoFabs(), deltaPtOverPt_, deltaPtOverPtForEta12_, HLT_2024v12_cff::eta1, HLT_2024v12_cff::eta2, eventCounter_, JetChargeProducer_cfi::exp, HCovarianceVSxy::Fill(), mps_fire::i, mapHisto_, EgHLTOffHistBins_cfi::mass, MuScleFitUtils::massResolution(), massResolutionVsPtEta_, maxEvents_, MuScleFitUtils::mMu2, MuScleFitUtils::parResol, funct::pow(), HLT_2024v12_cff::pt1, HLT_2024v12_cff::pt2, readCovariances_, RootTreeHandler::readTree(), recoPtVsgenPt_, recoPtVsgenPtEta12_, MuScleFitUtils::resolutionFunctionForVec, resonance_, funct::sin(), mathSSE::sqrt(), and treeFileName_.
|
private |
Returns true if the two particles have DeltaR < cut.
Definition at line 683 of file ResolutionAnalyzer.cc.
References gather_cfg::cout, debug_, MuScleFitUtils::deltaPhi(), PbPb_ZMuSkimMuonDPG_cff::deltaR, and mathSSE::sqrt().
Referenced by analyze().
|
inlineoverrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 64 of file ResolutionAnalyzer.cc.
|
private |
Used to fill the map with the histograms needed.
Definition at line 538 of file ResolutionAnalyzer.cc.
References deltaPtOverPt_, deltaPtOverPtForEta12_, mapHisto_, massResolutionVsPtEta_, B2GTnPMonitor_cfi::maxMass, B2GTnPMonitor_cfi::minMass, outputFile_, AlignmentTrackSelector_cfi::ptMax, ptMax_, readCovariances_, recoPtVsgenPt_, recoPtVsgenPtEta12_, MuScleFitUtils::resfind, and theCovariancesRootFileName_.
Referenced by ResolutionAnalyzer().
|
inlineprivate |
Definition at line 67 of file ResolutionAnalyzer.cc.
References gather_cfg::cout, debug_, MuScleFitUtils::goodmuon, MuScleFitUtils::mMu2, amptDefaultParameters_cff::mu, HLT_2024v12_cff::muon, DiMuonV_cfg::muons, mathSSE::sqrt(), HLT_2024v12_cff::track, and DiMuonV_cfg::tracks.
|
private |
Writes the histograms in the map.
Definition at line 670 of file ResolutionAnalyzer.cc.
References deltaPtOverPt_, deltaPtOverPtForEta12_, timingPdfMaker::histo, mapHisto_, massResolutionVsPtEta_, outputFile_, recoPtVsgenPt_, recoPtVsgenPtEta12_, and HCovarianceVSxy::Write().
Referenced by ~ResolutionAnalyzer().
|
private |
Definition at line 101 of file ResolutionAnalyzer.cc.
Referenced by checkDeltaR(), and fillMuonCollection().
|
private |
Definition at line 117 of file ResolutionAnalyzer.cc.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 118 of file ResolutionAnalyzer.cc.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 105 of file ResolutionAnalyzer.cc.
Referenced by analyze(), ResolutionAnalyzer(), and ~ResolutionAnalyzer().
|
private |
Definition at line 102 of file ResolutionAnalyzer.cc.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 114 of file ResolutionAnalyzer.cc.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 110 of file ResolutionAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 103 of file ResolutionAnalyzer.cc.
Referenced by fillHistoMap(), ResolutionAnalyzer(), writeHistoMap(), and ~ResolutionAnalyzer().
|
private |
Definition at line 112 of file ResolutionAnalyzer.cc.
Referenced by fillHistoMap().
|
private |
Definition at line 107 of file ResolutionAnalyzer.cc.
Referenced by analyze(), and fillHistoMap().
|
private |
Definition at line 115 of file ResolutionAnalyzer.cc.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 116 of file ResolutionAnalyzer.cc.
Referenced by analyze(), fillHistoMap(), and writeHistoMap().
|
private |
Definition at line 106 of file ResolutionAnalyzer.cc.
Referenced by analyze().
|
private |
Definition at line 100 of file ResolutionAnalyzer.cc.
Referenced by fillHistoMap().
|
private |
Definition at line 96 of file ResolutionAnalyzer.cc.
|
private |
Definition at line 98 of file ResolutionAnalyzer.cc.
|
private |
Definition at line 99 of file ResolutionAnalyzer.cc.
Referenced by ResolutionAnalyzer().
|
private |
Definition at line 109 of file ResolutionAnalyzer.cc.
Referenced by analyze().