#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 () |
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 21 of file MuScleFitBase.h.
|
inlinevirtual |
Definition at line 30 of file MuScleFitBase.h.
|
protected |
Clean the histograms map.
Definition at line 110 of file MuScleFitBase.cc.
References timingPdfMaker::histo, and mapHisto_.
Referenced by MuScleFit::endOfFastLoop().
|
protected |
Create the histograms map.
Definition at line 7 of file MuScleFitBase.cc.
References MuScleFitUtils::debugMassResol_, LogDebug, mapHisto_, HLT_25ns10e33_v2_cff::maxMass, HLT_25ns10e33_v2_cff::minMass, MuScleFitUtils::resfind, and theMuonType_.
Referenced by MuScleFit::startingNewLoop(), and TestCorrection::TestCorrection().
|
protected |
Read probability distributions from a local root file.
Definition at line 126 of file MuScleFitBase.cc.
References gather_cfg::cout, cmsRelvalreport::exit, mergeVDriftHistosByStation::file, GL, MuScleFitUtils::GLNorm, MuScleFitUtils::GLValue, MuScleFitUtils::GLZNorm, MuScleFitUtils::GLZValue, i, ires, MuScleFitUtils::nbins, probabilitiesFile_, probabilitiesFileInPath_, MuScleFitUtils::rapidityBinsForZ_, MuScleFitUtils::resfind, MuScleFitUtils::ResHalfWidth, MuScleFitUtils::ResMaxSigma, MuScleFitUtils::ResMinMass, and theMuonType_.
Referenced by MuScleFit::beginOfJobInConstructor(), and TestCorrection::initialize().
|
protected |
Save the histograms map to file.
Definition at line 117 of file MuScleFitBase.cc.
References timingPdfMaker::histo, mapHisto_, and theFiles_.
Referenced by MuScleFit::endOfFastLoop(), and TestCorrection::~TestCorrection().
|
protected |
Definition at line 50 of file MuScleFitBase.h.
Referenced by MuScleFit::applyBias(), MuScleFit::applySmearing(), MuScleFit::beginOfJobInConstructor(), MuScleFit::checkDeltaR(), MuScleFit::duringFastLoop(), MuScleFit::duringLoop(), MuScleFit::endOfJob(), TestCorrection::fillMuonCollection(), MuScleFit::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 43 of file MuScleFitBase.h.
Referenced by readProbabilityDistributionsFromFile().
|
protected |
Definition at line 42 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 48 of file MuScleFitBase.h.
Referenced by MuScleFit::beginOfJobInConstructor().
|
protected |
Definition at line 46 of file MuScleFitBase.h.
Referenced by MuScleFit::MuScleFit().
|
protected |
Definition at line 45 of file MuScleFitBase.h.
Referenced by TestCorrection::analyze(), fillHistoMap(), MuScleFit::MuScleFit(), readProbabilityDistributionsFromFile(), MuScleFit::selectMuons(), MuScleFit::takeSelectedMuonType(), and MuScleFit::~MuScleFit().
|
protected |
Definition at line 47 of file MuScleFitBase.h.
Referenced by MuScleFit::beginOfJobInConstructor(), and TestCorrection::TestCorrection().