File indexing completed on 2024-04-06 12:22:43
0001 #include <MuonAnalysis/MomentumScaleCalibration/test/Macros/RooFit/MultiHistoOverlapAll_Z.C>
0002
0003 template <typename T> string separatebycommas(vector<T> v){
0004 if (v.size()==0) return "";
0005 stringstream s;
0006 s << v[0];
0007 for (unsigned int i = 1; i < v.size(); i++) s << "," << v[i];
0008 return s.str();
0009 }
0010 void MultiHistoOverlap_Z(){
0011 vector<string> filenames; vector<string> titles; vector<int> colors; vector<int> linestyles; vector<int> markerstyles;
0012 filenames.push_back("./BiasCheck.root"); titles.push_back("Data"); colors.push_back(1); linestyles.push_back(1); markerstyles.push_back(20);
0013 filenames.push_back("./BiasCheck_Reference.root"); titles.push_back("Reference"); colors.push_back(600); linestyles.push_back(1); markerstyles.push_back(1);
0014
0015 TkAlStyle::legendheader = "";
0016 TkAlStyle::set(INTERNAL, NONE, "", "");
0017
0018 MultiHistoOverlapAll_Z(separatebycommas(filenames), separatebycommas(titles), separatebycommas(colors), separatebycommas(linestyles), separatebycommas(markerstyles), "./plots", false);
0019 }