Bool_t Run::calculteCCE()
{
- if (labbook.source.Contains("Fe"))
+ if (labbook.source.Contains("Fe")||labbook.source.Contains("Cd"))
{
if (histogram.posSeed > 0 && histogram.posVeto > 0)
CCE_in_Perc_1 = histogram.posSeed / histogram.posVeto * 100.0;
histogram.Sum->Fill(pixelSum);
// veto spectrum
- if (TMath::Abs(notSeedSum) < systemparamcur.vetothreshold && labbook.source.Contains("Fe"))
+ if (TMath::Abs(notSeedSum) < systemparamcur.vetothreshold && (labbook.source.Contains("Fe")||labbook.source.Contains("Cd")))
histogram.Veto->Fill(processed->fFrameInfo.p[12][hiti]); // histogram with the single pixel
if (processed->fFrameInfo.pixelthreshold[hiti]>0)
{
histogramthreshold.Seed->Fill(processed->fFrameInfo.p[12][hiti]);
histogramthreshold.Sum->Fill(pixelSum);
- if (TMath::Abs(notSeedSum) < systemparamcur.vetothreshold && labbook.source.Contains("Fe"))
+ if (TMath::Abs(notSeedSum) < systemparamcur.vetothreshold && (labbook.source.Contains("Fe")||labbook.source.Contains("Cd")))
histogramthreshold.Veto->Fill(processed->fFrameInfo.p[12][hiti]); // histogram with the single pixel
}
}
}
}
// gROOT->SetBatch(kTRUE);
- if (labbook.source.Contains("Fe"))
+ if (labbook.source.Contains("Fe")||labbook.source.Contains("Cd"))
histogram.posVeto=FitPerform(histogram.Veto, "gaus", true);
histogram.posSeed=FitPerform(histogram.Seed, "landau", true);
histogram.posSum=FitPerform(histogram.Sum, "gaus", true);
- if (labbook.source.Contains("Fe"))
+ if (labbook.source.Contains("Fe")||labbook.source.Contains("Cd"))
histogramthreshold.posVeto=FitPerform(histogram.Veto, "gaus", false);
histogramthreshold.posSeed=FitPerform(histogram.Seed, "landau", false);
histogramthreshold.posSum=FitPerform(histogram.Sum, "gaus", false);
histogramstructpointer->Sum->SetAxisRange(0,lastbin*1.1,"X");
canvas->cd(3);
histogramstructpointer->Veto->Draw();
- if (labbook.source.Contains("Fe"))
+ if (labbook.source.Contains("Fe")||labbook.source.Contains("Cd"))
plotVerticalLine(histogramstructpointer->Veto, histogramstructpointer->posVeto);
histogramstructpointer->Veto->SetAxisRange(histogramstructpointer->posVeto*0.7,histogramstructpointer->posVeto*1.4,"X");
canvas->cd(4);