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

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