Changeset 13540
- Timestamp:
- 05/03/12 12:47:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C
r13539 r13540 188 188 //---------------------------------------------------------------------------- 189 189 int FPulseOverlay( 190 const char* datafilename = " ../../data/2011/11/09/20111109_006.fits.gz",191 const char* drsfilename = " ../../data/2011/11/09/20111109_003.drs.fits.gz",192 const char* OutRootFileName = " ../../analysis/FPulseTemplate/20111109_006/20111109_006.pulses.root",190 const char* datafilename = "/fact/raw/2011/11/09/20111109_006.fits.gz", 191 const char* drsfilename = "/fact/raw/2011/11/09/20111109_003.drs.fits.gz", 192 const char* OutRootFileName = "test.root", 193 193 bool ProduceGraphic = true, 194 194 bool spikeDebug = false, … … 198 198 int verbosityLevel = 1, // different verbosity levels can be implemented here 199 199 int firstevent = 1, // Hast to be between 1 and infinity NOT 0!!!! 200 int nevents = -1,200 int nevents = 100, 201 201 int firstpixel = 0, 202 202 int npixel = 1000, … … 475 475 histoOptions 476 476 ); 477 cout << "Created Pixel# Set " << pixelID478 << " Pixel# Get " << pixel[pixelID]->mChid479 << " Adress " << &pixel[pixelID] << endl;480 481 477 } 482 478 … … 549 545 << " Pixel# [Got] " << pixel[pixelID]->mChid; 550 546 } 551 //FillHistograms(552 //pixel[pixelID],553 //pZXings,554 //AmplWindowWidth,555 //ev,556 //histoOptions,557 //maxPulseOrder,558 //verbosityLevel559 //);547 FillHistograms( 548 pixel[pixelID], 549 pZXings, 550 AmplWindowWidth, 551 ev, 552 histoOptions, 553 maxPulseOrder, 554 verbosityLevel 555 ); 560 556 //----------------------------------------------------------------------------- 561 557 // Spike Debug … … 614 610 //------------------------------------- 615 611 616 617 612 }//End of Loop over Events 618 613 //------------------------------------- … … 820 815 ) 821 816 { 822 cout << endl << "begin Pixel " << CurrentPixel->mChid << endl;823 817 if (verbosityLevel > 2) cout << endl << "...filling pulse histograms" ; 824 818 bool use_this_peak=false; 825 819 int order_of_pulse=0; 826 820 vector<Region>::iterator reg; 827 cout << endl << "begin for " << endl;828 821 //Loop over all found zerocrossings in Region 829 822 for (reg = pZXings->begin() ; reg < pZXings->end() ; reg++) 830 823 { 831 cout << endl << "for" << endl;832 824 //skip those who are at the Rim of the ROI 833 825 if (reg->maxPos < 12 || (unsigned int) reg->maxPos > gRegionOfInterest-12) … … 836 828 continue; 837 829 } 838 cout << endl << "def" << endl;839 830 // Define axis range of Histogram 840 831 int Left = reg->maxPos - gPixelOverlayXaxisLeft; … … 854 845 855 846 //determine order of pulse and which histogram shall be filled 856 // if (verbosityLevel > 2)857 cout << endl << "\t...choosing Histogram" ;858 847 for(int order = 0; order < maxPulseOrder; order++) 859 848 { … … 881 870 } 882 871 } 883 cout << endl << "middle" << endl;884 872 //Fill overlay und profile histograms 885 873 if (use_this_peak){ 886 // if (verbosityLevel > 2)887 cout << "...filling" ;888 874 for ( int pos = Left; pos < Right; pos++){ 889 875 // if (); … … 904 890 } 905 891 if (verbosityLevel > 2) cout << "...done" << endl; 906 cout << endl << "end" << endl;907 892 } 908 893 // end of FillHistograms
Note:
See TracChangeset
for help on using the changeset viewer.