Ignore:
Timestamp:
12/08/04 18:02:12 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mpedestal
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.cc

    r5558 r5570  
    250250  fRunHeader    = NULL;
    251251  fEvtHeader    = NULL;
    252   fPedestalsOut = NULL;
    253252
    254253  // If the size is yet set, set the size
     
    344343  if (fExtractor && !fPedestalsIn)
    345344  {
    346       fPedestalsIn = (MPedestalCam*)pList->FindObject("MPedestalCam", AddSerialNumber(fNamePedestalCamIn));
     345      fPedestalsIn = (MPedestalCam*)pList->FindObject(AddSerialNumber(fNamePedestalCamIn), "MPedestalCam");
    347346      if (!fPedestalsIn)
    348347      {
     
    352351  }
    353352
    354   fPedestalsOut = (MPedestalCam*)pList->FindCreateObj("MPedestalCam", AddSerialNumber(fNamePedestalCamOut));
    355353  if (!fPedestalsOut)
    356       return kFALSE;
     354  {
     355      fPedestalsOut = (MPedestalCam*)pList->FindCreateObj("MPedestalCam", AddSerialNumber(fNamePedestalCamOut));
     356      if (!fPedestalsOut)
     357          return kFALSE;
     358  }
    357359
    358360  *fLog << inf;
     
    630632    *fLog << "Name of input  MPedestalCam:  " << (fPedestalsIn?fPedestalsIn->GetName():fNamePedestalCamIn.Data()) << " (" << fPedestalsIn << ")" << endl;
    631633    *fLog << "Name of output MPedestalCam:  " << (fPedestalsOut?fPedestalsOut->GetName():fNamePedestalCamOut.Data()) << " (" << fPedestalsOut << ")" << endl;
    632     *fLog << "Num evts for pedestal   calc: " << fNumEventsDump << endl;
    633     *fLog << "Num evts for avg.areas  calc: " << fNumAreasDump << endl;
    634     *fLog << "Num evts for avg.sector calc: " << fNumSectorsDump << endl;
    635634    *fLog << "Pedestal Update is            " << (fPedestalUpdate?"on":"off") << endl;
    636     *fLog << "ExtractWindow from slice " << fExtractWinFirst << " to " << fExtractWinLast << " incl." << endl;
    637 
     635    if (fPedestalUpdate)
     636    {
     637        *fLog << "Num evts for pedestal   calc: " << fNumEventsDump << endl;
     638        *fLog << "Num evts for avg.areas  calc: " << fNumAreasDump << endl;
     639        *fLog << "Num evts for avg.sector calc: " << fNumSectorsDump << endl;
     640    }
    638641    if (fExtractor)
    639642        *fLog << "Extractor used:               " << fExtractor->ClassName() << endl;
    640 }
     643    *fLog << "ExtractWindow from slice " << fExtractWinFirst << " to " << fExtractWinLast << " incl." << endl;
     644}
  • trunk/MagicSoft/Mars/mpedestal/MExtractPedestal.h

    r5558 r5570  
    9494
    9595  void SetPedestalsIn(MPedestalCam *pedcam) { fPedestalsIn = pedcam; }
     96  void SetPedestalsOut(MPedestalCam *pedcam) { fPedestalsOut = pedcam; }
    9697
    9798  void SetExtractor(MExtractTimeAndCharge *e) { fExtractor = e; }
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc

    r5558 r5570  
    320320
    321321        Float_t sum  = 0.;
    322         UInt_t  sumi = 0;
    323322
    324323        //extract pedestal
     
    327326        else
    328327        {
     328            UInt_t  sumi = 0;
    329329            for(Byte_t *slice=slices+fExtractWinFirst; slice<=slices+fExtractWinLast; slice++)
    330330                sumi += *slice;
     
    422422
    423423    Float_t dummy;
     424    fExtractor->SetNoiseCalculation(kTRUE);
    424425    fExtractor->FindTimeAndChargeHiGain(logain,logain,sum,dummy,dummy,dummy,sat,ped,logainabflag);
    425 }
    426 
     426    fExtractor->SetNoiseCalculation(kFALSE);
     427}
    427428
    428429// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcPedRun.cc

    r5559 r5570  
    316316
    317317    Float_t dummy;
     318    fExtractor->SetNoiseCalculation(kTRUE);
    318319    fExtractor->FindTimeAndChargeHiGain(first,logain,sum,dummy,dummy,dummy,sat,ped,abflag);
     320    fExtractor->SetNoiseCalculation(kFALSE);
    319321}
    320322
Note: See TracChangeset for help on using the changeset viewer.