Ignore:
Timestamp:
08/11/04 13:42:50 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mimage
Files:
2 edited

Legend:

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

    r3682 r4578  
    8080//
    8181MHillasCalc::MHillasCalc(const char *name, const char *title)
    82     : fHilName("MHillas"), fHilExtName("MHillasExt"),
    83     fImgParName("MNewImagePar"), fConcName("MConcentration"),
     82    : fNameHillas("MHillas"), fNameHillasExt("MHillasExt"),
     83    fNameNewImgPar("MNewImagePar"), fNameConc("MConcentration"),
    8484    fFlags(0xff), fErrors(5)
    8585{
     
    115115    // depend on whether MHillas is an in- or output container
    116116    if (TestFlag(kCalcHillas))
    117         fHillas = (MHillas*)pList->FindCreateObj("MHillas", AddSerialNumber(fHilName));
     117        fHillas = (MHillas*)pList->FindCreateObj("MHillas", AddSerialNumber(fNameHillas));
    118118    else
    119119    {
    120         fHillas = (MHillas*)pList->FindObject(AddSerialNumber(fHilName), "MHillas");
    121         *fLog << err << fHilName << " [MHillas] not found... aborting." << endl;
     120        fHillas = (MHillas*)pList->FindObject(AddSerialNumber(fNameHillas), "MHillas");
     121        *fLog << err << fNameHillas << " [MHillas] not found... aborting." << endl;
    122122    }
    123123    if (!fHillas)
     
    127127    if (TestFlag(kCalcHillasExt))
    128128    {
    129         fHillasExt = (MHillasExt*)pList->FindCreateObj("MHillasExt", AddSerialNumber(fHilExtName));
     129        fHillasExt = (MHillasExt*)pList->FindCreateObj("MHillasExt", AddSerialNumber(fNameHillasExt));
    130130        if (!fHillasExt)
    131131            return kFALSE;
     
    135135    if (TestFlag(kCalcNewImagePar))
    136136    {
    137         fNewImgPar = (MNewImagePar*)pList->FindCreateObj("MNewImagePar", AddSerialNumber(fImgParName));
     137        fNewImgPar = (MNewImagePar*)pList->FindCreateObj("MNewImagePar", AddSerialNumber(fNameNewImgPar));
    138138        if (!fNewImgPar)
    139139            return kFALSE;
     
    143143    if (TestFlag(kCalcConc))
    144144    {
    145         fConc = (MConcentration*)pList->FindCreateObj("MConcentration", fConcName);
     145        fConc = (MConcentration*)pList->FindCreateObj("MConcentration", fNameConc);
    146146        if (!fConc)
    147147            return kFALSE;
    148148    }
    149149
    150    memset(fErrors.GetArray(), 0, sizeof(Char_t)*fErrors.GetSize());
     150    memset(fErrors.GetArray(), 0, sizeof(Char_t)*fErrors.GetSize());
    151151
    152152    return kTRUE;
  • trunk/MagicSoft/Mars/mimage/MHillasCalc.h

    r3526 r4578  
    2929    const MCerPhotEvt *fCerPhotEvt; //! Cerenkov Photon Event used for calculation
    3030
    31     MHillas      *fHillas;          //! output container to store result
    32     MHillasExt   *fHillasExt;       //! output container to store result
    33     MNewImagePar *fNewImgPar;       //! output container to store result
    34     MConcentration *fConc;          //! output container to store result
     31    MHillas           *fHillas;     //! output container to store result
     32    MHillasExt        *fHillasExt;  //! output container to store result
     33    MNewImagePar      *fNewImgPar;  //! output container to store result
     34    MConcentration    *fConc;       //! output container to store result
    3535
    36     TString      fHilName;          // name of the 'MHillas' container
    37     TString      fHilExtName;      // name of the 'MHillasExt' container
    38     TString      fImgParName;      // name of the 'MNewImagePar' container
    39     TString      fConcName;         // name of the 'MConcentration' container
     36    TString            fNameHillas;    // name of the 'MHillas' container
     37    TString            fNameHillasExt; // name of the 'MHillasExt' container
     38    TString            fNameNewImgPar; // name of the 'MNewImagePar' container
     39    TString            fNameConc;      // name of the 'MConcentration' container
    4040
    41     Int_t        fFlags;            // Flags defining the behaviour of MHillasCalc
     41    Int_t              fFlags;      // Flags defining the behaviour of MHillasCalc
    4242
    43     TArrayL      fErrors;           //! Error counter. Do we have to change to Double?
     43    TArrayL            fErrors;     //! Error counter. Do we have to change to Double?
    4444
    45     void PrintSkipped(int i, const char *str) const;
     45    void  PrintSkipped(int i, const char *str) const;
    4646
    4747    Int_t PreProcess(MParList *pList);
     
    6060    MHillasCalc(const char *name=NULL, const char *title=NULL);
    6161
    62     void SetNameHillas(const char *name)    { fHilName = name;    }
    63     void SetNameHillasExt(const char *name) { fHilExtName = name; }
    64     void SetNameNewImgPar(const char *name) { fImgParName = name; }
    65     void SetNameConc(const char *name) { fConcName = name; }
     62    void   SetNameHillas(const char *name)    { fNameHillas = name;    }
     63    void   SetNameHillasExt(const char *name) { fNameHillasExt = name; }
     64    void   SetNameNewImgPar(const char *name) { fNameNewImgPar = name; }
     65    void   SetNameConc(const char *name)      { fNameConc = name;      }
    6666
    67     void SetFlags(Int_t f) { fFlags  =  f; }
    68     void Enable(Int_t f)   { fFlags |=  f; }
    69     void Disable(Int_t f)  { fFlags &= ~f; }
     67    void   SetFlags(Int_t f) { fFlags  =  f; }
     68    void   Enable(Int_t f)   { fFlags |=  f; }
     69    void   Disable(Int_t f)  { fFlags &= ~f; }
    7070    Bool_t TestFlag(CalcCont_t i) const { return fFlags&i; }
    7171
Note: See TracChangeset for help on using the changeset viewer.