Ignore:
Timestamp:
02/12/09 20:07:51 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msimcamera
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msimcamera/MSimAPD.cc

    r9309 r9328  
    8989Int_t MSimAPD::PreProcess(MParList *pList)
    9090{
     91    if (fNameGeomCam.IsNull())
     92    {
     93        *fLog << inf << "No geometry container... skipping." << endl;
     94        return kSKIP;
     95    }
     96
    9197    fGeom = (MGeomCam*)pList->FindObject(fNameGeomCam, "MGeomCam");
    9298    if (!fGeom)
     
    199205    return kTRUE;
    200206}
     207
     208// --------------------------------------------------------------------------
     209//
     210// NameGeomCam
     211//
     212Int_t MSimAPD::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
     213{
     214    Bool_t rc = kFALSE;
     215    if (IsEnvDefined(env, prefix, "NameGeomCam", print))
     216    {
     217        rc = kTRUE;
     218        fNameGeomCam = GetEnvValue(env, prefix, "NameGeomCam", fNameGeomCam);
     219    }
     220
     221    return rc;
     222}
  • trunk/MagicSoft/Mars/msimcamera/MSimAPD.h

    r9240 r9328  
    2828    Double_t fFreq;              // Frequency of random phtons which hit the APDs
    2929
     30    // MParContainer
     31    Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
     32
    3033    // MTask
    3134    Int_t  PreProcess(MParList *pList);
  • trunk/MagicSoft/Mars/msimcamera/MSimCamera.cc

    r9323 r9328  
    281281    return kTRUE;
    282282}
     283
     284// --------------------------------------------------------------------------
     285//
     286// BaselineGain: Off
     287//
     288Int_t MSimCamera::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
     289{
     290    Bool_t rc = kFALSE;
     291    if (IsEnvDefined(env, prefix, "BaselineGain", print))
     292    {
     293        rc = kTRUE;
     294        fBaselineGain = GetEnvValue(env, prefix, "BaselineGain", fBaselineGain);
     295    }
     296
     297    return rc;
     298}
  • trunk/MagicSoft/Mars/msimcamera/MSimCamera.h

    r9319 r9328  
    3232    Bool_t fBaselineGain;  // Should the gain be applied to baseline and electronic noise?
    3333
     34    // MParContainer
     35    Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
     36
    3437    // MTask
    3538    Int_t  PreProcess(MParList *pList);
Note: See TracChangeset for help on using the changeset viewer.