diff --git a/Software/ComputePedestals/ComputePedestals.C b/Software/ComputePedestals/ComputePedestals.C index 4b68001..3fcbee0 100644 --- a/Software/ComputePedestals/ComputePedestals.C +++ b/Software/ComputePedestals/ComputePedestals.C @@ -73,7 +73,7 @@ cout << "ComputePedestals reads a ROOT file and creates a ROOT file with the following information:" << endl; cout << "- distribution of the ADC counts of each Beetle;" << endl; - cout << "- distribution of the ADC counts of each Beetle channel (hADCx, with x = {0,...,255};" << endl; + cout << "- distribution of the ADC counts of each Beetle channel (hADCx, with x = {0,...,255});" << endl; cout << "- mean of the above distribution as a function of the Beetle channel (the pedestal);" << endl; cout << "- RMS of the above distribution as a function of the Beetle channel (the noise);" << endl; cout << "- distribution of the pedestals of each Beetle;" << endl; @@ -86,7 +86,7 @@ cout << "**************************************************" << endl; cout << "Compile with:" << endl; - cout << "g++ `root-config --glibs --cflags` ComputePedestals.C -o ComputePedestals" << endl; + cout << "make" << endl; cout << "Run with:" << endl; cout << "./ComputePedestals [input ROOT file]" << endl; cout << "where [input ROOT file] is the complete path, including the folder and the filename, of the file one wants to process." << endl; @@ -241,6 +241,10 @@ } } + // Change the margins. + cADCBeetle1->SetTopMargin(0.1); + cADCBeetle2->SetTopMargin(0.1); + DrawHist(cADCBeetle1,hADCBeetle1,"",path_to_figures); DrawHist(cADCBeetle2,hADCBeetle2,"",path_to_figures); @@ -272,7 +276,6 @@ // Fill histograms. TH1F *hADC[N]; - // TPaveStats *sADC[N]; TCanvas *cADC[N]; float pedestal[N]; @@ -293,10 +296,6 @@ cout << "Error! ADC counts of Beetle channel " << ch << ": " << ADC->at(ch) << endl; } - // Draw histograms. - // sADC[ch] = CreateStats(hADC[ch],"IUO"); - // DrawHistStats(cADC[ch],hADC[ch],sADC[ch],"",path_to_figures); - // Get mean and RMS (that is, pedestal and noise). pedestal[ch] = hADC[ch]->GetMean(); noise[ch] = hADC[ch]->GetRMS(); @@ -333,6 +332,10 @@ hpedestalvsstrip->SetFillColor(kAzure); hnoisevsstrip->SetFillColor(kRed); + // Stats. + hpedestalvsstrip->SetStats(0); + hnoisevsstrip->SetStats(0); + DrawHist(cpedestalvsstrip,hpedestalvsstrip,"",path_to_figures); DrawHist(cnoisevsstrip,hnoisevsstrip,"",path_to_figures);