44 #include "TMultiGraph.h"
56 const bool saveEps =
false,
57 const int* graphColors = NULL,
58 const bool drawLegend =
true,
59 const std::string& graphTitle =
"",
60 const char* drawOption =
"AP",
61 const std::string& selectExpr =
"",
62 const std::string& branchName =
"fitResult_v2");
70 const bool saveEps =
false,
71 const std::vector<int>& graphColors = std::vector<int>(),
72 const bool drawLegend =
true,
73 const std::string& graphTitle =
"",
74 const char* drawOption =
"AP",
75 const std::string& selectExpr =
"",
76 const std::string& branchName =
"fitResult_v2")
78 return plotPhase(trees.size(), &(*(trees.begin())), waveIndexA, waveIndexB, saveEps,
79 &(*(graphColors.begin())), drawLegend, graphTitle, drawOption,
80 selectExpr, branchName);
89 const bool saveEps =
false,
90 const int graphColor = kBlack,
91 const bool drawLegend =
false,
92 const std::string& graphTitle =
"",
93 const char* drawOption =
"AP",
94 const std::string& selectExpr =
"",
95 const std::string& branchName =
"fitResult_v2")
97 return plotPhase(1, &tree, waveIndexA, waveIndexB, saveEps, &graphColor,
98 drawLegend, graphTitle, drawOption, selectExpr, branchName);
108 const std::string& waveNameA,
109 const std::string& waveNameB,
110 const bool saveEps =
false,
111 const int* graphColors = NULL,
112 const bool drawLegend =
true,
113 const std::string& graphTitle =
"",
114 const char* drawOption =
"AP",
115 const std::string& selectExpr =
"",
116 const std::string& branchName =
"fitResult_v2")
119 printErr <<
"null pointer to tree[" << 0 <<
"]. exiting." << std::endl;
124 trees[0]->SetBranchAddress(branchName.c_str(), &massBin);
125 trees[0]->GetEntry(0);
126 const int indexA = massBin->
waveIndex(waveNameA);
127 const int indexB = massBin->
waveIndex(waveNameB);
128 if ((indexA >= 0) && (indexB >= 0))
129 return plotPhase(nmbTrees, trees, indexA, indexB, saveEps, graphColors, drawLegend,
130 graphTitle, drawOption, selectExpr, branchName);
131 printErr <<
"cannot find wave(s) in tree '" << trees[0]->GetName() <<
"'. aborting." << std::endl;
139 const std::string& waveNameA,
140 const std::string& waveNameB,
141 const bool saveEps =
false,
142 const std::vector<int>& graphColors = std::vector<int>(),
143 const bool drawLegend =
true,
144 const std::string& graphTitle =
"",
145 const char* drawOption =
"AP",
146 const std::string& selectExpr =
"",
147 const std::string& branchName =
"fitResult_v2")
149 return plotPhase(trees.size(), &(*(trees.begin())), waveNameA, waveNameB, saveEps,
150 &(*(graphColors.begin())), drawLegend, graphTitle, drawOption,
151 selectExpr, branchName);
158 const std::string& waveNameA,
159 const std::string& waveNameB,
160 const bool saveEps =
false,
161 const int graphColor = kBlack,
162 const bool drawLegend =
false,
163 const std::string& graphTitle =
"",
164 const char* drawOption =
"AP",
165 const std::string& selectExpr =
"",
166 const std::string& branchName =
"fitResult_v2")
168 return plotPhase(1, &tree, waveNameA, waveNameB, saveEps, &graphColor,
169 drawLegend, graphTitle, drawOption, selectExpr, branchName);
173 #endif // PLOTPHASE_HH