StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StL2TriggerSimu.cxx
1 //Author ::JB
2 // interface to L2EmulatorMaker
3 
4 #include <StChain.h>
5 #include <StMaker.h>
6 
7 //STAR
8 #include <StMessMgr.h>
9 #include <St_db_Maker/St_db_Maker.h>
10 
11 #include "StL2TriggerSimu.h"
12 #include "StGenericL2Emulator.h"
13 #include "StGenericL2Emulator2009.h"
14 
15 ClassImp(StL2TriggerSimu)
16 
17 //==================================================
18 //==================================================
19 void
20 StL2TriggerSimu::InitRun(int runnumber){
21  St_db_Maker* mydb = (St_db_Maker*) StMaker::GetChain()->GetMaker("StarDb");
22  assert(mydb);
23  mYear=mydb->GetDateTime().GetYear();
24  assert(mL2maker || mL2maker2009);
25  LOG_INFO <<Form("L2TriggerSimu::InitRun() year=%d",mYear )<<endm;
26 
27 }
28 
29 
30 
31 //==================================================
32 //==================================================
33 void
34 StL2TriggerSimu::Init(){
35 
36  LOG_INFO <<Form("L2TriggerSimu::Init() " )<<endm;
37 }
38 
39 //==================================================
40 //==================================================
41 
42 StTriggerSimuDecision
44  return mL2maker ? mL2maker->isTrigger(trigId) : mL2maker2009->isTrigger(trigId);
45 }
46 
47 const unsigned int* StL2TriggerSimu::result() const {
48  return mL2maker ? mL2maker->result() : mL2maker2009->result();
49 }
50 
51 
52 //
53 // $Log: StL2TriggerSimu.cxx,v $
54 // Revision 1.8 2010/04/17 16:41:51 pibero
55 // *** empty log message ***
56 //
57 // Revision 1.7 2008/01/17 01:56:52 kocolosk
58 // export 128-byte emulated L2Result
59 //
60 // Revision 1.6 2007/11/18 21:58:53 balewski
61 // L2algos triggerId list fixed
62 //
63 // Revision 1.5 2007/11/08 20:59:58 kocolosk
64 // subdet isTrigger returns a bool
65 // triggerDecision returns enumerator including kDoNotCare
66 //
67 // Revision 1.4 2007/10/23 13:26:40 balewski
68 // more cleanup
69 //
70 // Revision 1.3 2007/10/23 03:43:06 balewski
71 // clenup
72 //
73 // Revision 1.2 2007/10/22 23:09:59 balewski
74 // split L2 to generic and year specific, not finished
75 //
76 // Revision 1.1 2007/10/11 21:22:57 balewski
77 // added L2-->L0 interface class
78 //
79 // Revision 1.3 2007/07/23 02:59:56 balewski
80 // cleanup, bbc for M-C still not working
81 //
82 
83 
84 
85 
86 
87 
88 
89 
90 
91 
const unsigned int * result() const
bag of 64 bytes whose interpretation changes year-by-year
const unsigned int * result() const
bag of 64 bytes whose interpretation changes year-by-year
const unsigned int * result() const
bag of 64 bytes whose interpretation changes year-by-year
StTriggerSimuDecision triggerDecision(int trigId)
like isTrigger(), but returns kDoNotCare if detector isn&#39;t a part of the given trigId ...