Ignore:
Timestamp:
12/06/05 14:24:59 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcamera/MCameraTH.cc

    r7430 r7444  
    5353// --------------------------------------------------------------------------
    5454//
    55 // Print the dc currents
     55// Print the discriminator thresholds
    5656//
    5757void MCameraTH::Print(Option_t *) const
     
    5959    *fLog << all << underline << GetDescriptor() << endl;
    6060    for (int i=0; i<fTH.GetSize(); i++)
    61         *fLog << " " << GetThreshold(i);
     61        *fLog << " " << (int)fTH[i];
    6262    *fLog << endl;
    6363}
     
    6565// --------------------------------------------------------------------------
    6666//
    67 // Return the minimum dc current
     67// Return the discriminator thresholds
    6868//
    69 Float_t MCameraTH::GetMin() const
     69Byte_t MCameraTH::GetMin() const
    7070{
    71     Float_t val = (UInt_t)-1;
     71    Byte_t val = 0xff;
    7272    for (int i=0; i<fTH.GetSize(); i++)
    73         val = TMath::Min(val, GetThreshold(i));
     73        val = TMath::Min(val, fTH[i]);
    7474    return val;
    7575}
     
    7777// --------------------------------------------------------------------------
    7878//
    79 // Return the maximum dc current
     79// Return the discriminator thresholds
    8080//
    81 Float_t MCameraTH::GetMax() const
     81Byte_t MCameraTH::GetMax() const
    8282{
    83     Float_t val = 0;
     83    Byte_t val = 0;
    8484    for (int i=0; i<fTH.GetSize(); i++)
    85         val = TMath::Max(val, GetThreshold(i));
     85        val = TMath::Max(val, fTH[i]);
    8686    return val;
    8787}
Note: See TracChangeset for help on using the changeset viewer.