Ignore:
Timestamp:
06/26/03 16:21:57 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.cc

    r2230 r2236  
    224224
    225225    TString str(opt);
     226    str.ToLower();
    226227
    227228    UInt_t id = 0;
    228229
    229     if (str.BeginsWith("GRAPH", TString::kIgnoreCase))
     230    if (str.BeginsWith("graph"))
    230231        if (str.Length()>5)
    231232            sscanf(&str[5], "%d", &id);
    232     if (str.BeginsWith("HIST", TString::kIgnoreCase))
     233    if (str.BeginsWith("hist"))
    233234        if (str.Length()>4)
    234235            sscanf(&str[4], "%d", &id);
     
    250251    name += pix.GetPixelId();
    251252
    252     Bool_t same = str.Contains("same", TString::kIgnoreCase);
    253 
    254     if (str.BeginsWith("GRAPH", TString::kIgnoreCase))
     253    Bool_t same = str.Contains("same");
     254
     255    if (str.BeginsWith("graph"))
    255256    {
    256257        *fLog << inf << "Drawing Graph: Pixel Idx #" << pix.GetPixelId();
     
    276277    }
    277278
    278     if (str.BeginsWith("HIST", TString::kIgnoreCase))
     279    if (str.BeginsWith("hist"))
    279280    {
    280281        // FIXME: Add Legend
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc

    r2229 r2236  
    228228// --------------------------------------------------------------------------
    229229//
     230// Returns the index of the FADC slice the maximum signal in
     231//
     232Byte_t MRawEvtPixelIter::GetNumMaxLoGainSample() const
     233{
     234    Byte_t max  = 0;
     235    Byte_t maxi = 0;
     236
     237    for (int i=0; i<fNumLoGainSamples; i++)
     238        if (fLoGainPos[i]>max)
     239        {
     240            max = fLoGainPos[i];
     241            maxi = i;
     242        }
     243
     244    return maxi;
     245}
     246
     247// --------------------------------------------------------------------------
     248//
    230249// returns the sum of all lo gain fadc samples of the actual pixel.
    231250// if no lo gain information is available 0 is returned.
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h

    r2207 r2236  
    8282
    8383    Byte_t GetNumMaxHiGainSample() const;
     84    Byte_t GetNumMaxLoGainSample() const;
    8485
    8586    Bool_t HasLoGain() const
Note: See TracChangeset for help on using the changeset viewer.