Ignore:
Timestamp:
03/30/01 12:01:58 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHFadcPix.cc

    r710 r711  
    11///////////////////////////////////////////////////////////////////////
    22//
    3 // MHistosAdc
     3// MHFadcPix
    44//
    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.
    67//
    78///////////////////////////////////////////////////////////////////////
     
    1213
    1314ClassImp(MHFadcPix)
     15
     16MHFadcPix::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
     45MHFadcPix::~MHFadcPix()
     46{
     47    delete fHistHi;
     48    delete fHistLo;
     49}
    1450
    1551void MHFadcPix::Draw(Option_t *)
Note: See TracChangeset for help on using the changeset viewer.