Changeset 4578 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 08/11/04 13:42:50 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHillasCalc.cc
r3682 r4578 80 80 // 81 81 MHillasCalc::MHillasCalc(const char *name, const char *title) 82 : f HilName("MHillas"), fHilExtName("MHillasExt"),83 f ImgParName("MNewImagePar"), fConcName("MConcentration"),82 : fNameHillas("MHillas"), fNameHillasExt("MHillasExt"), 83 fNameNewImgPar("MNewImagePar"), fNameConc("MConcentration"), 84 84 fFlags(0xff), fErrors(5) 85 85 { … … 115 115 // depend on whether MHillas is an in- or output container 116 116 if (TestFlag(kCalcHillas)) 117 fHillas = (MHillas*)pList->FindCreateObj("MHillas", AddSerialNumber(f HilName));117 fHillas = (MHillas*)pList->FindCreateObj("MHillas", AddSerialNumber(fNameHillas)); 118 118 else 119 119 { 120 fHillas = (MHillas*)pList->FindObject(AddSerialNumber(f HilName), "MHillas");121 *fLog << err << f HilName<< " [MHillas] not found... aborting." << endl;120 fHillas = (MHillas*)pList->FindObject(AddSerialNumber(fNameHillas), "MHillas"); 121 *fLog << err << fNameHillas << " [MHillas] not found... aborting." << endl; 122 122 } 123 123 if (!fHillas) … … 127 127 if (TestFlag(kCalcHillasExt)) 128 128 { 129 fHillasExt = (MHillasExt*)pList->FindCreateObj("MHillasExt", AddSerialNumber(f HilExtName));129 fHillasExt = (MHillasExt*)pList->FindCreateObj("MHillasExt", AddSerialNumber(fNameHillasExt)); 130 130 if (!fHillasExt) 131 131 return kFALSE; … … 135 135 if (TestFlag(kCalcNewImagePar)) 136 136 { 137 fNewImgPar = (MNewImagePar*)pList->FindCreateObj("MNewImagePar", AddSerialNumber(f ImgParName));137 fNewImgPar = (MNewImagePar*)pList->FindCreateObj("MNewImagePar", AddSerialNumber(fNameNewImgPar)); 138 138 if (!fNewImgPar) 139 139 return kFALSE; … … 143 143 if (TestFlag(kCalcConc)) 144 144 { 145 fConc = (MConcentration*)pList->FindCreateObj("MConcentration", f ConcName);145 fConc = (MConcentration*)pList->FindCreateObj("MConcentration", fNameConc); 146 146 if (!fConc) 147 147 return kFALSE; 148 148 } 149 149 150 memset(fErrors.GetArray(), 0, sizeof(Char_t)*fErrors.GetSize());150 memset(fErrors.GetArray(), 0, sizeof(Char_t)*fErrors.GetSize()); 151 151 152 152 return kTRUE; -
trunk/MagicSoft/Mars/mimage/MHillasCalc.h
r3526 r4578 29 29 const MCerPhotEvt *fCerPhotEvt; //! Cerenkov Photon Event used for calculation 30 30 31 MHillas *fHillas;//! output container to store result32 MHillasExt *fHillasExt;//! output container to store result33 MNewImagePar *fNewImgPar;//! output container to store result34 MConcentration *fConc;//! output container to store result31 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 35 35 36 TString fHilName;// name of the 'MHillas' container37 TString fHilExtName;// name of the 'MHillasExt' container38 TString fImgParName;// name of the 'MNewImagePar' container39 TString fConcName;// name of the 'MConcentration' container36 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 40 40 41 Int_t fFlags;// Flags defining the behaviour of MHillasCalc41 Int_t fFlags; // Flags defining the behaviour of MHillasCalc 42 42 43 TArrayL fErrors;//! Error counter. Do we have to change to Double?43 TArrayL fErrors; //! Error counter. Do we have to change to Double? 44 44 45 void PrintSkipped(int i, const char *str) const;45 void PrintSkipped(int i, const char *str) const; 46 46 47 47 Int_t PreProcess(MParList *pList); … … 60 60 MHillasCalc(const char *name=NULL, const char *title=NULL); 61 61 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; } 66 66 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; } 70 70 Bool_t TestFlag(CalcCont_t i) const { return fFlags&i; } 71 71
Note:
See TracChangeset
for help on using the changeset viewer.