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