Go to the documentation of this file. 1 #ifndef MUSCLEFITBASE_H
2 #define MUSCLEFITBASE_H
22 "ProbabilitiesFileInPath",
"MuonAnalysis/MomentumScaleCalibration/test/Probs_new_Horace_CTEQ_1000.root")),
29 iConfig.getUntrackedParameter<
std::
string>(
"OutputGenInfoFileName",
"genSimRecoPlots.root")),
30 debug_(iConfig.getUntrackedParameter<
int>(
"debug", 0)) {}
58 ProbForIntegral(
const double& massResol,
const int iRes,
const int iY,
const bool isZ)
std::vector< MuonPair > muonPairs_
Used to store the muon pairs plus run and event number prior to the creation of the internal tree.
std::vector< GenMuonPair > genMuonPairs_
Stores the genMuon pairs and the motherId prior to the creation of the internal tree.
ProbForIntegral(const double &massResol, const int iRes, const int iY, const bool isZ)
void readProbabilityDistributionsFromFile()
Read probability distributions from a local root file.
std::vector< TFile * > theFiles_
The files were the histograms are saved.
std::string probabilitiesFileInPath_
edm::InputTag theMuonLabel_
std::string theRootFileName_
Functor used to compute the normalization integral of probability functions.
void fillHistoMap(TFile *outputFile, unsigned int iLoop)
Create the histograms map.
MuScleFitBase(const edm::ParameterSet &iConfig)
std::string probabilitiesFile_
static double GLNorm[6][1001]
std::string theGenInfoRootFileName_
static double GLZNorm[40][1001]
static double probability(const double &mass, const double &massResol, const double GLvalue[][1001][1001], const double GLnorm[][1001], const int iRes, const int iY)
Computes the probability given the mass, mass resolution and the arrays with the probabilities and th...
void clearHistoMap()
Clean the histograms map.
int theCompressionSettings_
double operator()(const double *mass, const double *)
static double GLZValue[40][1001][1001]
static double GLValue[6][1001][1001]
virtual ~MuScleFitBase() noexcept(false)
std::map< std::string, Histograms * > mapHisto_
The map of histograms.
void writeHistoMap(const unsigned int iLoop)
Save the histograms map to file.