source: branches/Mars_McMismatchStudy/mpointing/MSrcPosRndm.h@ 18679

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