Line | |
---|
1 | #ifndef MARS_MSrcPosFromFile
|
---|
2 | #define MARS_MSrcPosFromFile
|
---|
3 |
|
---|
4 | #ifndef MARS_MSrcPlace
|
---|
5 | #include "MSrcPlace.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TMap
|
---|
9 | #include <TExMap.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MRawRunHeader;
|
---|
13 | class MSrcPosCam;
|
---|
14 |
|
---|
15 | class MSrcPosFromFile : public MSrcPlace
|
---|
16 | {
|
---|
17 | private:
|
---|
18 |
|
---|
19 | MRawRunHeader *fRawRunHeader;
|
---|
20 |
|
---|
21 | Int_t fNumRuns;
|
---|
22 | UInt_t fLastRun;
|
---|
23 |
|
---|
24 | Int_t *fRunList;
|
---|
25 | MSrcPosCam *fRunSrcPos;
|
---|
26 | MSrcPosCam *fLastValidSrcPosCam;
|
---|
27 | TExMap *fRunMap; // list of run numbers positions
|
---|
28 |
|
---|
29 | TString fSourcePositionFilePath;
|
---|
30 |
|
---|
31 | virtual Int_t ReadSourcePositionsFile(UShort_t readmode);
|
---|
32 | virtual Int_t ComputeNewSrcPosition();
|
---|
33 |
|
---|
34 | virtual Int_t PreProcess(MParList *plist);
|
---|
35 |
|
---|
36 | public:
|
---|
37 | enum ReadMode_t {kCount=0,kRead};
|
---|
38 |
|
---|
39 | MSrcPosFromFile(TString cardpath=0, OnOffMode_t mode=kOn, const char *name=NULL, const char *title=NULL);
|
---|
40 | ~MSrcPosFromFile();
|
---|
41 |
|
---|
42 | void SetInputFileName(TString fname) {fSourcePositionFilePath=fname;}
|
---|
43 |
|
---|
44 | ClassDef(MSrcPosFromFile, 0) // task to calculate the position of the source as a function of the run number
|
---|
45 | };
|
---|
46 |
|
---|
47 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.