Ignore:
Timestamp:
11/18/04 15:55:40 (20 years ago)
Author:
wittek
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mfilter/MFSelBasic.cc

    r4584 r5431  
    8686    fThetaMax   = thetamax;
    8787
     88}
     89
     90// --------------------------------------------------------------------------
     91//
     92// Set the pointers
     93//
     94//
     95Int_t MFSelBasic::PreProcess(MParList *pList)
     96{
     97    fRawRun = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
     98    if (!fRawRun)
     99    {
     100        *fLog << dbginf << "MRawRunHeader not found... aborting." << endl;
     101        return kFALSE;
     102    }
     103
     104    fPointPos = (MPointingPos*)pList->FindObject("MPointingPos");
     105    if (!fPointPos)
     106    {
     107        *fLog << dbginf << "MPointingPos not found... aborting." << endl;
     108        return kFALSE;
     109    }
     110
     111    fEvt = (MCerPhotEvt*)pList->FindObject("MCerPhotEvt");
     112    if (!fEvt)
     113    {
     114        *fLog << dbginf << "MCerPhotEvt not found... aborting." << endl;
     115        return kFALSE;
     116    }
     117
     118    fCam = (MGeomCam*)pList->FindObject("MGeomCam");
     119    if (!fCam)
     120    {
     121        *fLog << dbginf << "MGeomCam (Camera Geometry) missing in Parameter List... aborting." << endl;
     122        return kFALSE;
     123    }
     124
     125    memset(fCut, 0, sizeof(fCut));
     126
     127    //-------------------------
    88128    *fLog << inf << "MFSelBasic cut values : fMinPhotons, fThetaMin, fThetaMax = ";
    89129    *fLog << fMinPhotons <<",  " << fThetaMin << ",  " << fThetaMax << endl;
    90 }
    91 
    92 // --------------------------------------------------------------------------
    93 //
    94 // Set the pointers
    95 //
    96 //
    97 Int_t MFSelBasic::PreProcess(MParList *pList)
    98 {
    99     fRawRun = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
    100     if (!fRawRun)
    101     {
    102         *fLog << dbginf << "MRawRunHeader not found... aborting." << endl;
    103         return kFALSE;
    104     }
    105 
    106     fPointPos = (MPointingPos*)pList->FindObject("MPointingPos");
    107     if (!fPointPos)
    108     {
    109         *fLog << dbginf << "MPointingPos not found... aborting." << endl;
    110         return kFALSE;
    111     }
    112 
    113     fEvt = (MCerPhotEvt*)pList->FindObject("MCerPhotEvt");
    114     if (!fEvt)
    115     {
    116         *fLog << dbginf << "MCerPhotEvt not found... aborting." << endl;
    117         return kFALSE;
    118     }
    119 
    120     fCam = (MGeomCam*)pList->FindObject("MGeomCam");
    121     if (!fCam)
    122     {
    123         *fLog << dbginf << "MGeomCam (Camera Geometry) missing in Parameter List... aborting." << endl;
    124         return kFALSE;
    125     }
    126 
    127     memset(fCut, 0, sizeof(fCut));
     130    //-------------------------
    128131
    129132    return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.