Changeset 3004


Ignore:
Timestamp:
02/02/04 15:31:26 (21 years ago)
Author:
moralejo
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3003 r3004  
    44
    55                                                 -*-*- END OF LINE -*-*-
     6
     7 2004/02/02: Abelardo Moralejo
     8
     9   * manalysis/MMcCalibrationUpdate.cc, MMcPedestalCopy.cc
     10     - removed file type check (MC or data) from PreProcess since now
     11       run headers are not yet known at that point.
     12
     13   * mcalib/MMcCalibrationCalc.cc
     14     - same as above.
     15
     16
    617 2004/02/02: Thomas Bretz
    718
  • trunk/MagicSoft/Mars/manalysis/MMcCalibrationUpdate.cc

    r2961 r3004  
    108108Int_t MMcCalibrationUpdate::PreProcess(MParList *pList)
    109109{
    110   //
    111   // If it is no MC file skip this function...
    112   //
    113   if (!CheckRunType(pList))
    114     return kTRUE;
    115 
    116 
    117110  fCalCam = (MCalibrationCam*) pList->FindObject(AddSerialNumber("MCalibrationCam"));
    118111  if ( !fCalCam )
     
    163156    //
    164157    if (!CheckRunType(pList))
     158      {
     159        *fLog << inf << "This is no MC file... skipping." << endl;
    165160        return kTRUE;
    166 
     161      }
     162       
    167163    //
    168164    // Now check the existence of all necessary containers.
  • trunk/MagicSoft/Mars/manalysis/MMcPedestalCopy.cc

    r2782 r3004  
    8989}
    9090
     91
     92
    9193// --------------------------------------------------------------------------
    9294//
    93 // Make sure, that there is an MPedestalCam Object in the Parameter List.
     95// Make sure that there is a MPedestalCam object in the parameter list.
    9496//
    95 Int_t MMcPedestalCopy::PreProcess(MParList *pList)
     97Int_t  MMcPedestalCopy::PreProcess(MParList *pList)
    9698{
    97   //
    98   // If it is no MC file skip this function...
    99   //
    100   if (! CheckRunType(pList))
    101     return kTRUE;
     99  if ( ! pList->FindObject(AddSerialNumber("MPedestalCam")) )
     100    pList->FindCreateObj(AddSerialNumber("MPedestalCam"));
    102101
    103   return pList->FindCreateObj(AddSerialNumber("MPedestalCam")) ? kTRUE : kFALSE;
     102  return kTRUE;
    104103}
    105104
     
    115114    //
    116115    if (!CheckRunType(pList))
     116      {
     117        *fLog << inf << "This is no MC file... skipping." << endl;
    117118        return kTRUE;
     119      }
    118120
    119121    //
     
    128130    }
    129131
    130     MPedestalCam *pedcam = (MPedestalCam*)pList->FindCreateObj(AddSerialNumber("MPedestalCam"));
     132    MPedestalCam *pedcam = (MPedestalCam*)pList->FindObject(AddSerialNumber("MPedestalCam"));
    131133    if (!pedcam)
     134      {
     135        *fLog << err << dbginf << "Cannot create " << AddSerialNumber("MPedestalCam") <<"... Exiting." << endl;
     136
    132137        return kFALSE;
     138      }
    133139
    134140    MMcRunHeader *mcrun = (MMcRunHeader*)pList->FindObject("MMcRunHeader");
  • trunk/MagicSoft/Mars/mcalib/MMcCalibrationCalc.cc

    r2940 r3004  
    9999Int_t MMcCalibrationCalc::PreProcess(MParList *pList)
    100100{
    101   //
    102   // If it is no MC file display error and exit
    103   //
    104   if (!CheckRunType(pList))
    105     {
    106       *fLog << err << dbginf << "This is no MC file... aborting." << endl;
    107       return kFALSE;
    108     }
    109101
    110102  fCalCam = (MCalibrationCam*) pList->FindObject(AddSerialNumber("MCalibrationCam"));
     
    148140Bool_t MMcCalibrationCalc::ReInit(MParList *pList)
    149141{
     142  //
     143  // If it is no MC file display error and exit
     144  //
     145  if (!CheckRunType(pList))
     146    {
     147      *fLog << err << dbginf << "This is no MC file... aborting." << endl;
     148      return kFALSE;
     149    }
     150
    150151  //
    151152  // Now check the existence of all necessary containers.
Note: See TracChangeset for help on using the changeset viewer.