StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTrigger2005DataMaker2.C
1 #include "StMaker.h"
2 
3 #include "StjTrgPassCondition.h"
4 
5 #include "StjTrgMuDst.h"
6 
7 #include "StjBEMCMuDst.h"
8 
9 #include "StjTrgJPWriter.h"
10 #include "StjTrgHTWriter.h"
11 #include "StjTrgMBWriter.h"
12 #include "StjTrgBEMCJetPatchTowerIdMap2005.h"
13 
14 #include "StjTrgSoftPass.h"
15 #include "StjTrgSoftEtThresholdBHT.h"
16 #include "StjTrgSoftEtThresholdBJP.h"
17 
18 #include "StjTrgMuDst.h"
19 
21 
22 public:
23 
24  StjTrigger2005DataMaker2(const Char_t *name, TDirectory* file, StMuDstMaker* uDstMaker)
25  : StMaker(name), _file(file), _uDstMaker(uDstMaker)
26  { }
27 
28  virtual ~StjTrigger2005DataMaker2() { }
29 
30  const char* GetCVS() const
31  {static const char cvs[]="Tag $Name: $ $Id: StjTrigger2005DataMaker2.C,v 1.3 2014/08/06 11:43:24 jeromel Exp $ built " __DATE__ " " __TIME__; return cvs;}
32 
33 private:
34 
35  TDirectory* _file;
36 
37  StMuDstMaker* _uDstMaker;
38 
39  StjTrgWriter* _minbWriter;
40  StjTrgWriter* _bht1Writer;
41  StjTrgWriter* _bht2Writer;
42  StjTrgWriter* _bjp1Writer;
43  StjTrgWriter* _bjp2Writer;
44 
45 public:
46 
47  Int_t Init()
48  {
49  StjBEMC* bemc = new StjBEMCMuDst(_uDstMaker, true);
50 
51  StjTrgPassCondition* minbPassCondition = new StjTrgPassConditionHardOnly;
52  StjTrg* minbTrg = new StjTrgMuDst(96011, minbPassCondition, _uDstMaker, new StjTrgSoftPass());
53  StjTrgPassCondition* minbFillCondition = new StjTrgPassConditionHardOnly;
54  _minbWriter = new StjTrgMBWriter("trgMINB", "trgMINB", _file, minbTrg, minbFillCondition);
55 
56  StjTrgPassCondition* bht1PassCondition = new StjTrgPassConditionHardAndSoft;
57  StjTrgSoft* softbht1 = new StjTrgSoftEtThresholdBHT(bemc, 2.0);
58  StjTrg* bht1Trg = new StjTrgMuDst(96201, bht1PassCondition, _uDstMaker, softbht1);
59  StjTrgPassCondition* bht1FillCondition = new StjTrgPassConditionHardOrSoft;
60  _bht1Writer = new StjTrgHTWriter("trgBHT1", "trgBHT1", _file, bht1Trg, bht1FillCondition);
61 
62  StjTrgPassCondition* bht2PassCondition = new StjTrgPassConditionHardAndSoft;
63  StjTrgSoft* softbht2 = new StjTrgSoftEtThresholdBHT(bemc, 3.0);
64  StjTrg* bht2Trg = new StjTrgMuDst(96211, bht2PassCondition, _uDstMaker, softbht2);
65  StjTrgPassCondition* bht2FillCondition = new StjTrgPassConditionHardOrSoft;
66  _bht2Writer = new StjTrgHTWriter("trgBHT2", "trgBHT2", _file, bht2Trg, bht2FillCondition);
67 
69 
70  StjTrgPassCondition* bjp1PassCondition = new StjTrgPassConditionHardAndSoft;
71  StjTrgSoft* softbjp1 = new StjTrgSoftEtThresholdBJP(bemc, bemcJpTowerMap, 4.0);
72  StjTrg* bjp1Trg = new StjTrgMuDst(96221, bjp1PassCondition, _uDstMaker, softbjp1);
73  StjTrgPassCondition* bjp1FillCondition = new StjTrgPassConditionHardOrSoft;
74  _bjp1Writer = new StjTrgJPWriter("trgBJP1", "trgBJP1", _file, bjp1Trg, bjp1FillCondition);
75 
76  StjTrgPassCondition* bjp2PassCondition = new StjTrgPassConditionHardAndSoft;
77  StjTrgSoft* softbjp2 = new StjTrgSoftEtThresholdBJP(bemc, bemcJpTowerMap, 5.0);
78  StjTrg* bjp2Trg = new StjTrgMuDst(96233, bjp2PassCondition, _uDstMaker, softbjp2);
79  StjTrgPassCondition* bjp2FillCondition = new StjTrgPassConditionHardOrSoft;
80  _bjp2Writer = new StjTrgJPWriter("trgBJP2", "trgBJP2", _file, bjp2Trg, bjp2FillCondition);
81 
82  _minbWriter->Init();
83  _bht1Writer->Init();
84  _bht2Writer->Init();
85  _bjp1Writer->Init();
86  _bjp2Writer->Init();
87 
88  return kStOk;
89  }
90 
91  Int_t Make()
92  {
93  _minbWriter->Make();
94  _bht1Writer->Make();
95  _bht2Writer->Make();
96  _bjp1Writer->Make();
97  _bjp2Writer->Make();
98 
99  return kStOk;
100  }
101 
102  Int_t Finish()
103  {
104  _minbWriter->Finish();
105  _bht1Writer->Finish();
106  _bht2Writer->Finish();
107  _bjp1Writer->Finish();
108  _bjp2Writer->Finish();
109 
110  return kStOk;
111  }
112 
113  ClassDef(StjTrigger2005DataMaker2, 0)
114 
115 };
Definition: StjTrg.h:11
StMaker(const char *name="", const char *dummy=0)
Constructor & Destructor.
Definition: StMaker.cxx:188
Definition: Stypes.h:41