Changeset 4371 for trunk


Ignore:
Timestamp:
07/14/04 13:43:54 (20 years ago)
Author:
hbartko
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4370 r4371  
    1919
    2020                                                 -*-*- END OF LINE -*-*-
     21
     22 2004/07/14: Hendrik Bartko
     23   * msignal/MExtractTimeHighestIntegral.cc
     24     - implemented the time calculation respective to the zero FADC
     25       time sample, not respective to the first sample of the chosen
     26       range
     27   * msignal/ArrivalTimeCalc2.cc
     28     - implemented the time calculation respective to the zero FADC
     29       time sample, not respective to the first sample of the chosen
     30       range
     31
    2132
    2233 2004/06/30: Thomas Bretz
  • trunk/MagicSoft/Mars/msignal/MArrivalTimeCalc2.cc

    r4246 r4371  
    244244            sat++;
    245245
    246         pix.SetArrivalTime(timehi, deltatimehi, timelo, deltatimelo);
     246        pix.SetArrivalTime(timehi+ Float_t(fHiGainFirst), deltatimehi, timelo + Float_t(fLoGainFirst), deltatimelo);
    247247        pix.SetGainSaturation(sathi, sathi, satlo);
    248248    }
  • trunk/MagicSoft/Mars/msignal/MExtractTimeHighestIntegral.cc

    r3913 r4371  
    204204        {
    205205          max = sum;
    206           ptrmax = p;
     206          ptrmax = p+1;
    207207        }
    208208    }
     
    225225  const Float_t pedsubtimesignalsum = timesignalsum - timesum*pedes;
    226226
    227   time      = pedsubsum != 0 ? pedsubtimesignalsum / pedsubsum : 1;
     227  time      = pedsubsum != 0 ? pedsubtimesignalsum / pedsubsum  + Float_t(fHiGainFirst): 1;
    228228  deltatime = pedsubsum != 0 ? pedrms / pedsubsum * sqrt(timesquaredsum - fHiGainWindowSize*time) : 1;
    229229}
     
    272272        {
    273273          max = sum;
    274           ptrmax = p;
     274          ptrmax = p+1;
    275275        }
    276276    }
     
    293293  const Float_t pedsubtimesignalsum = timesignalsum - timesum*pedes;
    294294
    295   time      = pedsubsum != 0 ? pedsubtimesignalsum / pedsubsum : 1;
     295  time      = pedsubsum != 0 ? pedsubtimesignalsum / pedsubsum  + Float_t(fLoGainFirst) : 1;
    296296  deltatime = pedsubsum != 0 ? pedrms / pedsubsum * sqrt(timesquaredsum - fLoGainWindowSize*time) : 1;
    297297}
Note: See TracChangeset for help on using the changeset viewer.