| Line | |
|---|
| 1 | #ifndef MARS_MSrcPosRndm
|
|---|
| 2 | #define MARS_MSrcPosRndm
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MTask
|
|---|
| 5 | #include "MTask.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class MGeomCam;
|
|---|
| 9 | class MSrcPosCam;
|
|---|
| 10 | class MHSrcPosCam;
|
|---|
| 11 |
|
|---|
| 12 | class MSrcPosRndm : public MTask
|
|---|
| 13 | {
|
|---|
| 14 | private:
|
|---|
| 15 | MSrcPosCam *fSrcPos; //!
|
|---|
| 16 | MSrcPosCam *fSrcPosAnti; //!
|
|---|
| 17 | MHSrcPosCam *fHist; //!
|
|---|
| 18 | MGeomCam *fGeom; //! Conversion factor from mm to deg
|
|---|
| 19 |
|
|---|
| 20 | Double_t fDistOfSource; // [deg] Distance of the source from the camera center
|
|---|
| 21 |
|
|---|
| 22 | Int_t PreProcess(MParList *plist);
|
|---|
| 23 | Int_t Process();
|
|---|
| 24 |
|
|---|
| 25 | public:
|
|---|
| 26 | MSrcPosRndm() : fSrcPos(0), fSrcPosAnti(0), fHist(0), fGeom(0), fDistOfSource(-1)
|
|---|
| 27 | {
|
|---|
| 28 | fName = "MSrcPosRndm";
|
|---|
| 29 | fTitle = "Overwrite the source position with a random one from MHSrcPosCam";
|
|---|
| 30 | }
|
|---|
| 31 |
|
|---|
| 32 | void SetDistOfSource(Double_t dist=-1) { fDistOfSource=dist; }
|
|---|
| 33 |
|
|---|
| 34 | ClassDef(MSrcPosRndm, 0) //Overwrite the source position with a random one from MHSrcPosCam
|
|---|
| 35 | };
|
|---|
| 36 |
|
|---|
| 37 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.