StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_trg_Maker.h
1 
2 #ifndef STAR_St_trg_Maker
3 #define STAR_St_trg_Maker
4 
6 
16 
18 #ifndef StMaker_H
19 #include "StMaker.h"
20 #endif
21 class St_ctu_raw;
22 #if 0
23 class St_mwc_raw;
24 #endif
25 class St_dst_L0_Trigger;
26 class St_dst_L1_Trigger;
27 class St_dst_L2_Trigger;
28 class St_dst_TrgDet;
29 class StDAQReader;
30 class StTRGReader;
31 struct TrgDataType2003;
32 
33 class St_trg_Maker : public StMaker {
34  private:
35  Bool_t drawinit;
36  StDAQReader *fVictorPrelim;
37  StTRGReader *fVictor;
38  struct TrgDataType2003 *mS2003;
39  unsigned short mActionWord;
40 
41  void dumpDataToScreenAndExit ();
42  void dumpDataToScreenAndExit2000();
43  void dumpDataToScreenAndExit2003();
44 #if 0
45  void InitMwcArrays();
46 #endif
47  void InitCtbArrays();
48  int YearOfData(St_DataSet *herb);
49  void InitCtbArrays2001(); // For data taken 2001 and (?) after.
50  Int_t SanityCheck ();
51  Int_t SanityCheck2000();
52  Int_t SanityCheck2003();
53  int auxctbmap[16],ctbmap[120][2]; // Hardcoded from ctb_dsm.map.
54 #if 0
55  int auxmwcmap[32],mwcmap[24][4]; // Hardcoded from mwc_dsm.map.
56 #endif
57  protected:
58 
59  public:
60  int getTrayCtb ( float phi, float z ) ;
61  int HandleCtu(St_ctu_raw *ctu_raw,St_dst_TrgDet *dst1);
62 #if 0
63  int HandleMwc(St_mwc_raw *mwc_raw,St_dst_TrgDet *dst1);
64 #endif
65  void Vladimir2Herbert(int,int*,int*);
66  void Emc (St_dst_TrgDet *dst1);
67  void Emc2000(St_dst_TrgDet *dst1);
68  void Emc2003(St_dst_TrgDet *dst1);
69 
70  void CtbMwcDaq (St_dst_TrgDet *dst1);
71  void CtbMwcDaq2000(St_dst_TrgDet *dst1);
72  void CtbMwcDaq2003(St_dst_TrgDet *dst1);
73  void SecondDstSim(St_dst_L0_Trigger *dst2);
74  void TakeCareOfL1andL2Daq (St_dst_L1_Trigger*,St_dst_L2_Trigger*);
75  void TakeCareOfL1andL2Daq2000(St_dst_L1_Trigger*,St_dst_L2_Trigger*);
76  void TakeCareOfL1andL2Daq2003(St_dst_L1_Trigger*,St_dst_L2_Trigger*);
77  void TakeCareOfL1andL2Sim(St_dst_L1_Trigger*,St_dst_L2_Trigger*);
78  void SecondDstDaq (St_dst_L0_Trigger *dst2);
79  void SecondDstDaq2000(St_dst_L0_Trigger *dst2);
80  void SecondDstDaq2003(St_dst_L0_Trigger *dst2);
81  void VpdSim(St_dst_TrgDet *dst);
82  void ZdcSim(St_dst_TrgDet *dst);
83  void VpdDaq (St_dst_TrgDet *dst);
84  void VpdDaq2000(St_dst_TrgDet *dst);
85  void VpdDaq2003(St_dst_TrgDet *dst);
86  void ZdcDaq (St_dst_TrgDet *dst);
87  void ZdcDaq2000(St_dst_TrgDet *dst);
88  void ZdcDaq2003(St_dst_TrgDet *dst);
89  void BbcDaq2003(St_dst_TrgDet *dst);
90 
91  int Daq (St_DataSet*,St_dst_TrgDet*,St_dst_L0_Trigger*,St_dst_L1_Trigger*,St_dst_L2_Trigger*);
92  int Daq2000(St_DataSet*,St_dst_TrgDet*,St_dst_L0_Trigger*,St_dst_L1_Trigger*,St_dst_L2_Trigger*);
93  int Daq2003(St_DataSet*,St_dst_TrgDet*,St_dst_L0_Trigger*,St_dst_L1_Trigger*,St_dst_L2_Trigger*);
94  int Sim (St_dst_TrgDet*,St_dst_L0_Trigger*,St_dst_L1_Trigger*,St_dst_L2_Trigger*);
95 
96  St_trg_Maker(const char *name="trg");
97  virtual ~St_trg_Maker();
98 
99  virtual Int_t Init();
100  virtual Int_t Make();
101 
102  virtual const char *GetCVS() const {
103  static const char cvs[]="Tag $Name: $ $Id: St_trg_Maker.h,v 1.24 2014/08/06 11:43:56 jeromel Exp $ built " __DATE__ " " __TIME__ ;
104  return cvs;
105  }
106 
107  ClassDef(St_trg_Maker,0) //StAF chain virtual base class for Makers
108 };
109 
110 #endif
111 
112 
113 // $Id: St_trg_Maker.h,v 1.24 2014/08/06 11:43:56 jeromel Exp $
114 // $Log: St_trg_Maker.h,v $
115 // Revision 1.24 2014/08/06 11:43:56 jeromel
116 // Suffix on literals need to be space (later gcc compiler makes it an error) - first wave of fixes
117 //
118 // Revision 1.23 2009/01/26 15:14:13 fisyak
119 // Comment out mwc
120 //
121 // Revision 1.22 2003/09/11 05:49:25 perev
122 // ansi corrs
123 //
124 // Revision 1.21 2003/09/10 19:47:52 perev
125 // ansi corrs
126 //
127 // Revision 1.20 2003/07/16 19:58:35 perev
128 // Cleanup of StTriggerData2003 at all
129 //
130 // Revision 1.19 2003/01/23 00:01:58 jeromel
131 // Bbc
132 //
133 // Revision 1.18 2003/01/21 01:31:57 jeromel
134 // Minor changes in messaging (small request from Janet) to bring some consistency.
135 // doxygenized the .h
136 //
137 // Revision 1.17 2003/01/16 13:32:32 ward
138 // Accomodation of the new trgStructures.h.
139 //
140 // Revision 1.14 2002/02/19 18:34:44 ward
141 // Changes from Jenn Klay: EMC unpacker rewritten, updated dsm-to-patch conversion to match offline software.
142 //
143 // Revision 1.13 2001/10/16 20:26:03 ward
144 // New code from Jennifer Klay for unpacking EMC data.
145 //
146 // Revision 1.12 2001/09/03 19:09:40 ward
147 // Runtime selection of 2000 or 2001 trigger data format.
148 //
149 // Revision 1.11 2001/07/25 19:10:53 ward
150 // New function InitCtbArrays2001 for ctb_dsm_2001.map.
151 //
152 // Revision 1.10 2001/04/26 22:37:56 perev
153 // HPcorrs
154 //
155 // Revision 1.9 2001/01/02 18:10:44 ward
156 // Pablo Yepes' modifications in support of CTU simulations.
157 //
158 // Revision 1.8 2000/06/25 23:51:03 fisyak
159 // Replace assert by return of kStErr
160 //
161 // Revision 1.7 2000/05/04 22:25:22 ward
162 // New 3d DST tables, and some support for sim.
163 //
164 // Revision 1.5 2000/02/04 18:57:18 ward
165 // Added dst_L1_Trigger and dst_L2_Trigger to output.
166 //
167 // Revision 1.4 2000/01/24 20:35:39 ward
168 // Access trigger data.
169 //
170 // Revision 1.3 1999/07/15 13:58:32 perev
171 // cleanup
172 //
173 // Revision 1.2 1999/03/14 00:25:40 perev
174 // New makers
175 //
176 // Revision 1.1 1999/02/06 01:51:24 yepes
177 // Add trg maker
178 //
179 // Revision 1.7 1998/10/31 00:25:45 fisyak
180 // Makers take care about branches
181 //
182 // Revision 1.6 1998/10/06 18:00:31 perev
183 // cleanup
184 //
185 // Revision 1.5 1998/08/26 12:15:13 fisyak
186 // Remove asu & dsl libraries
187 //
188 // Revision 1.4 1998/08/14 15:25:58 fisyak
189 // add options
190 //
191 // Revision 1.3 1998/08/10 02:32:07 fisyak
192 // Clean up
193 //
194 // Revision 1.2 1998/07/20 15:08:15 fisyak
195 // Add tcl and tpt
196 //
void CtbMwcDaq2003(St_dst_TrgDet *dst1)
This method copies Ctb and Mwc trigger data to the dst_TrgDet_st table.
Definition: year2003.cxx:36
void BbcDaq2003(St_dst_TrgDet *dst)
Following this layout of one routine per trigger to recover.
Definition: year2003.cxx:292
virtual Int_t Make()