StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTrigger.cxx
1 /***************************************************************************
2  *
3  * $Id: StTrigger.cxx,v 2.2 2001/08/29 18:53:37 ullrich Exp $
4  *
5  * Author: Thomas Ullrich, Sep 1999
6  ***************************************************************************
7  *
8  * Description:
9  *
10  ***************************************************************************
11  *
12  * $Log: StTrigger.cxx,v $
13  * Revision 2.2 2001/08/29 18:53:37 ullrich
14  * Changed trigger words to UInt_t (was UShort_t)
15  *
16  * Revision 2.1 2001/04/05 04:00:59 ullrich
17  * Replaced all (U)Long_t by (U)Int_t and all redundant ROOT typedefs.
18  *
19  * Revision 2.0 1999/10/12 18:43:10 ullrich
20  * Completely Revised for New Version
21  *
22  **************************************************************************/
23 #include "StTrigger.h"
24 
25 static const char rcsid[] = "$Id";
26 
27 ClassImp(StTrigger)
28 
30 {
31  mTriggerActionWord = 0;
32  mTriggerWord = 0;
33 }
34 
35 StTrigger::StTrigger(unsigned int aw, unsigned int w)
36 {
37  mTriggerActionWord = aw;
38  mTriggerWord = w;
39 }
40 
41 StTrigger::~StTrigger() { /* noop */}
42 
43 int
44 StTrigger::operator==(const StTrigger& t) const
45 {
46  return mTriggerActionWord == t.mTriggerActionWord &&
47  mTriggerWord == t.mTriggerWord;
48 }
49 
50 int
51 StTrigger::operator!=(const StTrigger& t) const
52 {
53  return !(t == *this);
54 }
55 
56 unsigned int
57 StTrigger::triggerActionWord() const { return mTriggerActionWord; }
58 
59 unsigned int
60 StTrigger::triggerWord() const { return mTriggerWord; }
61 
62 void
63 StTrigger::setTriggerActionWord(unsigned int val) { mTriggerActionWord = val; }
64 
65 void
66 StTrigger::setTriggerWord(unsigned int val) { mTriggerWord = val; }