Line | |
---|
1 | #ifndef MARS_MSrcPlace
|
---|
2 | #define MARS_MSrcPlace
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MDCA;
|
---|
9 | class MSrcPosCam;
|
---|
10 | class TH2F;
|
---|
11 |
|
---|
12 | class MSrcPlace : public MTask
|
---|
13 | {
|
---|
14 | public:
|
---|
15 | enum OnOffMode_t {kOn=0,kOff};
|
---|
16 |
|
---|
17 | private:
|
---|
18 | MSrcPosCam* fSrcPos; // Pointer to the source position
|
---|
19 | MDCA* fDCA; // Pointer to the MDCA object
|
---|
20 |
|
---|
21 | TString fSrcPosName; // Name of the MSrcPosCam object
|
---|
22 | TString fDCAName; // Name of the MDCA object
|
---|
23 |
|
---|
24 | TH2F* fHistPos; // histogram of the used source positions
|
---|
25 | OnOffMode_t fMode; // On/Off data mode (write/read to/from the histogram)
|
---|
26 |
|
---|
27 | void SavePosIntoHisto();
|
---|
28 | void ReadPosFromHisto();
|
---|
29 |
|
---|
30 | virtual Int_t Process();
|
---|
31 | virtual Int_t PostProcess();
|
---|
32 |
|
---|
33 | protected:
|
---|
34 | virtual Int_t PreProcess(MParList *plist);
|
---|
35 |
|
---|
36 | public:
|
---|
37 | MSrcPlace(const char* histname="HistSrcPos",
|
---|
38 | const char* src="MSrcPosCam", const char* dca="MDCA",
|
---|
39 | const char* name=NULL, const char* title=NULL);
|
---|
40 |
|
---|
41 | virtual ~MSrcPlace();
|
---|
42 |
|
---|
43 | void SetMode(OnOffMode_t mode) {fMode=mode;}
|
---|
44 | void SetSrcPosName(TString name) {fSrcPosName=name;}
|
---|
45 | void SetDCAName(TString name) {fDCAName=name;}
|
---|
46 |
|
---|
47 | OnOffMode_t GetMode() {return fMode;}
|
---|
48 | TH2F* GetPositionHisto() {return fHistPos;}
|
---|
49 | MSrcPosCam* GetSrcPosCam() {return fSrcPos;}
|
---|
50 | MDCA* GetDCA() {return fDCA;}
|
---|
51 |
|
---|
52 | virtual Int_t ComputeNewSrcPosition() {return kTRUE;}
|
---|
53 |
|
---|
54 | ClassDef(MSrcPlace, 0) // task to rotate the position of the source as a function of Azimuth and Zenith angles
|
---|
55 | };
|
---|
56 |
|
---|
57 | #endif
|
---|
58 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.