#include <MuonAnalysis/MomentumScaleCalibration/plugins/TestCorrection.cc>
Private Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) override |
virtual void | analyze (const edm::Event &, const edm::EventSetup &) |
lorentzVector | correctMuon (const lorentzVector &muon) |
lorentzVector | correctMuon (const lorentzVector &muon) |
void | endJob () override |
virtual void | endJob () |
template<typename T > | |
std::vector< MuScleFitMuon > | fillMuonCollection (const std::vector< T > &tracks) |
template<typename T > | |
std::vector< MuScleFitMuon > | fillMuonCollection (const std::vector< T > &tracks) |
virtual void | initialize (const edm::EventSetup &) |
virtual void | initialize (const edm::EventSetup &) |
Private Member Functions inherited from MuScleFitBase | |
MuScleFitBase (const edm::ParameterSet &iConfig) | |
virtual | ~MuScleFitBase ()(false) |
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::unique_ptr< BackgroundFunction > | background_ |
TH1F * | correctedPt_ |
TProfile * | correctedPtVsEta_ |
std::unique_ptr< MomentumScaleCorrector > | corrector_ |
int | eventCounter_ |
edm::EDGetTokenT< reco::MuonCollection > | glbMuonsToken_ |
std::unique_ptr< ResolutionFunction > | resolution_ |
edm::EDGetTokenT< reco::TrackCollection > | saMuonsToken_ |
edm::EDGetTokenT< reco::TrackCollection > | tracksToken_ |
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 |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDAnalyzer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
static bool | wantsGlobalLuminosityBlocks () |
static bool | wantsGlobalRuns () |
static bool | wantsStreamLuminosityBlocks () |
static bool | wantsStreamRuns () |
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
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 60 of file TestCorrection.cc.
|
explicit |
Definition at line 139 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(), AlCaHLTBitMon_QueryRunRegistry::string, MuScleFitBase::theFiles_, MuScleFitBase::theRootFileName_, uncorrectedPt_, and uncorrectedPtVsEta_.
|
override |
Definition at line 172 of file TestCorrection.cc.
References svgfig::canvas(), correctedPt_, correctedPtVsEta_, gather_cfg::cout, eventCounter_, listHistos::legend, MuScleFitBase::theFiles_, uncorrectedPt_, uncorrectedPtVsEta_, and MuScleFitBase::writeHistoMap().
|
explicit |
TestCorrection::~TestCorrection | ( | ) |
|
overrideprivate |
Definition at line 204 of file TestCorrection.cc.
References funct::abs(), correctedPt_, correctedPtVsEta_, correctMuon(), gather_cfg::cout, eventCounter_, fillMuonCollection(), MuScleFitUtils::findBestRecoRes(), edm::Event::getByToken(), glbMuonsToken_, initialize(), MuScleFitBase::mapHisto_, PDWG_BPHSkim_cff::muons, MuScleFitUtils::ResFound, saMuonsToken_, MuScleFitUtils::SavedPair, MuScleFitBase::theMuonType_, PDWG_EXOHSCP_cff::tracks, tracksToken_, uncorrectedPt_, and uncorrectedPtVsEta_.
|
privatevirtual |
|
private |
Definition at line 298 of file TestCorrection.cc.
References corrector_, and MuScleFitUtils::fromPtEtaPhiToPxPyPz().
Referenced by analyze(), and fillMuonCollection().
|
private |
|
inlineoverrideprivatevirtual |
|
inlineprivatevirtual |
|
inlineprivate |
Definition at line 70 of file TestCorrection.cc.
References correctMuon(), gather_cfg::cout, MuScleFitBase::debug_, amptDefaultParameters_cff::mu, HLT_2018_cff::muon, PDWG_BPHSkim_cff::muons, mathSSE::sqrt(), and HLT_2018_cff::track.
Referenced by analyze().
|
inlineprivate |
Definition at line 71 of file TestCorrection.h.
References background_, correctedPt_, correctedPtVsEta_, correctMuon(), corrector_, gather_cfg::cout, MuScleFitBase::debug_, eventCounter_, amptDefaultParameters_cff::mu, HLT_2018_cff::muon, PDWG_BPHSkim_cff::muons, resolution_, mathSSE::sqrt(), HLT_2018_cff::track, uncorrectedPt_, and uncorrectedPtVsEta_.
|
privatevirtual |
Definition at line 305 of file TestCorrection.cc.
References DEFINE_FWK_MODULE, and MuScleFitBase::readProbabilityDistributionsFromFile().
Referenced by analyze().
|
privatevirtual |
|
private |
Definition at line 120 of file TestCorrection.cc.
Referenced by fillMuonCollection(), and TestCorrection().
|
private |
Definition at line 113 of file TestCorrection.cc.
Referenced by analyze(), fillMuonCollection(), TestCorrection(), and ~TestCorrection().
|
private |
Definition at line 114 of file TestCorrection.cc.
Referenced by analyze(), fillMuonCollection(), TestCorrection(), and ~TestCorrection().
|
private |
Definition at line 118 of file TestCorrection.cc.
Referenced by correctMuon(), fillMuonCollection(), and TestCorrection().
|
private |
Definition at line 116 of file TestCorrection.cc.
Referenced by analyze(), fillMuonCollection(), TestCorrection(), and ~TestCorrection().
|
private |
Definition at line 122 of file TestCorrection.cc.
Referenced by analyze().
|
private |
Definition at line 119 of file TestCorrection.cc.
Referenced by fillMuonCollection(), and TestCorrection().
|
private |
Definition at line 123 of file TestCorrection.cc.
Referenced by analyze().
|
private |
Definition at line 124 of file TestCorrection.cc.
Referenced by analyze().
|
private |
Definition at line 111 of file TestCorrection.cc.
Referenced by analyze(), fillMuonCollection(), TestCorrection(), and ~TestCorrection().
|
private |
Definition at line 112 of file TestCorrection.cc.
Referenced by analyze(), fillMuonCollection(), TestCorrection(), and ~TestCorrection().