Changeset 13539
- Timestamp:
- 05/03/12 12:38:22 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C
r13538 r13539 191 191 const char* drsfilename = "../../data/2011/11/09/20111109_003.drs.fits.gz", 192 192 const char* OutRootFileName = "../../analysis/FPulseTemplate/20111109_006/20111109_006.pulses.root", 193 bool ProduceGraphic = false,193 bool ProduceGraphic = true, 194 194 bool spikeDebug = false, 195 195 bool debugPixel = false, 196 196 bool testmode = false, 197 197 bool saveResults = false, 198 int verbosityLevel = 6, // different verbosity levels can be implemented here198 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 200 int nevents = -1, 201 201 int firstpixel = 0, 202 int npixel = -1,202 int npixel = 1000, 203 203 int sampleSetSize = 40, 204 204 int maxPulseOrder = 3, … … 396 396 // Initialize Pixel 397 397 //---------------------------------------------------------------------------- 398 Pixel** pixel = new Pixel*[ npixel-firstpixel];399 400 for (int i = 0 ; i < (npixel-firstpixel); i++)398 Pixel** pixel = new Pixel*[NPIX]; 399 400 for (int i = 0 ; i < NPIX; i++) 401 401 { 402 402 pixel[i] = NULL; … … 505 505 // spikes are: 1 or 2 slice wide, positive non physical artifacts 506 506 if (verbosityLevel > 2) cout << "...removeing Spikes"; 507 cout << "blaaa" << endl;508 cout << "blaaa" << endl;509 510 507 removeSpikes (Ameas, Vcorr); 511 508 if (verbosityLevel > 2) cout << "...done " << endl; … … 525 522 sliding_avg(Vcfd, Vcfd2, avg2); 526 523 if (verbosityLevel > 2) cout << "...done " << endl; 527 cout << "miauuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu" << endl;528 524 529 525 //------------------------------------- … … 548 544 // Fill Overlay Histos 549 545 //----------------------------------------------------------------------------- 550 cout << endl << "Filling Histograms of Pixel# [Set] " << pixelID 551 << " Pixel# [Got] " << pixel[pixelID]->mChid 552 << " Adress " << &pixel[pixelID] << endl; 546 if (verbosityLevel > 2) 547 { 548 cout << endl << "Filling Histograms of Pixel# [Set] " << pixelID 549 << " Pixel# [Got] " << pixel[pixelID]->mChid; 550 } 553 551 // FillHistograms( 554 552 // pixel[pixelID], … … 560 558 // verbosityLevel 561 559 // ); 562 cout << endl << "got out of fillhisto" << endl;563 560 //----------------------------------------------------------------------------- 564 561 // Spike Debug … … 617 614 //------------------------------------- 618 615 619 cout << endl << "Last Pixel# [Set] " << (firstPixelOfSample + sampleSetSize-1);620 cout << " Pixel# [Got] " << pixel[firstPixelOfSample + sampleSetSize-1]->mChid621 << " Adress " << &pixel[firstPixelOfSample + sampleSetSize-1]622 << " Adress [Got]" << &pixel[firstPixelOfSample + sampleSetSize-1]->mChid;623 616 624 617 }//End of Loop over Events … … 661 654 662 655 //Save Histograms of Pixels into Output rootfile 663 cout << endl << "Saving Pixel# [Set] " << pixelID 664 << " Pixel# [Got] " << pixel[pixelID]->mChid 665 << " Adress " << &pixel[pixelID]; 656 if (verbosityLevel > 2) 657 { 658 cout << endl << "Saving Pixel# [Set] " << pixelID 659 << " Pixel# [Got] " << pixel[pixelID]->mChid; 660 } 666 661 pixel[pixelID]->SavePixelHistograms( OutRootFileName, saveResults ); 667 662 … … 680 675 } 681 676 682 cout << endl << "Deleting Pixel# [Set] " << pixelID 683 << " Pixel# [Got] " << pixel[pixelID]->mChid 684 << " Adress " << &pixel[pixelID] 685 << " ChidAdress " << &pixel[pixelID]->mChid ; 677 if (verbosityLevel > 2) 678 { 679 cout << endl << "Deleting Pixel# [Set] " << pixelID 680 << " Pixel# [Got] " << pixel[pixelID]->mChid; 681 } 686 682 delete pixel[pixelID]; 687 683
Note:
See TracChangeset
for help on using the changeset viewer.