StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StTriggerUtilities
StDSMUtilities
TCU.hh
1
//
2
// Pibero Djawotho <pibero@comp.tamu.edu>
3
// Texas A&M University Cyclotron Institute
4
// 7 Jan 2009
5
//
6
7
#ifndef TCU_HH
8
#define TCU_HH
9
10
struct
TriggerDefinition
;
11
12
#include <string>
13
#include <map>
14
#include <set>
15
16
using namespace
std;
17
18
class
TCU
{
19
public
:
20
// void defineTrigger(const TriggerDefinition& triggerDef);
21
void
defineTrigger(
TriggerDefinition
& triggerDef);
22
bool
isOnBits(
int
onbits)
const
;
23
bool
isTrigger(
int
triggerId)
const
;
24
set<int> triggerIds()
const
;
25
int
input()
const
{
return
mInput; }
26
27
void
setInput(
int
input) { mInput = input; }
28
void
clear() { mTriggers.clear(); }
29
30
protected
:
31
multimap<int, TriggerDefinition> mTriggers;
// key=triggerId, value=trigger definition
32
int
mInput;
33
};
34
35
#endif // TCU_HH
TriggerDefinition
Definition:
TriggerDefinition.hh:10
TCU
Definition:
TCU.hh:18
Generated by
1.8.5