runs[runi]->useDynamicalNoise(true);
runs[runi]->useCommonModeFilter(false);
runs[runi]->fillTTreeWithMoreThenInitialNoiseValues(true);
+
+
// if (runi == 1)
// runs[runi]->setSubMatrixBorders(0,100,0,100);
// if (runi == 2)
// gROOT->SetBatch(kTRUE);
if (!isBatch)
gROOT->SetBatch(kFALSE);
-
+
+
if (analysisis.Contains("clas")) { // classic analysis
compareHistogramClassVector.push_back(runs[runi]->histogram->normalized);
}
if (analysisis.Contains("cali")) { // calibrated analysis
compareHistogramClassVector2.push_back(runs[runi]->histogram->calibrated->normalized);
- }
+ }
+
+ if (analysisis.Contains("signal")) { // calibrated analysis
+ // TODO Delete the following two lines
+ runs[runi]->processed->plotSignal(1000,49000);
+ }
+
+
if (analysisis.Contains("depl")) { // depletion analysis
compareHistogramVector.push_back(runs[runi]->histogramdynamicalthreshold->normalized->SeedPerc);
TH2F *h1 = new TH2F("Frames 0 " , "Frame 0" , fPixels, 0, fPixels, 2*16384, -16384, 16384);
TH2F *h2 = new TH2F("Frames 1" , "Frame 1" , fPixels, 0, fPixels, 2*16384, -16384, 16384);
- TH2F *h3 = new TH2F("CDS" , "CDS" , fPixels, 0, fPixels, 2*16384, -16384, 16384);
+ TH2F *h3 = new TH2F("CDS" , "CDS" , fPixels, 0, fPixels, 2*100, -100, 100);
TH1F *h4 = new TH1F("Frames 0 histo" , "Frames 0 histo" , 2*16384, -16384, 16384);
TH1F *h5 = new TH1F("Frames 1 histo" , "Frames 1 histo" , 2*16384, -16384, 16384);
- TH1F *h6 = new TH1F("CDS histo" , "CDS histo" , 2*16384, -16384, 16384);
+ TH1F *h6 = new TH1F("CDS histo" , "CDS histo" , 2*50, -50, 50);
for(UInt_t i=Start; i<Start+Frames; i++)
{
}
}
-
- TCanvas* cm11;
- cm11 = new TCanvas("cm11","Signal",50,100,1200,800);
+
+ TCanvas* cm11 = new TCanvas(Form("Signal anaylsis %d", run->labbook.runnumber),Form("Signal anaylsis %d", run->labbook.runnumber),50,100,1200,800);
cm11->Divide(3,2);
gStyle->SetOptFit(1011);
gStyle->SetPalette(1);
gStyle->SetCanvasColor(0);
gStyle->SetFrameFillColor(10);
gStyle->SetOptStat(0);
-
+
cm11->cd(1);
h1->Draw("colz");
+ h1->SetTitle("Test1");
h1->GetXaxis()->SetTitle("Pixel#");
- h1->GetYaxis()->SetTitle("Signal");
+ h1->GetYaxis()->SetTitle("F0");
cm11->cd(2);
h2->Draw("colz");
h2->GetXaxis()->SetTitle("Pixel#");
- h2->GetYaxis()->SetTitle("Signal");
+ h2->GetYaxis()->SetTitle("F1");
cm11->cd(3);
h3->Draw("colz");
h3->GetXaxis()->SetTitle("Pixel#");
- h3->GetYaxis()->SetTitle("Signal");
+ h3->GetYaxis()->SetTitle("CDS");
cm11->cd(4);
h4->Draw();
h6->GetXaxis()->SetTitle("Signal [ADC]");
h6->GetYaxis()->SetTitle("Counts");
- cm11->DrawClone();
- cm11->Close();
+ //cm11->DrawClone();
+ //cm11->Close();
cm11->Update();
cout<<"\rSIGNALS plotted! "<<endl;
cout<<"-------------------"<<endl;