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
StJetMaker
trigger
StjTrgPassCondition.h
1
// -*- mode: c++;-*-
2
// $Id: StjTrgPassCondition.h,v 1.6 2008/09/21 19:11:47 tai Exp $
3
#ifndef STJTRGPASSCONDITION_H
4
#define STJTRGPASSCONDITION_H
5
6
#include <TObject.h>
7
8
#include "StjTrg.h"
9
10
class
StjTrgPassCondition
:
public
TObject {
11
public
:
12
StjTrgPassCondition
() { }
13
virtual
~
StjTrgPassCondition
() { }
14
virtual
bool
operator()(
const
StjTrg
* trg) = 0;
15
16
ClassDef(
StjTrgPassCondition
, 1)
17
};
18
19
class
StjTrgPassConditionHardAndSoft
:
public
StjTrgPassCondition
{
20
public
:
21
StjTrgPassConditionHardAndSoft
() { }
22
virtual
~
StjTrgPassConditionHardAndSoft
() { }
23
bool
operator()(
const
StjTrg
* trg)
24
{
25
return
(trg->hard() && trg->soft());
26
}
27
28
ClassDef(
StjTrgPassConditionHardAndSoft
, 1)
29
};
30
31
class
StjTrgPassConditionHardOrSoft
:
public
StjTrgPassCondition
{
32
public
:
33
StjTrgPassConditionHardOrSoft
() { }
34
virtual
~
StjTrgPassConditionHardOrSoft
() { }
35
bool
operator()(
const
StjTrg
* trg)
36
{
37
return
(trg->hard() || trg->soft());
38
}
39
40
ClassDef(
StjTrgPassConditionHardOrSoft
, 1)
41
};
42
43
class
StjTrgPassConditionHardOnly
:
public
StjTrgPassCondition
{
44
public
:
45
StjTrgPassConditionHardOnly
() { }
46
virtual
~
StjTrgPassConditionHardOnly
() { }
47
bool
operator()(
const
StjTrg
* trg)
48
{
49
return
(trg->hard());
50
}
51
52
ClassDef(
StjTrgPassConditionHardOnly
, 1)
53
};
54
55
class
StjTrgPassConditionSoftOnly
:
public
StjTrgPassCondition
{
56
public
:
57
StjTrgPassConditionSoftOnly
() { }
58
virtual
~
StjTrgPassConditionSoftOnly
() { }
59
bool
operator()(
const
StjTrg
* trg)
60
{
61
return
(trg->soft());
62
}
63
64
ClassDef(
StjTrgPassConditionSoftOnly
, 1)
65
};
66
67
class
StjTrgPassConditionPass
:
public
StjTrgPassCondition
{
68
public
:
69
StjTrgPassConditionPass
() { }
70
virtual
~
StjTrgPassConditionPass
() { }
71
bool
operator()(
const
StjTrg
* trg)
72
{
73
return
(trg->passed());
74
}
75
76
ClassDef(
StjTrgPassConditionPass
, 1)
77
};
78
79
#endif // STJTRGPASSCONDITION_H
StjTrgPassConditionHardOrSoft
Definition:
StjTrgPassCondition.h:31
StjTrgPassCondition
Definition:
StjTrgPassCondition.h:10
StjTrg
Definition:
StjTrg.h:11
StjTrgPassConditionPass
Definition:
StjTrgPassCondition.h:67
StjTrgPassConditionSoftOnly
Definition:
StjTrgPassCondition.h:55
StjTrgPassConditionHardAndSoft
Definition:
StjTrgPassCondition.h:19
StjTrgPassConditionHardOnly
Definition:
StjTrgPassCondition.h:43
Generated by
1.8.5