36 #ifndef PLOTCOHERENCE_HH
37 #define PLOTCOHERENCE_HH
43 #include "TMultiGraph.h"
55 const bool saveEps =
false,
56 const int* graphColors = NULL,
57 const bool drawLegend =
true,
58 const std::string& graphTitle =
"",
59 const char* drawOption =
"AP",
60 const std::string& selectExpr =
"",
61 const std::string& branchName =
"fitResult_v2");
68 const bool saveEps =
false,
69 const int graphColor = kBlack,
70 const bool drawLegend =
false,
71 const std::string& graphTitle =
"",
72 const char* drawOption =
"AP",
73 const std::string& selectExpr =
"",
74 const std::string& branchName =
"fitResult_v2")
76 return plotCoherence(1, &tree, waveIndexA, waveIndexB, saveEps, &graphColor,
77 drawLegend, graphTitle, drawOption, selectExpr, branchName);
86 const std::string& waveNameA,
87 const std::string& waveNameB,
88 const bool saveEps =
false,
89 const int* graphColors = NULL,
90 const bool drawLegend =
true,
91 const std::string& graphTitle =
"",
92 const char* drawOption =
"AP",
93 const std::string& selectExpr =
"",
94 const std::string& branchName =
"fitResult_v2")
97 printErr <<
"null pointer to tree. exiting." << std::endl;
102 trees[0]->SetBranchAddress(branchName.c_str(), &massBin);
103 trees[0]->GetEntry(0);
104 const int indexA = massBin->
waveIndex(waveNameA);
105 const int indexB = massBin->
waveIndex(waveNameB);
106 if ((indexA >= 0) && (indexB >= 0))
107 return plotCoherence(nmbTrees, trees, indexA, indexB, saveEps, graphColors, drawLegend,
108 graphTitle, drawOption, selectExpr, branchName);
109 printErr <<
"cannot find wave(s) in tree '" << trees[0]->GetName() <<
"'. exiting." << std::endl;
116 const std::string& waveNameA,
117 const std::string& waveNameB,
118 const bool saveEps =
false,
119 const int graphColor = kBlack,
120 const bool drawLegend =
false,
121 const std::string& graphTitle =
"",
122 const char* drawOption =
"AP",
123 const std::string& selectExpr =
"",
124 const std::string& branchName =
"fitResult_v2")
126 return plotCoherence(1, &tree, waveNameA, waveNameB, saveEps, &graphColor,
127 drawLegend, graphTitle, drawOption, selectExpr, branchName);
131 #endif // PLOTCOHERENCE_HH