source: trunk/MagicSoft/Mars/mtemp/mifae/library/MSrcPosFromFile.h@ 3999

Last change on this file since 3999 was 3947, checked in by rico, 21 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef MARS_MSrcPosFromFile
2#define MARS_MSrcPosFromFile
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8#ifndef ROOT_TMap
9#include <TExMap.h>
10#endif
11
12class TH2F;
13
14class MRawRunHeader;
15class MSrcPosCam;
16
17class MSrcPosFromFile : public MTask
18{
19 private:
20
21 MRawRunHeader *fRawRunHeader;
22 MSrcPosCam *fSrcPos; // Pointer to the source position
23
24 Int_t fNumRuns;
25 UInt_t fLastRun;
26
27 Int_t *fRunList;
28 MSrcPosCam *fRunSrcPos;
29 TExMap *fRunMap; // list of run numbers positions
30
31 TH2F *fHistSrcPos;
32 UShort_t fMode;
33
34 TString fSourcePositionFilePath;
35 Int_t ReadSourcePositionsFile(UShort_t readmode);
36
37 Int_t PreProcess(MParList *plist);
38 Bool_t ReInit(MParList *plist);
39 Int_t Process();
40 Int_t PostProcess();
41
42public:
43
44 enum ReadMode_t {kCount=0,kRead};
45 enum OnOffMode_t {kOn=0,kOff};
46
47 MSrcPosFromFile(TString cardpath, OnOffMode_t mode=kOn, const char *name=NULL, const char *title=NULL);
48 ~MSrcPosFromFile();
49
50 void SetMode(OnOffMode_t mode) {fMode=mode;}
51
52 ClassDef(MSrcPosFromFile, 0) // task to calculate the position of the source as a function of the run number
53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.