Changeset 14816 for fact/tools/rootmacros
- Timestamp:
- 01/31/13 15:08:32 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/pixel.C
r14812 r14816 54 54 55 55 hList = new TList(); 56 hMemberlist = new TList(); 56 57 57 58 if (mOptions.Contains("C") ) … … 123 124 124 125 hList = new TList(); 126 hMemberlist = new TList(); 125 127 126 128 BookPixelHistos(); … … 149 151 DeletePixelHistos(); 150 152 delete hList; 151 hList = NULL; 153 delete hMemberlist; 154 155 hList = NULL; 156 hMemberlist = NULL; 152 157 if (mVerbosityLevel > 1) 153 158 { … … 327 332 if (mVerbosityLevel > 2) cout << endl << "Saving histograms of Pixel# " << mChid; 328 333 if (!saveResults) return; 329 Save Histograms(334 SaveList( 330 335 outRootFileName, 331 336 CreateSubDirName( mChid ), … … 334 339 mVerbosityLevel 335 340 ); 341 342 TVectorF chid(1); 343 chid[0] = mChid; 344 hMemberlist->Add( chid ); 345 346 TVectorF MaxPulseOrder(1); 347 MaxPulseOrder[0] = mMaxPulseOrder; 348 hMemberlist->Add( MaxPulseOrder ); 349 350 TVectorF PixelOverlayXaxisLeft(1); 351 PixelOverlayXaxisLeft[0] = mPixelOverlayXaxisLeft; 352 hMemberlist->Add( PixelOverlayXaxisLeft ); 353 354 TVectorF PixelOverlayXaxisRight(1); 355 PixelOverlayXaxisRight[0] = mPixelOverlayXaxisRight; 356 hMemberlist->Add( PixelOverlayXaxisRight ); 357 358 TVectorF BSLMean(1); 359 BSLMean[0] = mBSLMean; 360 hMemberlist->Add( BSLMean ); 361 362 TVectorF GainMean(1); 363 GainMean[0] = mGainMean; 364 hMemberlist->Add( GainMean ); 365 366 hMemberlist->Add( mOptions ); 367 368 SaveList( 369 outRootFileName, 370 CreateSubDirName( mChid ), 371 hMemberlist, 372 saveResults, 373 mVerbosityLevel 374 ); 375 376 377 378 379 /* 380 we also need to save same values: 381 382 EXAMPLE 383 root > TFile f("v.root","recreate") 384 root > TVectorD v(1) 385 root > v[0] = 3.14 386 root > v.Write("v") 387 and to read the file do 388 CODE: SELECT ALL 389 root > TFile f("v.root") 390 root > TVectorD *v = (TVectorD*)f.get("v"); 391 root > v->Print() 392 393 */ 336 394 } 337 395 // end of SavePixelHistograms … … 413 471 mPixelOverlayXaxisRight-0.5 , 414 472 512, 415 -55. 25,416 200. 75473 -55.5, 474 200.5 417 475 ); 418 476 … … 437 495 mPixelOverlayXaxisRight-0.5 , 438 496 512, 439 -55. 25,440 200. 75497 -55.5, 498 200.5 441 499 ); 442 500 … … 460 518 mPixelOverlayXaxisRight-0.5 , //xup 461 519 // 512, //nbinsy 462 -55. 25, //ylow463 300. 75, //yup520 -55.5, //ylow 521 300.5, //yup 464 522 "s"); //option 465 523 hMaxProfile[order]->SetAxisRange( … … 484 542 mPixelOverlayXaxisRight-0.5 , //xup 485 543 // 512, //nbinsy 486 -55. 25, //ylow487 300. 75, //yup544 -55.5, //ylow 545 300.5, //yup 488 546 "s"); //option 489 547 hEdgeProfile[order]->SetLineColor(kRed); … … 807 865 // mOptions ="SRM"; ///TODO: get it from the root file 808 866 809 mPixelOverlayXaxisRight = hEdgeOverlay[0]->GetBinCenter( 810 hEdgeOverlay[0]->GetXaxis()->GetFirst() 811 ); 812 813 mPixelOverlayXaxisLeft = hEdgeOverlay[0]->GetBinCenter( 814 hEdgeOverlay[0]->GetXaxis()->GetLast() 815 ); 867 // mPixelOverlayXaxisRight = hEdgeOverlay[0]->GetXaxis()->GetBinLowEdge( 868 // hEdgeOverlay[0]->GetXaxis()->GetFirst() 869 // ); 870 871 // mPixelOverlayXaxisLeft = hEdgeOverlay[0]->GetXaxis()->GetBinUpEdge( 872 // hEdgeOverlay[0]->GetXaxis()->GetLast() 873 // ); 874 875 mPixelOverlayXaxisLeft = hEdgeOverlay[0]->GetBinCenter( 876 hEdgeOverlay[0]->GetXaxis()->GetFirst() 877 ); 878 879 mPixelOverlayXaxisLeft *= -1; 880 881 mPixelOverlayXaxisRight = hEdgeOverlay[0]->GetBinCenter( 882 hEdgeOverlay[0]->GetXaxis()->GetLast() 883 ); 816 884 817 885 }
Note:
See TracChangeset
for help on using the changeset viewer.