source: tags/Mars-V0.10.2/mpointing/MSrcPosRndm.h

Last change on this file was 7690, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 789 bytes
Line 
1#ifndef MARS_MSrcPosRndm
2#define MARS_MSrcPosRndm
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MSrcPosCam;
9class MHSrcPosCam;
10
11class MSrcPosRndm : public MTask
12{
13private:
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
24public:
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.