#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <string>
#include "toolbox.h"
#include "Options.h"
#include "TAxis.h"
#include "TBranch.h"
#include "TCanvas.h"
#include "TChain.h"
#include "TCut.h"
#include "TF1.h"
#include "TFile.h"
#include "TFrame.h"
#include "TH1.h"
#include "TH1D.h"
#include "TH1F.h"
#include "TH2.h"
#include "TH2F.h"
#include "THStack.h"
#include "TLatex.h"
#include "TLegend.h"
#include "TMath.h"
#include "TPad.h"
#include "TPaveText.h"
#include "TRandom.h"
#include "TString.h"
#include "TStyle.h"
#include "TSystem.h"
#include "TTree.h"
#include <boost/filesystem.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/range/adaptor/indexed.hpp>
#include "Alignment/OfflineValidation/interface/FitWithRooFit.h"
Go to the source code of this file.
Classes | |
class | FitOut |
Functions | |
void | Draw_th1d (TH1D *th1d_input, TString variable_name) |
void | Draw_TH1D_forMultiRootFiles (const vector< TString > &file_names, const vector< TString > &label_names, const vector< int > &colors, const vector< int > &styles, const TString &th1d_name, const TString &output_name) |
void | Fitting_GetMassmeanVSvariables (TString inputfile_name, TString output_path) |
int | main (int argc, char *argv[]) |
void | makeNicePlotStyle (RooPlot *plot) |
RooRealVar | MuMu_mass ("MuMu_mass", "MuMu_mass", 70, 110) |
FitOut | ZMassBinFit_OldTool (TH1D *th1d_input, TString s_name="zmumu_fitting", TString output_path="./") |
int | Zmumumerge (int argc, char *argv[]) |
Variables | |
static TString | GT = "" |
static const int | max_file_number = 10 |
TLatex * | tlxg = new TLatex() |
const TString | tstring_variables_name [variables_number] |
static const int | variables_number = 8 |
void Draw_th1d | ( | TH1D * | th1d_input, |
TString | variable_name | ||
) |
Definition at line 126 of file Zmumumerge.cc.
References HltBtagPostValidation_cff::c, GT, and tlxg.
Referenced by Fitting_GetMassmeanVSvariables().
void Draw_TH1D_forMultiRootFiles | ( | const vector< TString > & | file_names, |
const vector< TString > & | label_names, | ||
const vector< int > & | colors, | ||
const vector< int > & | styles, | ||
const TString & | th1d_name, | ||
const TString & | output_name | ||
) |
Definition at line 206 of file Zmumumerge.cc.
References cms::cuda::assert(), HltBtagPostValidation_cff::c, gather_cfg::cout, corrVsCorr::filename, max_file_number, and styles.
Referenced by Zmumumerge().
void Fitting_GetMassmeanVSvariables | ( | TString | inputfile_name, |
TString | output_path | ||
) |
Definition at line 146 of file Zmumumerge.cc.
References gather_cfg::cout, Draw_th1d(), mps_fire::i, dqmiolumiharvest::j, M_PI, FitOut::mean, FitOut::mean_err, tstring_variables_name, variables_number, and ZMassBinFit_OldTool().
Referenced by Zmumumerge().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 307 of file Zmumumerge.cc.
References dir2webdir::argc, GCPpyPlots::argv, and Zmumumerge().
void makeNicePlotStyle | ( | RooPlot * | plot | ) |
RooRealVar MuMu_mass | ( | "MuMu_mass" | , |
"MuMu_mass" | , | ||
70 | , | ||
110 | |||
) |
FitOut ZMassBinFit_OldTool | ( | TH1D * | th1d_input, |
TString | s_name = "zmumu_fitting" , |
||
TString | output_path = "./" |
||
) |
Definition at line 77 of file Zmumumerge.cc.
References alignmentValidation::c1, FitWithRooFit::fit(), FitWithRooFit::gamma(), FitWithRooFit::initA0(), FitWithRooFit::initA1(), FitWithRooFit::initA2(), FitWithRooFit::initA3(), FitWithRooFit::initA4(), FitWithRooFit::initA5(), FitWithRooFit::initA6(), FitWithRooFit::initAlpha(), FitWithRooFit::initExpCoeffA0(), FitWithRooFit::initExpCoeffA1(), FitWithRooFit::initExpCoeffA2(), FitWithRooFit::initFGCB(), FitWithRooFit::initFsig(), FitWithRooFit::initGamma(), FitWithRooFit::initMean(), FitWithRooFit::initMean2(), FitWithRooFit::initN(), FitWithRooFit::initSigma(), FitWithRooFit::initSigma2(), FitWithRooFit::mean(), FitWithRooFit::mean2(), FitWithRooFit::sigma(), FitWithRooFit::useChi2_, multiplicitycorr_cfi::xMax, and photonAnalyzer_cfi::xMin.
Referenced by Fitting_GetMassmeanVSvariables().
int Zmumumerge | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 249 of file Zmumumerge.cc.
References dir2webdir::argc, GCPpyPlots::argv, gather_cfg::cout, Draw_TH1D_forMultiRootFiles(), Fitting_GetMassmeanVSvariables(), mps_fire::i, AlcaSiPixelAliHarvester0T_cff::options, AlCaHLTBitMon_QueryRunRegistry::string, tstring_variables_name, and variables_number.
Referenced by main().
|
static |
Definition at line 65 of file Zmumumerge.cc.
Referenced by Draw_th1d().
|
static |
Definition at line 205 of file Zmumumerge.cc.
Referenced by Draw_TH1D_forMultiRootFiles().
TLatex* tlxg = new TLatex() |
Definition at line 66 of file Zmumumerge.cc.
Referenced by Draw_th1d().
const TString tstring_variables_name[variables_number] |
Definition at line 144 of file Zmumumerge.cc.
Referenced by Fitting_GetMassmeanVSvariables(), and Zmumumerge().
|
static |
Definition at line 143 of file Zmumumerge.cc.
Referenced by Fitting_GetMassmeanVSvariables(), and Zmumumerge().