Changeset 5342 for trunk/MagicSoft


Ignore:
Timestamp:
11/05/04 00:26:32 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5340 r5342  
    3939     - Removed obsolete check of old MC files, which needed the removed
    4040       data member MMcRunHeader.fTelesTheta.
     41
     42 2004/11/04: Markus Gaug
     43
     44   * mjobs/MJPedestal.cc
     45     - adapted to changes in MPedCalcFromLoGain
    4146
    4247 2004/11/04: Nepomuk Otte
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r5316 r5342  
    665665    {
    666666      if (IsUseData())
    667         pedlogain.SetWindowSize(12,(Int_t)fExtractor->GetNumHiGainSamples());         
     667        pedlogain.SetExtractWindow(15,(Int_t)fExtractor->GetNumHiGainSamples());         
    668668      else
    669669        {
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc

    r5338 r5342  
    262262// - if a window is odd
    263263//
    264  
    265264void MPedCalcFromLoGain::SetExtractWindow(Int_t windowf, Int_t windows)
    266265{
     
    274273  Int_t odd  = windows & 0x1;
    275274 
    276 
    277275  if (odd||(windows==0)){
    278276    *fLog << warn << GetDescriptor() << ": Extract window size has to be even and larger 0, adjust!"<< endl;
     
    284282  fExtractWinLast = fExtractWinFirst+fExtractWinSize-1;
    285283
    286  
     284//
     285//  NO RANGE CHECK IMPLEMENTED, YET
     286//
     287/*
     288    const Byte_t availhirange = (fHiGainLast-fHiGainFirst+1) & ~1;
     289    const Byte_t availlorange = (fLoGainLast-fLoGainFirst+1) & ~1;
     290 
     291    if (fWindowSizeHiGain > availhirange)
     292    {
     293        *fLog << warn;
     294        *fLog << GetDescriptor() << ": HiGain window " << (int)fWindowSizeHiGain;
     295        *fLog << " out of range [" << (int)fHiGainFirst;
     296        *fLog << "," << (int)fHiGainLast << "]" << endl;
     297        *fLog << "Will set window size to " << (int)availhirange << endl;
     298        fWindowSizeHiGain = availhirange;
     299    }
     300   
     301    if (fWindowSizeLoGain > availlorange)
     302    {
     303        *fLog << warn;
     304        *fLog << GetDescriptor() << ": LoGain window " << (int)fWindowSizeLoGain;
     305        *fLog << " out of range [" << (int)fLoGainFirst;
     306        *fLog << "," << (int)fLoGainLast << "]" << endl;
     307        *fLog << "Will set window size to " << (int)availlorange << endl;
     308        fWindowSizeLoGain = availlorange;
     309    }
     310*/
    287311}
    288312
Note: See TracChangeset for help on using the changeset viewer.