#include <MuScleFitBase.h>
Classes | |
class | ProbForIntegral |
Functor used to compute the normalization integral of probability functions. More... | |
Public Member Functions | |
MuScleFitBase (const edm::ParameterSet &iConfig) | |
virtual | ~MuScleFitBase ()(false) |
Protected Member Functions | |
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... | |
Protected Attributes | |
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_ |
This class is used as a base for MuSlceFit. The reason for putting some of the methods inside this base class is that they are used also by the TestCorrection analyzer.
Definition at line 18 of file MuScleFitBase.h.
|
inline |
Definition at line 20 of file MuScleFitBase.h.
|
inlinevirtual |
Definition at line 30 of file MuScleFitBase.h.
References clearHistoMap(), fillHistoMap(), download_sqlite_cfg::outputFile, readProbabilityDistributionsFromFile(), and writeHistoMap().
|
protected |
Clean the histograms map.
Definition at line 143 of file MuScleFitBase.cc.
References timingPdfMaker::histo, and mapHisto_.
Referenced by MuScleFit::endOfFastLoop(), and ~MuScleFitBase().
|
protected |
Create the histograms map.
Definition at line 9 of file MuScleFitBase.cc.
References MuScleFitUtils::debugMassResol_, LogDebug, mapHisto_, B2GTnPMonitor_cfi::maxMass, MuonErrorMatrixAnalyzer_cfi::maxPt, B2GTnPMonitor_cfi::minMass, MuScleFitUtils::resfind, and theMuonType_.
Referenced by MuScleFit::startingNewLoop(), TestCorrection::TestCorrection(), and ~MuScleFitBase().
|
protected |
Read probability distributions from a local root file.
Definition at line 159 of file MuScleFitBase.cc.
References gather_cfg::cout, beamvalidation::exit(), FrontierConditions_GlobalTag_cff::file, GL, MuScleFitUtils::GLNorm, MuScleFitUtils::GLValue, MuScleFitUtils::GLZNorm, MuScleFitUtils::GLZValue, mps_fire::i, ires, MuScleFitUtils::nbins, probabilitiesFile_, probabilitiesFileInPath_, MuScleFitUtils::rapidityBinsForZ_, MuScleFitUtils::resfind, MuScleFitUtils::ResHalfWidth, MuScleFitUtils::ResMaxSigma, MuScleFitUtils::ResMinMass, and theMuonType_.
Referenced by MuScleFit::beginOfJobInConstructor(), TestCorrection::initialize(), and ~MuScleFitBase().
|
protected |
Save the histograms map to file.
Definition at line 150 of file MuScleFitBase.cc.
References timingPdfMaker::histo, mapHisto_, and theFiles_.
Referenced by MuScleFit::endOfFastLoop(), ~MuScleFitBase(), and TestCorrection::~TestCorrection().
|
protected |
Definition at line 51 of file MuScleFitBase.h.
Referenced by MuScleFit::applyBias(), MuScleFit::applySmearing(), MuScleFit::beginOfJobInConstructor(), MuScleFit::checkDeltaR(), MuScleFit::duringFastLoop(), MuScleFit::duringLoop(), MuScleFit::endOfJob(), TestCorrection::fillMuonCollection(), MuScleFit::MuScleFit(), MuScleFit::selectMuons(), MuScleFit::startingNewLoop(), and MuScleFit::~MuScleFit().
|
protected |
Stores the genMuon pairs and the motherId prior to the creation of the internal tree.
Definition at line 82 of file MuScleFitBase.h.
Referenced by MuScleFit::selectMuons(), and MuScleFit::~MuScleFit().
|
protected |
The map of histograms.
Definition at line 77 of file MuScleFitBase.h.
Referenced by TestCorrection::analyze(), clearHistoMap(), MuScleFit::duringFastLoop(), MuScleFit::fillComparisonHistograms(), fillHistoMap(), and writeHistoMap().
|
protected |
Used to store the muon pairs plus run and event number prior to the creation of the internal tree.
Definition at line 80 of file MuScleFitBase.h.
Referenced by MuScleFit::selectMuons(), and MuScleFit::~MuScleFit().
|
protected |
Definition at line 44 of file MuScleFitBase.h.
Referenced by readProbabilityDistributionsFromFile().
|
protected |
Definition at line 43 of file MuScleFitBase.h.
Referenced by readProbabilityDistributionsFromFile().
|
protected |
The files were the histograms are saved.
Definition at line 74 of file MuScleFitBase.h.
Referenced by MuScleFit::beginOfJobInConstructor(), MuScleFit::endOfFastLoop(), MuScleFit::startingNewLoop(), TestCorrection::TestCorrection(), writeHistoMap(), and TestCorrection::~TestCorrection().
|
protected |
Definition at line 49 of file MuScleFitBase.h.
Referenced by MuScleFit::beginOfJobInConstructor().
|
protected |
Definition at line 47 of file MuScleFitBase.h.
Referenced by MuScleFit::MuScleFit().
|
protected |
Definition at line 46 of file MuScleFitBase.h.
Referenced by TestCorrection::analyze(), fillHistoMap(), MuScleFit::MuScleFit(), readProbabilityDistributionsFromFile(), MuScleFit::selectMuons(), and MuScleFit::~MuScleFit().
|
protected |
Definition at line 48 of file MuScleFitBase.h.
Referenced by MuScleFit::beginOfJobInConstructor(), and TestCorrection::TestCorrection().