19 #include <QMainWindow>
51 delete PlotMainWindow;
59 return QString(
"baryon_");
63 return QString(
"gamma_");
65 return QString(
"lepton_");
67 return QString(
"meson_");
69 return QString(
"neutron_");
71 return QString(
"nucleus_");
73 return QString(
"pi_");
75 return QString(
"proton_");
83 ,
"System for displaying particle spectrum histograms"
84 ,
"Vakho Tsulaia <tsulaia@mail.cern.ch>")
132 if (
state.version()!=0) {
133 message(
"Warning: State data in .vp1 file is in wrong format - ignoring!");
143 state.disableUnrestoredChecks();
161 std::ostringstream copyNumberStream;
162 copyNumberStream << copyNumber;
164 while(
path.size()>1){
165 QString dirBase=
path.pop().replace(QString(
"::"),QString(
"_"));
168 directory = (dirBase.toStdString()+
"_"+copyNumberStream.str()).c_str();
170 directory = (dirBase.toStdString()+
"_0").c_str();
182 QString entredHistoName = histogramName +
"entred_";
183 QString entredHistoName_n = histogramName +
"entred_";
184 QString entredHistoName_0 = histogramName +
"entred_";
185 QString madeinHistoName = histogramName +
"madein_";
187 QString histoNameBody =
path.pop().replace(QString(
"::"),QString(
"_"))+QString(
"_hist");
188 QString histoNameBody_n = histoNameBody+QString(
"_") + QString(copyNumberStream.str().c_str())+QString(
"_hist");
190 QString histoNameBody_0 = histoNameBody+QString(
"_0_hist");
192 histogramName += histoNameBody;
195 entredHistoName += histoNameBody;
196 entredHistoName_n += histoNameBody_n;
197 entredHistoName_0 += histoNameBody_0;
199 TObject* entredObject = gROOT->FindObject(entredHistoName.toStdString().c_str());
201 entredObject = gROOT->FindObject(entredHistoName_n.toStdString().c_str());
203 entredObject = gROOT->FindObject(entredHistoName_0.toStdString().c_str());
205 message(QString(
"Unable to find histogram ") + entredHistoName);
208 madeinHistoName += histoNameBody_0;
212 madeinHistoName += histoNameBody_n;
216 madeinHistoName += histoNameBody;
226 tHist1F1 =
dynamic_cast<TH1F*
> (entredObject);
230 TObject* madeinObject = gROOT->FindObject(madeinHistoName.toStdString().c_str());
232 message(QString(
"Unable to find histogram ") + madeinHistoName);
235 tHist1F2 =
dynamic_cast<TH1F*
> (madeinObject);
237 tHist1F1 =
dynamic_cast<TH1F*
> (madeinObject);
243 message(
"Unable to find either entred or madein histograms");