| Line | |
|---|
| 1 | #ifndef MARS_MHillasCalc
|
|---|
| 2 | #define MARS_MHillasCalc
|
|---|
| 3 |
|
|---|
| 4 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 5 | // //
|
|---|
| 6 | // MHillasCalkc //
|
|---|
| 7 | // //
|
|---|
| 8 | // Task to calculate Hillas Parameters //
|
|---|
| 9 | // //
|
|---|
| 10 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 11 |
|
|---|
| 12 | #ifndef MARS_MTask
|
|---|
| 13 | #include "MTask.h"
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 | class MGeomCam;
|
|---|
| 17 | class MCerPhotEvt;
|
|---|
| 18 | class MHillas;
|
|---|
| 19 | class MHillasExt;
|
|---|
| 20 | class MNewImagePar;
|
|---|
| 21 |
|
|---|
| 22 | class MHillasCalc : public MTask
|
|---|
| 23 | {
|
|---|
| 24 | const MGeomCam *fGeomCam; // Camera Geometry used to calculate Hillas
|
|---|
| 25 | const MCerPhotEvt *fCerPhotEvt; // Cerenkov Photon Event used for calculation
|
|---|
| 26 |
|
|---|
| 27 | MHillas *fHillas; // output container to store result
|
|---|
| 28 | MHillasExt *fHillasExt;
|
|---|
| 29 | MNewImagePar *fNewImgPar;
|
|---|
| 30 |
|
|---|
| 31 | TString fHilName;
|
|---|
| 32 | TString fHilExtName;
|
|---|
| 33 | TString fImgParName;
|
|---|
| 34 |
|
|---|
| 35 | Int_t fErrors[5];
|
|---|
| 36 |
|
|---|
| 37 | Int_t fFlags;
|
|---|
| 38 |
|
|---|
| 39 | Bool_t PreProcess(MParList *pList);
|
|---|
| 40 | Bool_t Process();
|
|---|
| 41 | Bool_t PostProcess();
|
|---|
| 42 |
|
|---|
| 43 | public:
|
|---|
| 44 | enum CalcCont_t {
|
|---|
| 45 | kCalcHillas = BIT(0),
|
|---|
| 46 | kCalcHillasExt = BIT(1),
|
|---|
| 47 | //kCalcHillasSrc = BIT(2),
|
|---|
| 48 | kCalcNewImagePar = BIT(3)
|
|---|
| 49 | };
|
|---|
| 50 |
|
|---|
| 51 | MHillasCalc(const char *name=NULL, const char *title=NULL);
|
|---|
| 52 |
|
|---|
| 53 | void SetNameHillas(const char *name) { fHilName = name; }
|
|---|
| 54 | void SetNameHillasExt(const char *name) { fHilExtName = name; }
|
|---|
| 55 | void SetNameNewImgPar(const char *name) { fImgParName = name; }
|
|---|
| 56 |
|
|---|
| 57 | void SetFlags(Int_t f) { fFlags = f; }
|
|---|
| 58 | void Enable(Int_t f) { fFlags |= f; }
|
|---|
| 59 | void Disable(Int_t f) { fFlags &= ~f; }
|
|---|
| 60 | Bool_t TestFlag(CalcCont_t i) const { return fFlags&i; }
|
|---|
| 61 |
|
|---|
| 62 | ClassDef(MHillasCalc, 0) // Task to calculate Hillas parameters
|
|---|
| 63 | };
|
|---|
| 64 |
|
|---|
| 65 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.