Ignore:
Timestamp:
03/16/04 18:50:24 (21 years ago)
Author:
blanch
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mimage/MHillasCalc.cc

    r3474 r3526  
    6565#include "MHillasExt.h"
    6666#include "MNewImagePar.h"
    67 
     67#include "MConcentration.h"
    6868#include "MCerPhotEvt.h"
    6969
     
    8181MHillasCalc::MHillasCalc(const char *name, const char *title)
    8282    : fHilName("MHillas"), fHilExtName("MHillasExt"),
    83     fImgParName("MNewImagePar"), fFlags(0xff), fErrors(5)
     83    fImgParName("MNewImagePar"), fConcName("MConcentration"),
     84    fFlags(0xff), fErrors(5)
    8485{
    8586    fName  = name  ? name  : "MHillasCalc";
     
    139140    }
    140141
    141     memset(fErrors.GetArray(), 0, sizeof(Char_t)*fErrors.GetSize());
     142     // if enabled
     143    if (TestFlag(kCalcConc))
     144    {
     145        fConc = (MConcentration*)pList->FindCreateObj("MConcentration", fConcName);
     146        if (!fConc)
     147            return kFALSE;
     148    }
     149
     150   memset(fErrors.GetArray(), 0, sizeof(Char_t)*fErrors.GetSize());
    142151
    143152    return kTRUE;
     
    171180    if (TestFlag(kCalcNewImagePar))
    172181        fNewImgPar->Calc(*fGeomCam, *fCerPhotEvt, *fHillas);
     182
     183    if (TestFlag(kCalcConc))
     184        fConc->Calc(*fGeomCam, *fCerPhotEvt, *fHillas);
    173185
    174186    return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.