Ignore:
Timestamp:
03/03/07 22:33:56 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.cc

    r8304 r8357  
    658658      {
    659659          // FIXME: fLoGain* is used to determine the FILTER/CHECK range
    660           const Int_t numh = pixel.GetNumHiGainSamples();
     660          const Int_t numh = fRunHeader->GetNumSamplesHiGain();
    661661
    662662          const Int_t sum = fSignal->GetIntegralRaw(fBlindPixelIdx[id], fLoGainFirst+numh, fLoGainLast+numh);
  • trunk/MagicSoft/Mars/msignal/MSignalCalc.cc

    r6899 r8357  
    1616!
    1717!
    18 !   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@uni-sw.gwdg.de>
    19 !
    20 !   Copyright: MAGIC Software Development, 2000-2001
     18!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
     19!
     20!   Copyright: MAGIC Software Development, 2000-2007
    2121!
    2222!
     
    115115    // This must be done in ReInit because in PreProcess the
    116116    // headers are not available
    117     const MRawRunHeader *runheader = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
    118     if (!runheader)
    119         *fLog << warn << dbginf << "Warning - cannot check file type, MRawRunHeader not found." << endl;
    120     else
    121     {
    122         if (runheader->IsMonteCarloRun())
    123             return kTRUE;
    124     }
     117    if (fRunHeader->IsMonteCarloRun())
     118        return kTRUE;
    125119
    126120    fPedestals = (MPedestalCam*)pList->FindCreateObj("MPedestalCam");
    127     if (runheader && !fPedestals)
     121    if (!fPedestals)
    128122        return kFALSE;
    129123
     
    144138        Byte_t *ptr   = pixel.GetHiGainSamples();
    145139        Byte_t *max   = ptr+pixel.GetIdxMaxHiGainSample();
    146         Byte_t *end   = ptr+fRawEvt->GetNumHiGainSamples();
     140        Byte_t *end   = ptr+fRunHeader->GetNumSamplesHiGain();
    147141        Byte_t *first = max-fBefore;
    148142        Byte_t *last  = max+fAfter;
     
    185179            // Area: x9
    186180            ptr = pixel.GetLoGainSamples();
    187             end = ptr+fRawEvt->GetNumLoGainSamples();
     181            end = ptr+fRunHeader->GetNumSamplesLoGain();
    188182
    189183            sumb = 0;   // sum background
     
    213207            }
    214208
    215             end   = ptr+fRawEvt->GetNumLoGainSamples();
     209            end   = ptr+fRunHeader->GetNumSamplesLoGain();
    216210            first = max-fBefore;
    217211            last  = max+fAfter;
     
    254248
    255249        Float_t s   = sb-b;                // signal
    256         //Float_t sqs = sqsb-nsb*b;          // sum sqaures signal
     250        //Float_t sqs = sqsb-nsb*b;          // sum squares signal
    257251
    258252        //Float_t mss  = (float)sqs/nsb;     // mean quare signal
     
    260254
    261255        if (sat>1)
    262             s*=10; // tgb has measured 9, but Florian said it's 10.
     256            s *= 11.3;
    263257
    264258        Int_t idx = pixel.GetPixelId();
  • trunk/MagicSoft/Mars/msignal/MSignalCalc.h

    r6856 r8357  
    1616    MPedestalCam  *fPedestals;  // Pedestals of all pixels in the camera
    1717    MRawEvtData   *fRawEvt;     // raw event data (time slices)
    18     MSignalCam   *fCerPhotEvt; // Cerenkov Photon Event used for calculation
     18    MSignalCam    *fCerPhotEvt; // Cerenkov Photon Event used for calculation
    1919    MRawRunHeader *fRunHeader;  // RunHeader information
    2020
Note: See TracChangeset for help on using the changeset viewer.