StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTrigCounter.h
1 /*
2  * Created by S. Gliske, May 2012
3  *
4  * Description: count events matching a single, given trigger (most likely mb).
5  *
6  */
7 
8 #ifndef StTrigCounter_H_
9 #define StTrigCounter_H_
10 
11 #include <set>
12 #include <Rtypes.h>
13 #include "StMaker.h"
14 
15 class StTrigCounter : public StMaker {
16  public:
18  StTrigCounter( const Char_t *myName, Int_t trigID = 117001 );
19 
21  virtual ~StTrigCounter();
22 
24  Int_t Init();
25 
27  Int_t Make();
28 
30  void Clear(Option_t *opts="");
31 
33  Int_t Finish();
34 
36  void printStatus();
37 
39  UInt_t getTrigID() const;
40  Int_t getNumEventsTot() const;
41  Int_t getNumEventsInCut() const;
42 
46 
47  protected:
48  UInt_t mTrigID;
49  Int_t mNumEvents, mNumEventsInCut;
50 
51  private:
52  // for ROOT
53  ClassDef( StTrigCounter, 1 );
54 };
55 
56 #endif
57 
58 /*
59  * $Id: StTrigCounter.h,v 1.2 2013/02/28 23:37:22 sgliske Exp $
60  * $Log: StTrigCounter.h,v $
61  * Revision 1.2 2013/02/28 23:37:22 sgliske
62  * Updated so result of StTrigCounter gets saved in EEmcTree Part1
63  * rather than just being output to the console (log file)
64  *
65  * Revision 1.1 2012/12/17 20:58:56 sgliske
66  * first added to official StEEmcPool
67  *
68  *
69  */
Int_t Finish()
Write everything to file.
void printStatus()
monitering status
UInt_t getTrigID() const
get values
Int_t Init()
Initialize.
void Clear(Option_t *opts="")
Clear for next event.
Int_t Make()
Build an event.
StTrigCounter(const Char_t *myName, Int_t trigID=117001)
constructor
virtual ~StTrigCounter()
deconstructor