source: trunk/MagicSoft/Mars/mpointing/MSrcPosRndm.h@ 9294

Last change on this file since 9294 was 8802, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 832 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 MSrcPosCam *fSrcPosAnti; //!
16 MHSrcPosCam *fHist; //!
17
18 Double_t fConvMm2Deg;
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
25public:
26 MSrcPosRndm() : fSrcPos(0), fHist(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.