18 #include "TMultiGraph.h"
29 <<
" Constructing object...";
48 <<
" Deleting object...";
55 Analyses::iterator ianal;
56 for (ianal =
data().
begin(); ianal !=
data().end(); ianal++) {
64 HistosMap::const_iterator iter =
histos().begin();
67 for (; iter !=
histos().end(); iter++) {
68 if (iter->second.empty()) {
70 <<
" Zero collation histograms found!";
76 Histos::const_iterator ihis = iter->second.begin();
77 for (; ihis != iter->second.end(); ihis++) {
80 profs.push_back(prof);
85 bool isdeconv =
false;
96 for (
int iapv = 0; iapv < 2; iapv++) {
101 algo.fillTunedObservables(iapv);
106 algo.analysis(profs);
115 Analyses::iterator ianal =
data().begin();
116 Analyses::iterator janal =
data().end();
117 for (; ianal != janal; ++ianal) {
119 std::stringstream
ss;
120 ianal->second->print(
ss, 0);
121 ianal->second->print(
ss, 1);
122 if (ianal->second->isValid()) {
135 std::stringstream
ss;
138 if (
ss.str().find(
".root") == std::string::npos) {
146 if (std::getenv(scratch.c_str()) !=
nullptr) {
147 dir = std::getenv(scratch.c_str());
167 <<
" Saving histograms to root file"
168 <<
" (This may take some time!)";
172 <<
" Saved histograms to root file \"" <<
ss.str() <<
"\"!";
181 TMultiGraph* graph_isha =
new TMultiGraph(
"riseTime_vs_isha",
"");
182 TMultiGraph* graph_vfs =
new TMultiGraph(
"decayTime_vs_vfs",
"");
184 bool save_graph_isha =
false;
185 bool save_graph_vfs =
false;
188 Analyses::iterator ianal =
data().begin();
189 Analyses::iterator janal =
data().end();
190 for (; ianal != janal; ++ianal) {
208 for (
size_t igraph = 0; igraph <
anal->decayTimeVsVFS().size(); igraph++) {
209 graph_vfs->Add(
anal->decayTimeVsVFS()[igraph]);
210 anal->decayTimeVsVFS()[igraph]->Write();
211 save_graph_vfs =
true;
214 for (
size_t igraph = 0; igraph <
anal->riseTimeVsISHA().size(); igraph++) {
215 graph_isha->Add(
anal->riseTimeVsISHA()[igraph]);
216 anal->riseTimeVsISHA()[igraph]->Write();
217 save_graph_isha =
true;
220 for (
size_t igraph = 0; igraph <
anal->riseTimeVsISHAVsVFS().size(); igraph++)
221 anal->riseTimeVsISHAVsVFS()[igraph]->Write();
223 for (
size_t igraph = 0; igraph <
anal->decayTimeVsISHAVsVFS().size(); igraph++)
224 anal->decayTimeVsISHAVsVFS()[igraph]->Write();
231 outputFile->cd(
"DQMData/Collate/SiStrip/ControlView");
234 graph_isha->Write(
"riseTime_vs_isha");
236 graph_vfs->Write(
"decayTime_vs_vfs");