StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTriggerFilterMaker.h
1 #ifndef ST_TRIGGER_FILTER_MAKER_HH
2 #define ST_TRIGGER_FILTER_MAKER_HH
3 
4 // $Id: StTriggerFilterMaker.h,v 1.2 2014/08/06 11:43:18 jeromel Exp $
5 
6 /*****************************************************************************
7  * @class StTriggerFilterMaker
8  * @author A.Kocoloski
9  *
10  * Privileged Maker which skips events unless they match supplied trigger IDs.
11  *****************************************************************************/
12 
13 #ifndef StMaker_H
14 #include "StMaker.h"
15 #endif
16 
17 #include <vector>
18 using std::vector;
19 
20 class StTriggerFilterMaker : public StMaker {
21 public:
22  StTriggerFilterMaker(const char *name = "triggerFilter");
23  virtual ~StTriggerFilterMaker();
24 
25  //virtual void Clear(const char *option="");
26  virtual Int_t Init();
27  //virtual Int_t InitRun(int runnumber);
28  virtual Int_t Make();
29  //virtual Int_t Finish();
30 
31  void addTrigger(unsigned int trigId) { mGoodTriggers.push_back(trigId); }
32 
33  virtual const char* GetCVS() const
34  {static const char cvs[]="Tag $Name: $ $Id: StTriggerFilterMaker.h,v 1.2 2014/08/06 11:43:18 jeromel Exp $ built " __DATE__ " " __TIME__; return cvs;}
35 
36 private:
37  vector<unsigned int> mGoodTriggers;
38 
39  ClassDef(StTriggerFilterMaker,1)
40 };
41 
42 #endif
43 
44 /*****************************************************************************
45  * $Log: StTriggerFilterMaker.h,v $
46  * Revision 1.2 2014/08/06 11:43:18 jeromel
47  * Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
48  *
49  * Revision 1.1 2008/06/11 20:55:36 pibero
50  * Adam's maker to select events with specific trigger id's.
51  *
52  * Revision 1.1 2008/01/23 04:45:08 kocolosk
53  * Privileged Maker which skips events unless they fired any one of a set of supplied trigIDs
54  *
55  *****************************************************************************/