Changeset 13598
- Timestamp:
- 05/08/12 13:17:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C
r13595 r13598 180 180 void ProduceDebugHistos( vector<Region> *pZXings); 181 181 bool UseThisPulse( int, int, int, int, int, int); 182 void UpdateCanvases( int, int );182 void UpdateCanvases( int, int, bool); 183 183 void DeletePixelCanvases( int, int ); 184 184 … … 196 196 bool debugPixel = true, 197 197 bool testmode = false, 198 bool saveResults = false,198 bool saveResults = true, 199 199 int verbosityLevel = 1, // different verbosity levels can be implemented here 200 200 int firstevent = 1, // Hast to be between 1 and infinity NOT 0!!!! 201 int nevents = 100 00,201 int nevents = 100, 202 202 int firstpixel = 15, 203 203 int npixel = 3, … … 278 278 cTitle ="Distributions of Pulses with Order of: "; 279 279 cTitle += pulse_order; 280 cgpDistributions[pulse_order] = new TCanvas(cName,cTitle, 0,pulse_order*20,800,800);280 cgpDistributions[pulse_order] = new TCanvas(cName,cTitle, 720,pulse_order*20,720,720); 281 281 cgpDistributions[pulse_order]->Divide(2, 2); 282 282 cName ="cgpPixelPulses"; … … 284 284 cTitle ="Overlays of Pulses with Order of: "; 285 285 cTitle += pulse_order; 286 cgpPixelPulses[pulse_order] = new TCanvas(cName,cTitle, 0,pulse_order*20, 800,800);286 cgpPixelPulses[pulse_order] = new TCanvas(cName,cTitle, 0,pulse_order*20,720,720); 287 287 cgpPixelPulses[pulse_order]->Divide(2, 2); 288 288 } … … 295 295 if (spikeDebug) 296 296 { 297 cFiltered = new TCanvas("cFiltered","filtered DRS Waveforms", 1 ,310,400,300);297 cFiltered = new TCanvas("cFiltered","filtered DRS Waveforms", 1080,420,360,360); 298 298 cFiltered->Divide(1, 3); 299 299 } 300 300 301 if (testmode) 302 { 301 303 //additional Test histograms 302 cgpTestHistos = new TCanvas( "cgpTestHistos", "Test Histograms", 801, 0, 800, 800 );304 cgpTestHistos = new TCanvas( "cgpTestHistos", "Test Histograms", 360, 420, 360, 360 ); 303 305 cgpTestHistos->Divide(2,0); 306 } 304 307 } 305 308 … … 600 603 UpdateCanvases( 601 604 verbosityLevel, 602 maxPulseOrder 605 maxPulseOrder, 606 testmode 603 607 ); 604 608 } … … 649 653 650 654 UpdateCanvases( 651 verbosityLevel, 652 maxPulseOrder 655 verbosityLevel, 656 maxPulseOrder, 657 testmode 653 658 ); 654 659 } … … 709 714 UpdateCanvases( 710 715 verbosityLevel, 711 maxPulseOrder 716 maxPulseOrder, 717 testmode 712 718 ); 713 719 … … 723 729 verbosityLevel 724 730 ); 725 delete cgpTestHistos; 731 732 if (testmode) 733 delete cgpTestHistos; 726 734 727 735 if (spikeDebug) … … 976 984 UpdateCanvases( 977 985 int verbosityLevel, 978 int max_pulse_order 986 int max_pulse_order, 987 bool testmode 979 988 ) 980 989 { … … 986 995 cgpDistributions[pulse_order]->Modified(); 987 996 cgpDistributions[pulse_order]->Update(); 988 cgpTestHistos->Modified(); 989 cgpTestHistos->Update(); 997 if ( testmode ) 998 { 999 cgpTestHistos->Modified(); 1000 cgpTestHistos->Update(); 1001 } 990 1002 } 991 1003 }
Note:
See TracChangeset
for help on using the changeset viewer.