Changeset 13488 for fact/tools
- Timestamp:
- 05/01/12 12:25:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/pixel.C
r13487 r13488 72 72 if (mVerbosityLevel > 2) cout << endl << "...delete current pixel histograms" ; 73 73 74 for (int order = 0; 75 order < mMaxPulseOrder; 76 order ++) 77 { 78 if (mVerbosityLevel > 3) cout << endl << "...deleting hMaxOverlay"; 79 delete hMaxOverlay[order]; 80 81 if (mVerbosityLevel > 3) cout << endl << "...deleting hEdgeOverlay"; 82 delete hEdgeOverlay[order]; 83 84 if (mVerbosityLevel > 3) cout << endl << "...deleting hMaxProfile"; 85 delete hMaxProfile[order]; 86 87 if (mVerbosityLevel > 3) cout << endl << "...deleting hMaxProfile2"; 88 delete hEdgeProfile[order]; 89 } 90 if (mVerbosityLevel > 3) cout << endl << "...deleting histogram Arrays"; 91 delete[] hMaxOverlay; 92 hMaxOverlay = NULL; 93 94 delete[] hEdgeOverlay; 95 hEdgeOverlay = NULL; 96 97 delete[] hMaxProfile; 98 hMaxProfile = NULL; 99 100 delete[] hEdgeProfile; 101 hEdgeProfile = NULL; 102 103 if (mVerbosityLevel > 3) cout << endl << "...deleting hList"; 74 DeletePixelHistos(); 75 DeleteDistributionHistos(); 104 76 delete hList; 105 if (mVerbosityLevel > 2) cout << endl << "...done" << endl; 77 hList = NULL; 78 106 79 }// ~Pixel 107 80 … … 382 355 ); 383 356 } 384 357 // end of SavePixelHistograms 358 //---------------------------------------------------------------------------- 359 360 void 361 Pixel::DeletePixelHistos() 362 { 363 if (mVerbosityLevel > 2) cout << endl << "...delete current overlay histograms" ; 364 365 for (int order = 0; 366 order < mMaxPulseOrder; 367 order ++) 368 { 369 if (mVerbosityLevel > 3) cout << endl << "...deleting hMaxOverlay"; 370 delete hMaxOverlay[order]; 371 372 if (mVerbosityLevel > 3) cout << endl << "...deleting hEdgeOverlay"; 373 delete hEdgeOverlay[order]; 374 375 if (mVerbosityLevel > 3) cout << endl << "...deleting hMaxProfile"; 376 delete hMaxProfile[order]; 377 378 if (mVerbosityLevel > 3) cout << endl << "...deleting hMaxProfile2"; 379 delete hEdgeProfile[order]; 380 } 381 if (mVerbosityLevel > 3) cout << endl << "...deleting histogram Arrays"; 382 delete[] hMaxOverlay; 383 hMaxOverlay = NULL; 384 385 delete[] hEdgeOverlay; 386 hEdgeOverlay = NULL; 387 388 delete[] hMaxProfile; 389 hMaxProfile = NULL; 390 391 delete[] hEdgeProfile; 392 hEdgeProfile = NULL; 393 } 394 // end of DeletePixelHistos 395 //---------------------------------------------------------------------------- 396 397 void 398 Pixel::DeleteDistributionHistos() 399 { 400 if (mVerbosityLevel > 2) cout << endl << "...delete current distribution histograms" ; 401 402 for (int order = 0; 403 order < mMaxPulseOrder; 404 order ++) 405 { 406 if (mVerbosityLevel > 3) cout << endl << "...deleting hMaxOverlay"; 407 delete hSlopeRisingEdge[order]; 408 409 if (mVerbosityLevel > 3) cout << endl << "...deleting hEdgeOverlay"; 410 delete hRisingEdgeToMax[order]; 411 412 if (mVerbosityLevel > 3) cout << endl << "...deleting hMaxProfile"; 413 delete hPosOfMax[order]; 414 415 } 416 if (mVerbosityLevel > 3) cout << endl << "...deleting histogram Arrays"; 417 418 419 delete[] hSlopeRisingEdge; 420 hSlopeRisingEdge = NULL; 421 422 delete[] hRisingEdgeToMax; 423 hRisingEdgeToMax = NULL; 424 425 delete[] hPosOfMax; 426 hPosOfMax = NULL; 427 } 428 // end of DeletePixelHistos 429 //---------------------------------------------------------------------------- 385 430 386 431 //============================= ACESS ===================================
Note:
See TracChangeset
for help on using the changeset viewer.