Changeset 13655 for fact/tools/rootmacros
- Timestamp:
- 05/11/12 23:09:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/pixelsum.C
r13648 r13655 13 13 int verbosityLevel, 14 14 bool stats, 15 TFile* filename 15 TFile* filename, 16 int pixelOverlayXaxisLeft, 17 int pixelOverlayXaxisRight, 18 float bSLMean, 19 float gainMean, 20 TString options 16 21 ) 17 22 :Pixel( … … 20 25 verbosityLevel, 21 26 stats, 22 filename 27 filename, 28 pixelOverlayXaxisLeft, 29 pixelOverlayXaxisRight, 30 bSLMean, 31 gainMean, 32 options 23 33 ) 24 34 { … … 32 42 mhDistSlopeRiseEdge = new TH1F*[mMaxPulseOrder]; 33 43 mhDistSlopeFallEdge = new TH1F*[mMaxPulseOrder]; 44 45 BookSumHistos(); 46 BookSumDistributionHistos(); 34 47 } 35 48 … … 38 51 if (mVerbosityLevel > 1) cout << endl << "...delete histograms of pixelSum " << mChid ; 39 52 40 Delete Histos();41 Delete DistributionHistos();53 DeleteSumHistos(); 54 DeleteSumDistributionHistos(); 42 55 43 56 }// ~PixelSum … … 61 74 /////////////////////////////// PRIVATE /////////////////////////////////// 62 75 void 63 PixelSum::Book Histos()76 PixelSum::BookSumHistos() 64 77 { 65 78 if (mVerbosityLevel > 2) cout << endl << "...book pixel histograms" << endl; … … 74 87 mhMaxByChid[order], 75 88 "mhMaxByChid", 76 "Distribution of Templates extracted with Max" 89 "Distribution of Templates extracted with Max", 90 order 77 91 ); 78 92 … … 102 116 MakeTH2Pretty( 103 117 mhMedianByChid[order], 104 "mhMedianByChid ,118 "mhMedianByChid", 105 119 "Distribution of Templates extracted with Median", 106 120 order … … 116 130 117 131 void 118 PixelSum::Book DistributionHistos()132 PixelSum::BookSumDistributionHistos() 119 133 { 120 134 if (mVerbosityLevel > 2) cout << endl … … 126 140 if (mVerbosityLevel > 3) cout << "\t...booking " 127 141 << HistoName("mhDistAmplitude", order) << endl; 128 mhDistAmplitude[order]=new TH 2F();142 mhDistAmplitude[order]=new TH1F(); 129 143 130 144 MakeTH1Pretty( … … 142 156 if (mVerbosityLevel > 3) cout << "\t...booking " 143 157 << HistoName("mhDistSlopeRiseEdge", order) << endl; 144 mhDistSlopeRiseEdge[order]=new TH 2F();158 mhDistSlopeRiseEdge[order]=new TH1F(); 145 159 146 160 MakeTH1Pretty( … … 158 172 if (mVerbosityLevel > 3) cout << "\t...booking " 159 173 << HistoName("mhDistSlopeFallEdge", order) << endl; 160 mhDistSlopeFallEdge[order]=new TH 2F();174 mhDistSlopeFallEdge[order]=new TH1F(); 161 175 162 176 MakeTH1Pretty( … … 177 191 178 192 void 179 PixelSum::Delete Histos()193 PixelSum::DeleteSumHistos() 180 194 { 181 195 if (mVerbosityLevel > 2) … … 223 237 224 238 void 225 PixelSum::Delete DistributionHistos()239 PixelSum::DeleteSumDistributionHistos() 226 240 { 227 241 if (mVerbosityLevel > 2)
Note:
See TracChangeset
for help on using the changeset viewer.