StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StBbcTriggerSimu.h
1 // -*- mode:c++ -*-
2 
3 #ifndef STAR_StBbcTriggerMaker
4 #define STAR_StBbcTriggerMaker
5 
15 #ifndef StMaker_H
16 #include "StMaker.h"
17 #endif
18 
19 #include "StTriggerUtilities/StVirtualTriggerSimu.h"
20 
21 class StMuDst;
22 class StEvent;
24 
26 
27  private:
28  void Make(StMuDst*);
29  void Make(StEvent*);
30  void Make(StBbcTriggerDetector&);
31 
32  int BBCadcNum;
33  static const int AdcTrigThresh=5;
34  //int mMCflag; // set yo 0 for real data
35 
36  protected:
37 
38  public:
40  virtual ~StBbcTriggerSimu();
41  void Init();
42  void InitRun(int runnumber){}
43  void Clear();
44  void Make();
45 
46  StTriggerSimuDecision triggerDecision(int trigId) { return bbcTrig; }
47 
48  int Wbbc, Ebbc, BBCadc[48];
49  StTriggerSimuDecision bbcTrig;
50  bool getEandW() {return (Wbbc && Ebbc);} // bbc trigger decision
51  //void setMC(int x) {mMCflag=x;}
52 
53  ClassDef(StBbcTriggerSimu, 1)
54 };
55 
56 #endif
57 
58 //
59 // $Log: StBbcTriggerSimu.h,v $
60 // Revision 1.8 2009/12/22 18:11:01 pibero
61 // Added ability to set input source (MuDst or StEvent) for BBC trigger simulator.
62 //
63 // Revision 1.7 2007/11/08 20:59:43 kocolosk
64 // subdet isTrigger returns a bool
65 // triggerDecision returns enumerator including kDoNotCare
66 //
67 // Revision 1.6 2007/10/22 23:09:51 balewski
68 // split L2 to generic and year specific, not finished
69 //
70 // Revision 1.5 2007/10/12 17:12:38 kocolosk
71 // rename ABC class for subdetector trigger simulators
72 // StTriggerSimu => StVirtualTriggerSimu
73 //
74 // Revision 1.4 2007/09/24 18:08:30 kocolosk
75 // added inheritance from ABC clss StTriggerSimu
76 //
77 // Revision 1.3 2007/07/23 02:59:56 balewski
78 // cleanup, bbc for M-C still not working
79 //
80 
StTriggerSimuDecision triggerDecision(int trigId)
like isTrigger(), but returns kDoNotCare if detector isn't a part of the given trigId ...