source: trunk/MagicSoft/Mars/mfilter/MFSoftwareTrigger.h@ 3807

Last change on this file since 3807 was 3454, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 977 bytes
Line 
1#ifndef MARS_MFSoftwareTrigger
2#define MARS_MFSoftwareTrigger
3
4#ifndef MARS_MFilter
5#include "MFilter.h"
6#endif
7
8class MMcEvt;
9class MGeomCam;
10class MCerPhotEvt;
11
12class MFSoftwareTrigger : public MFilter
13{
14private:
15 const MGeomCam *fCam; // Camera Geometry
16 const MCerPhotEvt *fEvt; // Cerenkov Photon Event
17
18 Float_t fNumMinPhotons; // nuber of minimum required photons
19 Byte_t fNumNeighbors; // number of required neighbours
20
21 Int_t fCut[2];
22
23 Bool_t fResult;
24
25 Int_t PreProcess(MParList *pList);
26 Int_t Process();
27 Int_t PostProcess();
28
29 Bool_t SwTrigger() const;
30
31 Bool_t IsExpressionTrue() const { return fResult; }
32
33public:
34 MFSoftwareTrigger(const char *name=NULL, const char *title=NULL);
35
36 void SetNumMinPhotons(Float_t minphotons) { fNumMinPhotons = minphotons; }
37 void SetNumNeighbors(Byte_t num) { fNumNeighbors = num; }
38
39 ClassDef(MFSoftwareTrigger, 0) // Filter for software trigger
40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.