Changeset 711 for trunk/MagicSoft/Mars/mhist/MHFadcPix.cc
- Timestamp:
- 03/30/01 12:01:58 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHFadcPix.cc
r710 r711 1 1 /////////////////////////////////////////////////////////////////////// 2 2 // 3 // MH istosAdc3 // MHFadcPix 4 4 // 5 // This class contains a list of all ADC spektra histograms 5 // This container stores a hostogram to display an Fadc Spekrtum. 6 // The spektrum of all the values measured by the Fadcs. 6 7 // 7 8 /////////////////////////////////////////////////////////////////////// … … 12 13 13 14 ClassImp(MHFadcPix) 15 16 MHFadcPix::MHFadcPix(UInt_t pixid) 17 { 18 // 19 // Creates the histograms for lo and hi gain of one pixel 20 // 21 // FIXME! Set the right axis titles and ... and ... 22 // 23 Char_t tmp1[40]="hi"; 24 Char_t tmp2[40]="hi gain Pixel"; 25 26 if (pixid) 27 { 28 sprintf(tmp1, "%s%d", tmp1, pixid); 29 sprintf(tmp2, "%s %d", tmp2, pixid); 30 } 31 fHistHi = new TH1F(tmp1, tmp2, 256, 0, 255); 32 33 34 Char_t tmp3[40]="lo"; 35 Char_t tmp4[40]="lo gain Pixel"; 36 37 if (pixid) 38 { 39 sprintf(tmp3, "%s%d", tmp3, pixid); 40 sprintf(tmp4, "%s %d", tmp4, pixid); 41 } 42 fHistLo = new TH1F(tmp3, tmp4, 256, 0, 255); 43 } 44 45 MHFadcPix::~MHFadcPix() 46 { 47 delete fHistHi; 48 delete fHistLo; 49 } 14 50 15 51 void MHFadcPix::Draw(Option_t *)
Note:
See TracChangeset
for help on using the changeset viewer.