Changeset 13592 for fact/tools
- Timestamp:
- 05/08/12 10:56:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/pixel.C
r13590 r13592 10 10 11 11 //============================= LIFECYCLE ==================================== 12 13 //Pixel::Pixel(int pixelID)14 //{15 // Chid = pixelID;16 // max_puslse_order = 1;17 // hMaxOverlay = NULL;18 // hEdgeOverlay = NULL;19 // hMaxProfile = NULL;20 // hEdgeProfile = NULL;21 // hList = NULL;22 23 //}24 //Pixel::Pixel(25 // int pixelID,26 // int maxPulsorder,27 // int verbosityLevel,28 // bool stats,29 // TFile* filename30 // )31 //{32 // mChid = pixelID;33 // mStats = stats;34 // mMaxPulseOrder = maxPulsorder;35 // mVerbosityLevel = verbosityLevel;36 37 // hMaxOverlay = new TH2F*[mMaxPulseOrder];38 // hEdgeOverlay = new TH2F*[mMaxPulseOrder];39 // hMaxProfile = new TProfile*[mMaxPulseOrder];40 // hEdgeProfile = new TProfile*[mMaxPulseOrder];41 42 // hList = new TObjArray;43 44 // LoadPulseHistos( filename );45 //}46 12 47 13 Pixel::Pixel( … … 50 16 int verbosityLevel, 51 17 bool stats, 52 // TFile* filename, 18 TFile* filename 19 ) 20 { 21 mChid = pixelID; 22 mStats = stats; 23 mMaxPulseOrder = maxPulsorder; 24 mVerbosityLevel = verbosityLevel; 25 mRootFile = filename; 26 27 hMaxOverlay = new TH2F*[mMaxPulseOrder]; 28 hEdgeOverlay = new TH2F*[mMaxPulseOrder]; 29 hMaxProfile = new TProfile*[mMaxPulseOrder]; 30 hEdgeProfile = new TProfile*[mMaxPulseOrder]; 31 32 hList = new TObjArray; 33 34 LoadPulseHistos( ); 35 } 36 37 Pixel::Pixel( 38 int pixelID, 39 int maxPulsorder, 40 int verbosityLevel, 41 bool stats, 42 TFile* filename, 53 43 int pixelOverlayXaxisLeft, 54 44 int pixelOverlayXaxisRight, … … 67 57 mBSLMean = bSLMean; 68 58 mGainMean = gainMean; 59 mRootFile = filename; 69 60 70 61 hMaxOverlay = new TH2F*[mMaxPulseOrder]; … … 126 117 hMaxOverlay[order]=new TH2F( 127 118 HistoName("hMaxOverlay", order), 128 HistoTitle("Overlay of detected pulses of", order),119 HistoTitle("Overlay at peak maximum of detected pulses of", order), 129 120 mPixelOverlayXaxisLeft + mPixelOverlayXaxisRight , 130 121 (-1*mPixelOverlayXaxisLeft)-0.5, … … 288 279 hRisingEdgeToMax[order] = new TH1I ( 289 280 HistoName("hRisingEdgeToMax", order), 290 HistoTitle("Dist ance from rising edge topulse's maximum", order),281 HistoTitle("Distribution of distance between rising edge and pulse's maximum", order), 291 282 x_max -x_min, 292 283 x_min, … … 509 500 510 501 void 511 Pixel::LoadPulseHistos( 512 TFile* filename 513 ) 514 { 515 filename->cd(); 516 filename->cd(CreateSubDirName( mChid )); 502 Pixel::LoadPulseHistos() 503 { 504 mRootFile->cd(); 505 mRootFile->cd(CreateSubDirName( mChid )); 517 506 for (int order = 0; order < mMaxPulseOrder; order++) 518 507 { 519 hMaxOverlay[order] = (TH2F*) filename->Get( HistoName("hMaxOverlay", order) );520 hEdgeOverlay[order] = (TH2F*) filename->Get( HistoName("hEdgeOverlay", order) );521 hMaxProfile[order] = (TProfile*) filename->Get( HistoName("hMaxProfile", order) );522 hEdgeProfile[order] = (TProfile*) filename->Get( HistoName("hEdgeProfile", order) );508 hMaxOverlay[order] = (TH2F*)mRootFile->Get( HistoName("hMaxOverlay", order) ); 509 hEdgeOverlay[order] = (TH2F*)mRootFile->Get( HistoName("hEdgeOverlay", order) ); 510 hMaxProfile[order] = (TProfile*)mRootFile->Get( HistoName("hMaxProfile", order) ); 511 hEdgeProfile[order] = (TProfile*)mRootFile->Get( HistoName("hEdgeProfile", order) ); 523 512 } 524 513 }
Note:
See TracChangeset
for help on using the changeset viewer.