{
// gROOT->SetBatch(kTRUE);
// runs[runi]->plotSeed();
- runs[runi]->plotSeedThresholdCalibrated();
+ // runs[runi]->plotSeedThresholdCalibrated();
// runs[runi]->plotSeedThreshold();
// runs[runi]->plotSeed();
// runs[runi]->plotSum();
// writeObservableToFile("seed threshold calibrated");
writeObservableToFile("seed threshold");
writeObservableToFile("seed threshold calibrated");
+ writeObservableToFile("sum threshold");
}
Int_t ReadRunList(std::vector<int>* runlist)
for(Int_t runi=0;runi<numberRuns;runi++) // loop over runs read from file
{
TString labbookTempSens=Form("%d",runs[runi]->labbook.tempSens);
- headerInfo+=runs[runi]->runcode+"\t"+labbookTempSens+"\t";
+ TString labbookFrames=Form("%d",runs[runi]->labbook.frames_foundDB);
+ headerInfo+=runs[runi]->runcode+"\t"+labbookTempSens+labbookFrames+"\t\t";
}
TH1F* plothistogrampointer = *runs[0]->plothistogrampointer;
TString runnumberListe=Form("%s_",plothistogrampointer->GetName());
{
plothistogrampointer = *runs[runi]->plothistogrampointer;
runnumberListe+=Form("%d_",runs[runi]->labbook.runnumber);
- header+=Form("%d\t%d_%s\t", runs[runi]->labbook.runnumber, runs[runi]->labbook.runnumber, plothistogrampointer->GetName());
+ header+=Form("%d\t%d_%s\t\t", runs[runi]->labbook.runnumber, runs[runi]->labbook.runnumber, plothistogrampointer->GetName());
}
}
}
fstream* fout = new fstream(filename,ios::out);
*fout << headerInfo << endl;
*fout << header << endl;
- for(Int_t bini=0;bini<plothistogrampointer->GetNbinsX();bini++)
+ for(Int_t bini=0;bini<plothistogrampointer->GetNbinsX();bini++)
{
for(Int_t runi=0;runi<numberRuns;runi++) // loop over runs read from file
{
+
if (runs[runi] != nullptr)
{
if (!runs[runi]->error)
{
plothistogrampointer = *runs[runi]->plothistogrampointer;
TString outline;
- outline=Form("%.1f\t%.1f\t",plothistogrampointer->GetBinCenter(bini),plothistogrampointer->GetBinContent(bini));
+ Float_t histoNorm=plothistogrampointer->GetBinContent(bini)/runs[runi]->labbook.frames_foundDB*10000000;
+ outline=Form("%.1f\t%.1f\t%.1f\t",plothistogrampointer->GetBinCenter(bini),plothistogrampointer->GetBinContent(bini),histoNorm);
*fout<<outline;
}
}