Changeset 13520 for fact/tools
- Timestamp:
- 05/02/12 17:23:19 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/pixel.C
r13501 r13520 66 66 Pixel::~Pixel() 67 67 { 68 if (mVerbosityLevel > 2) cout << endl << "...delete current pixel histograms";68 if (mVerbosityLevel > 1) cout << endl << "...delete histograms of pixel " << mChid ; 69 69 70 70 DeletePixelHistos(); 71 71 DeleteDistributionHistos(); 72 72 73 delete hList; 73 74 hList = NULL; … … 358 359 ) 359 360 { 361 cout << endl << "Saving histograms of Pixel# " << mChid 362 << " Adress " << &mChid; 360 363 if (!saveResults) return; 364 cout << endl << "#### "; 361 365 SaveHistograms( 362 366 outRootFileName, … … 374 378 { 375 379 if (mVerbosityLevel > 2) cout << endl << "\t...delete current overlay histograms" ; 376 377 for (int order = 0; 378 order < mMaxPulseOrder; 379 order ++) 380 { 381 if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hMaxOverlay"; 382 delete hMaxOverlay[order]; 383 384 if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hEdgeOverlay"; 385 delete hEdgeOverlay[order]; 386 387 if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hMaxProfile"; 388 delete hMaxProfile[order]; 389 390 if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hMaxProfile2"; 391 delete hEdgeProfile[order]; 392 } 380 cout << endl << "Deleting histograms of Pixel# " << mChid 381 << " Adress " << &mChid; 382 // for (int order = 0; 383 // order < mMaxPulseOrder; 384 // order ++) 385 // { 386 //// if (mVerbosityLevel > 3) 387 // cout << endl << "\t\t...deleting hMaxOverlay" 388 // << mChid << "_" << order 389 // << " hMaxOverlay[order] adr " << hMaxOverlay[order] 390 // << " hMaxOverlay adr " << hMaxOverlay 391 // ; 392 393 // delete hMaxOverlay[order]; 394 // hMaxOverlay[order] = NULL; 395 396 // if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hEdgeOverlay" 397 // << mChid << "_" << order ; 398 // delete hEdgeOverlay[order]; 399 // hEdgeOverlay[order] = NULL; 400 401 // if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hMaxProfile" 402 // << mChid << "_" << order ; 403 // delete hMaxProfile[order]; 404 // hMaxProfile[order] = NULL; 405 406 // if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hMaxProfile2" 407 // << mChid << "_" << order ; 408 // delete hEdgeProfile[order]; 409 // hEdgeProfile[order] = NULL; 410 // } 393 411 if (mVerbosityLevel > 3) cout << endl << "\t...deleting histogram Arrays"; 412 413 if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hMaxOverlay"; 394 414 delete[] hMaxOverlay; 395 415 hMaxOverlay = NULL; 396 416 417 if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hEdgeOverlay"; 397 418 delete[] hEdgeOverlay; 398 419 hEdgeOverlay = NULL; 399 420 421 if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hMaxProfile"; 400 422 delete[] hMaxProfile; 401 423 hMaxProfile = NULL; 402 424 425 if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hEdgeProfile"; 403 426 delete[] hEdgeProfile; 404 427 hEdgeProfile = NULL; … … 413 436 << "\t...delete current distribution histograms" ; 414 437 415 for (int order = 0;416 order < mMaxPulseOrder;417 order ++)418 {419 if (mOptions.Contains("S"))420 {421 if (mVerbosityLevel > 3) cout << endl422 << "\t\t...deleting hSlopeRisingEdge"423 << mChid << "_" << order ;424 delete hSlopeRisingEdge[order];425 }426 427 if (mOptions.Contains("R"))428 {429 if (mVerbosityLevel > 3) cout << endl430 << "\t\t...deleting hRisingEdgeToMax"431 << mChid << "_" << order ;432 // delete hRisingEdgeToMax[order];433 }434 435 if (mOptions.Contains("P"))436 {437 if (mVerbosityLevel > 3) cout << endl438 << "\t\t...deleting hPosOfMax"439 << mChid << "_" << order ;440 441 // delete hPosOfMax[order];442 }443 444 }438 // for (int order = 0; 439 // order < mMaxPulseOrder; 440 // order ++) 441 // { 442 // if (mOptions.Contains("S")) 443 // { 444 // if (mVerbosityLevel > 3) cout << endl 445 // << "\t\t...deleting hSlopeRisingEdge" 446 // << mChid << "_" << order ; 447 // delete hSlopeRisingEdge[order]; 448 // } 449 450 // if (mOptions.Contains("R")) 451 // { 452 // if (mVerbosityLevel > 3) cout << endl 453 // << "\t\t...deleting hRisingEdgeToMax" 454 // << mChid << "_" << order ; 455 //// delete hRisingEdgeToMax[order]; 456 // } 457 458 // if (mOptions.Contains("P")) 459 // { 460 // if (mVerbosityLevel > 3) cout << endl 461 // << "\t\t...deleting hPosOfMax" 462 // << mChid << "_" << order ; 463 464 //// delete hPosOfMax[order]; 465 // } 466 467 // } 445 468 if (mVerbosityLevel > 3) cout << endl << "\t...deleting histogram Arrays"; 446 469 … … 448 471 { 449 472 if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hSlopeRisingEdge"; 450 //delete[] hSlopeRisingEdge;473 delete[] hSlopeRisingEdge; 451 474 hSlopeRisingEdge = NULL; 452 475 } … … 455 478 { 456 479 if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hRisingEdgeToMax"; 457 //delete[] hRisingEdgeToMax;480 delete[] hRisingEdgeToMax; 458 481 hRisingEdgeToMax = NULL; 459 482 } … … 462 485 { 463 486 if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hPosOfMax"; 464 //delete[] hPosOfMax;487 delete[] hPosOfMax; 465 488 hPosOfMax = NULL; 466 489 }
Note:
See TracChangeset
for help on using the changeset viewer.