source: trunk/MagicSoft/Mars/mfilter/MFParticleId.h@ 8220

Last change on this file since 8220 was 7804, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MFParticleId
2#define MARS_MFParticleId
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MFParticleId //
7// //
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef MARS_MFilter
11#include "MFilter.h"
12#endif
13
14class MMcEvt;
15class MParList;
16
17class MFParticleId : public MFilter
18{
19private:
20 MMcEvt *fMcEvt;
21 TString fContName;
22
23 typedef enum { kEEqual, kENotEqual } FilterType_t;
24 FilterType_t fFilterType;
25
26 Bool_t fResult; //!
27 Int_t fValue;
28
29 void Init(const char type, const Int_t val,
30 const char *name, const char *title);
31
32 void StreamPrimitive(ostream &out) const;
33
34 Int_t PreProcess(MParList *pList);
35 Int_t Process();
36
37public:
38 MFParticleId(const char *cname="MMcEvt", const char type='=', const Int_t val=0,
39 const char *name=NULL, const char *title=NULL);
40 MFParticleId(MMcEvt *mcevt, const char type='=', const Int_t val=0,
41 const char *name=NULL, const char *title=NULL);
42
43 Bool_t IsExpressionTrue() const;
44
45 ClassDef(MFParticleId, 1) // A Filter for the (corsika) particle Id
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.