Changeset 12393 for fact/tools/rootmacros/fpeak_cfd.C
- Timestamp:
- 11/05/11 13:36:45 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/fpeak_cfd.C
r12385 r12393 132 132 RegionOfInterest, NumberOfPixels, PXLxROI, verbosityLevel); 133 133 if (NEvents == 0){ 134 cout << "return code of FOpenDataFile:" << datafilename<< endl;134 cout << "return code of OpenDataFile:" << datafilename<< endl; 135 135 cout << "is zero -> aborting." << endl; 136 136 return 1; … … 159 159 160 160 BookHistos( ); 161 161 //----------------------------------------------------------------------------- 162 // Loops over Every Event and Pixel 163 //----------------------------------------------------------------------------- 162 164 for ( int ev = firstevent; ev < firstevent + nevents; ev++) { 163 165 // Get an Event --> consists of 1440 Pixel ...erm....data … … 287 289 if (ProduceGraphic){ 288 290 TCanvas * cSpektrum; 289 cSpektrum = new TCanvas("cSpektrum","Amplitude Spektr a of different discriminators",10,10,400,400);291 cSpektrum = new TCanvas("cSpektrum","Amplitude Spektrum",10,10,400,400); 290 292 cSpektrum->Divide(1,1); 291 293 cSpektrum->cd(1); … … 302 304 // histograms for baseline extraction 303 305 304 TString name,title;305 title = "all events all slices of pixel ";306 name = "base";307 308 306 hAmplSpek_cfd = new TH2F("hAmplSpek_cfd","amplitude spektrum - CFD",1440,-0.5,1439.5, 256, -27.5, 100.5); 309 307 hAmplSpek_cfd->GetXaxis()->SetTitle( "pixel" );
Note:
See TracChangeset
for help on using the changeset viewer.