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