source: trunk/Mars/mfilter/MFEvtNumber.h@ 17385

Last change on this file since 17385 was 8419, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MFEvtNumber
2#define MARS_MFEvtNumber
3
4#ifndef MARS_MFilter
5#include "MFilter.h"
6#endif
7
8#ifndef ROOT_TExMap
9#include <TExMap.h>
10#endif
11
12class MRawRunHeader;
13class MRawEvtHeader;
14
15class MFEvtNumber : public MFilter
16{
17private:
18 MRawRunHeader *fRun; //! MRawRunHeader with run-number of event
19 MRawEvtHeader *fEvt; //! MRawEvtHeader with evt-number of event
20
21 Bool_t fResult; //! Result returned by IsExpressionTrue
22
23 TString fFileName; // File name of the file with the even-/run-number
24 TString fTreeName; // Tree name of the file with the even-/run-number
25
26 TString fSelector; // Selector to choose run-/evt-number from file
27
28 TExMap fList; // List with all event-/run-numbers
29
30 ULong_t Compile(ULong64_t run, ULong64_t evt) const { return (run<<32)|evt; }
31 ULong_t GetEvtId() const;
32
33 // MTask
34 Int_t PreProcess(MParList *pList);
35 Int_t Process();
36
37 // MFilter
38 Bool_t IsExpressionTrue() const { return fResult; }
39
40public:
41 MFEvtNumber(const char *name=NULL, const char *title=NULL);
42
43 // Setter
44 void SetFileName(const char *name) { fFileName=name; }
45 void SetTreeName(const char *name) { fTreeName=name; }
46 void SetSelector(const char *sel) { fSelector=sel; }
47
48 // MParContainer
49 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
50
51 ClassDef(MFEvtNumber, 0) // Filter to select events by run- and evt-number
52};
53
54#endif
55
56
57
58
59
60
Note: See TracBrowser for help on using the repository browser.