StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTrigger2006DataMaker.C
1 #include "StMaker.h"
2 
3 #include "StjTrgPassCondition.h"
4 
5 #include "StjTrgMuDst.h"
6 
7 #include "StjTrgJPWriter.h"
8 #include "StjTrgHTWriter.h"
9 #include "StjTrgMBWriter.h"
10 #include "StjTrgBEMCJetPatchTowerIdMap2006.h"
11 
12 #include "StjTrgMuDst.h"
13 
14 #include "StjTrgSoftMuDstEmcTriggerMakerFactory.h"
15 #include "StjTrgSoftMuDstTriggerSimuMakerFactory.h"
16 
18 
19 public:
20 
21  StjTrigger2006DataMaker(const Char_t *name, TDirectory* file, StMuDstMaker* uDstMaker, StEmcTriggerMaker* emcTrigMaker)
22  : StMaker(name), _file(file), _uDstMaker(uDstMaker)
23  , _softTrgFactory(new StjTrgSoftMuDstEmcTriggerMakerFactory(emcTrigMaker, uDstMaker, new StjTrgBEMCJetPatchTowerIdMap2006()))
24  { }
25 
26  StjTrigger2006DataMaker(const Char_t *name, TDirectory* file, StMuDstMaker* uDstMaker, StTriggerSimuMaker* simuTrig)
27  : StMaker(name), _file(file), _uDstMaker(uDstMaker)
28  , _softTrgFactory(new StjTrgSoftMuDstTriggerSimuMakerFactory(simuTrig, uDstMaker, new StjTrgBEMCJetPatchTowerIdMap2006()))
29  { }
30 
31  virtual ~StjTrigger2006DataMaker() { }
32 
33  const char* GetCVS() const
34  {static const char cvs[]="Tag $Name: $ $Id: StjTrigger2006DataMaker.C,v 1.3 2014/08/06 11:43:24 jeromel Exp $ built " __DATE__ " " __TIME__; return cvs;}
35 
36 private:
37 
38  TDirectory* _file;
39 
40  StMuDstMaker* _uDstMaker;
41  StjTrgSoftFactory* _softTrgFactory;
42 
43  StjTrgWriter* _minbWriter;
44  StjTrgWriter* _bht2Writer;
45  StjTrgWriter* _bjp1_1Writer;
46  StjTrgWriter* _bjp1_2Writer;
47 
48 public:
49 
50  Int_t Init()
51  {
52  StjTrgPassCondition* minbPassCondition = new StjTrgPassConditionHardOnly;
53  StjTrg* minbTrg = new StjTrgMuDst(117001, minbPassCondition, _uDstMaker, _softTrgFactory->create());
54  StjTrgPassCondition* minbFillCondition = new StjTrgPassConditionHardOnly;
55  _minbWriter = new StjTrgMBWriter("trg117001", "trg117001", _file, minbTrg, minbFillCondition);
56 
57  StjTrgPassCondition* bht2PassCondition = new StjTrgPassConditionHardAndSoft;
58  StjTrg* bht2Trg = new StjTrgMuDst(137213, bht2PassCondition, _uDstMaker, _softTrgFactory->create());
59  StjTrgPassCondition* bht2FillCondition = new StjTrgPassConditionHardOrSoft;
60  _bht2Writer = new StjTrgHTWriter("trg137213", "trg137213", _file, bht2Trg, bht2FillCondition);
61 
62  StjTrgPassCondition* bjp1_1PassCondition = new StjTrgPassConditionHardAndSoft;
63  StjTrg* bjp1_1Trg = new StjTrgMuDst(137221, bjp1_1PassCondition, _uDstMaker, _softTrgFactory->create());
64  StjTrgPassCondition* bjp1_1FillCondition = new StjTrgPassConditionHardOrSoft;
65  _bjp1_1Writer = new StjTrgJPWriter("trg137221", "trg137221", _file, bjp1_1Trg, bjp1_1FillCondition);
66 
67  StjTrgPassCondition* bjp1_2PassCondition = new StjTrgPassConditionHardAndSoft;
68  StjTrg* bjp1_2Trg = new StjTrgMuDst(137222, bjp1_2PassCondition, _uDstMaker, _softTrgFactory->create());
69  StjTrgPassCondition* bjp1_2FillCondition = new StjTrgPassConditionHardOrSoft;
70  _bjp1_2Writer = new StjTrgJPWriter("trg137222", "trg137222", _file, bjp1_2Trg, bjp1_2FillCondition);
71 
72  _minbWriter->Init();
73  _bht2Writer->Init();
74  _bjp1_1Writer->Init();
75  _bjp1_2Writer->Init();
76 
77  return kStOk;
78  }
79 
80  Int_t Make()
81  {
82  _minbWriter->Make();
83  _bht2Writer->Make();
84  _bjp1_1Writer->Make();
85  _bjp1_2Writer->Make();
86 
87  return kStOk;
88  }
89 
90  Int_t Finish()
91  {
92  _minbWriter->Finish();
93  _bht2Writer->Finish();
94  _bjp1_1Writer->Finish();
95  _bjp1_2Writer->Finish();
96 
97  return kStOk;
98  }
99 
100  ClassDef(StjTrigger2006DataMaker, 0)
101 
102 };
Definition: StjTrg.h:11
StMaker(const char *name="", const char *dummy=0)
Constructor & Destructor.
Definition: StMaker.cxx:188
Definition: Stypes.h:41