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
StGammaMaker
StTriggerFilterMaker.cxx
1
// $Id: StTriggerFilterMaker.cxx,v 1.1 2008/06/11 20:55:36 pibero Exp $
2
3
#include "StTriggerFilterMaker.h"
4
#include "StMuDSTMaker/COMMON/StMuDst.h"
5
#include "StMuDSTMaker/COMMON/StMuEvent.h"
6
7
ClassImp(
StTriggerFilterMaker
)
8
9
StTriggerFilterMaker
::
StTriggerFilterMaker
(const
char
*name) :
StMaker
(name) { }
10
11
StTriggerFilterMaker::~StTriggerFilterMaker() {
12
mGoodTriggers.clear();
13
}
14
15
Int_t StTriggerFilterMaker::Init() {
16
// this allows us to skip an event for other Makers
17
SetAttr(
".Privilege"
,1);
18
return
kStOk
;
19
}
20
21
Int_t
StTriggerFilterMaker::Make
() {
22
for
(
unsigned
i=0; i<mGoodTriggers.size(); ++i) {
23
if
(
StMuDst::event
()->triggerIdCollection().nominal().isTrigger(mGoodTriggers[i])) {
24
return
kStOk
;
25
}
26
}
27
return
kStSkip
;
28
}
29
30
/*****************************************************************************
31
* $Log: StTriggerFilterMaker.cxx,v $
32
* Revision 1.1 2008/06/11 20:55:36 pibero
33
* Adam's maker to select events with specific trigger id's.
34
*
35
* Revision 1.1 2008/01/23 04:45:07 kocolosk
36
* Privileged Maker which skips events unless they fired any one of a set of supplied trigIDs
37
*
38
*****************************************************************************/
StTriggerFilterMaker
Definition:
StTriggerFilterMaker.h:20
StMaker
Definition:
StMaker.h:57
kStSkip
Definition:
Stypes.h:49
StMuDst::event
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)
Definition:
StMuDst.h:320
StTriggerFilterMaker::Make
virtual Int_t Make()
Definition:
StTriggerFilterMaker.cxx:21
kStOk
Definition:
Stypes.h:41
Generated by
1.8.5