| Line | |
|---|
| 1 | #ifndef MARS_MDispCalc
|
|---|
| 2 | #define MARS_MDispCalc
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MTask
|
|---|
| 5 | #include "MTask.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | #ifndef ROOT_TArrayD
|
|---|
| 9 | #include <TArrayD.h>
|
|---|
| 10 | #endif
|
|---|
| 11 |
|
|---|
| 12 | #ifndef ROOT_TArrayI
|
|---|
| 13 | #include <TArrayI.h>
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 | class MSrcPosCam;
|
|---|
| 17 | class MHillas;
|
|---|
| 18 | class MHillasExt;
|
|---|
| 19 | class MNewImagePar;
|
|---|
| 20 | class MMcEvt;
|
|---|
| 21 | class MPointingPos;
|
|---|
| 22 | class MImageParDisp;
|
|---|
| 23 | class MDisp;
|
|---|
| 24 | class MHMatrix;
|
|---|
| 25 | class MParList;
|
|---|
| 26 |
|
|---|
| 27 | class MDispCalc : public MTask
|
|---|
| 28 | {
|
|---|
| 29 | private:
|
|---|
| 30 |
|
|---|
| 31 | MSrcPosCam *fSrcPos;
|
|---|
| 32 | MHillas *fHil;
|
|---|
| 33 | MHillasExt *fHilExt;
|
|---|
| 34 | MNewImagePar *fNewPar;
|
|---|
| 35 | MMcEvt *fMcEvt;
|
|---|
| 36 | MPointingPos *fPointing; // NOTE: take (theta,phi) from this container
|
|---|
| 37 | // when it is available (MC calibrated files
|
|---|
| 38 | // or data files)
|
|---|
| 39 |
|
|---|
| 40 | MImageParDisp *fImageParDisp; //! output container for Disp
|
|---|
| 41 | MDisp *fDisp; // container for Disp parameters
|
|---|
| 42 |
|
|---|
| 43 | TString fImageParDispName; // name of container to store Disp
|
|---|
| 44 | TString fDispName; // name of container for Disp parameters
|
|---|
| 45 |
|
|---|
| 46 | Double_t fMm2Deg; // conversion factor from mm to deg
|
|---|
| 47 |
|
|---|
| 48 | MHMatrix *fMatrix; // matrix defined to have as much columns as
|
|---|
| 49 | // variables wanted to be accessible during
|
|---|
| 50 | // Disp optimization, and as much rows as
|
|---|
| 51 | // events used for the optimization
|
|---|
| 52 | // (filled at MFindDisp)
|
|---|
| 53 |
|
|---|
| 54 | TArrayI fMap; // array to store the matrix mapping column
|
|---|
| 55 | // numbers corresponding to each added variable
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 | Int_t PreProcess(MParList *pList);
|
|---|
| 59 | Int_t Process();
|
|---|
| 60 |
|
|---|
| 61 | Double_t GetVal(Int_t i) const; // get value of variable entered in the matrix
|
|---|
| 62 | // at column fMap[i]
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 | public:
|
|---|
| 66 |
|
|---|
| 67 | MDispCalc(const char *imagepardispname = "MImageParDisp",
|
|---|
| 68 | const char *dispname = "MDisp",
|
|---|
| 69 | const char *name=NULL, const char *title=NULL);
|
|---|
| 70 |
|
|---|
| 71 | void InitMapping(MHMatrix *mat); // define the matrix of variables
|
|---|
| 72 | MHMatrix* GetMatrixMap(TArrayI &map); // get matrix and its mapping array
|
|---|
| 73 |
|
|---|
| 74 | ClassDef(MDispCalc, 0) // Task to evaluate Disp
|
|---|
| 75 | };
|
|---|
| 76 |
|
|---|
| 77 | #endif
|
|---|
| 78 |
|
|---|
| 79 |
|
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 |
|
|---|
| 85 |
|
|---|
| 86 |
|
|---|
| 87 |
|
|---|
| 88 |
|
|---|
| 89 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.