BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
commonData.h
Go to the documentation of this file.
1#ifndef ROOTIO_COMMONDATA_H
2#define ROOTIO_COMMONDATA_H 1
3
4
5#include "GaudiKernel/MsgStream.h"
6#include "GaudiKernel/AlgFactory.h"
7#include "GaudiKernel/IDataProviderSvc.h"
8#include "GaudiKernel/SmartDataPtr.h"
9#include "GaudiKernel/Algorithm.h"
10
11#include "EventModel/Event.h"
13
14
15#include "RawEvent/DigiEvent.h"
16
17#include "TFile.h"
18#include "TTree.h"
19#include "TRef.h"
20
21//Digi
23#include "MdcRawEvent/MdcDigi.h"
24#include "EmcRawEvent/EmcDigi.h"
25#include "TofRawEvent/TofDigi.h"
26#include "MucRawEvent/MucDigi.h"
27#include "LumiDigi/LumiDigi.h"
28
29//Dst
35#include "DstEvent/DstMdcDedx.h"
37#include "DstEvent/DstMdcKalTrack.h" // Add On Oct.10 wensp
38
39// McTruth information
41#include "McTruth/MdcMcHit.h"
42#include "McTruth/EmcMcHit.h"
43#include "McTruth/TofMcHit.h"
44#include "McTruth/MucMcHit.h"
45#include "McTruth/McParticle.h"
46//#include "McTruth/DecayMode.h"
47
48//trigger information
50#include "TrigEvent/TrigData.h"
51
52//event filter information
54#include "HltEvent/HltRaw.h"
55#include "HltEvent/HltInf.h"
56#include "HltEvent/DstHltInf.h"
57
58//------------liangyt
74
76
88
90
91#include "Util.h"
92
93#include <map>
94
95using namespace Event;
96
97class EvtRecTrack;
98class EvtRecVeeVertex;
99class EvtRecPi0;
100class EvtRecEtaToGG;
101class EvtRecDTag;
102
104{
105public:
106
109
110 void clear();
111
113
115
116 /// Create a set of maps between Digi data in the TDS and the TRefs in the ROOT file
117 static std::map<const MdcDigi*, TRef> m_mdcDigiMap;
118
119 /// Create a set of maps between ROOT Digi objects and TDS Digi data
120 static std::map<const TObject*, const MdcDigi*> m_rootMdcDigiMap;
121
122
123 /// Provide access to the ROOT event pointers
125
126 static std::map<const EmcDigi* , TRef > m_emcDigiMap;
127 static std::map<const TObject*, const EmcDigi*> m_rootEmcDigiMap;
128
129 static std::map<const TofDigi*, TRef > m_tofDigiMap;
130 static std::map<const TObject*, const TofDigi*> m_rootTofDigiMap;
131
132 static std::map<const MucDigi*, TRef > m_mucDigiMap;
133 static std::map<const TObject*, const MucDigi*> m_rootMucDigiMap;
134
135 static std::map<const LumiDigi*, TRef > m_lumiDigiMap;
136 static std::map<const TObject*, const LumiDigi*> m_rootLumiDigiMap;
137
138 /// Provide access to the ROOT event pointers
140
141 static std::map<const DstEmcShower*, TRef > m_emcShowerMap;
142 static std::map<const TObject*, const DstEmcShower*> m_rootEmcShowerMap;
143
144 static std::map<const DstMdcTrack*, TRef > m_mdcTrackMap;
145 static std::map<const TObject*, const DstMdcTrack*> m_rootMdcTrackMap;
146
147 static std::map<const DstMucTrack*, TRef > m_mucTrackMap;
148 static std::map<const TObject*, const DstMucTrack*> m_rootMucTrackMap;
149
150 static std::map<const DstTofTrack*, TRef > m_tofTrackMap;
151 static std::map<const TObject*, const DstTofTrack*> m_rootTofTrackMap;
152
153 static std::map<const DstMdcDedx*, TRef > m_mdcDedxMap;
154 static std::map<const TObject*, const DstMdcDedx*> m_rootMdcDedxMap;
155
156 static std::map<const DstExtTrack*, TRef > m_extTrackMap;
157 static std::map<const TObject*, const DstExtTrack*> m_rootExtTrackMap;
158
159 static std::map<const DstMdcKalTrack*, TRef > m_mdcKalTrackMap;
160 static std::map<const TObject*, const DstMdcKalTrack*> m_rootMdcKalTrackMap;
161
162 /// Provide access to the ROOT event pointers
164
165 static std::map<const EmcMcHit*, TRef > m_emcMcHitMap;
166 static std::map<const TObject*, const EmcMcHit*> m_rootEmcMcHitMap;
167
168 static std::map<const MdcMcHit*, TRef > m_mdcMcHitMap;
169 static std::map<const TObject*, const MdcMcHit*> m_rootMdcMcHitMap;
170
171 static std::map<const TofMcHit*, TRef > m_tofMcHitMap;
172 static std::map<const TObject*, const TofMcHit*> m_rootTofMcHitMap;
173
174 static std::map<const MucMcHit*, TRef > m_mucMcHitMap;
175 static std::map<const TObject*, const MucMcHit*> m_rootMucMcHitMap;
176
177 static std::map<const McParticle*, TRef > m_mcParticleMap;
178 static std::map<const TObject*, const McParticle*> m_rootMcParticleMap;
179
180 // static std::map<const DecayMode*, TRef > m_decayModeMap;
181 // static std::map<const TObject*, const DecayMode*> m_rootDecayModeMap;
182
183 /// Provide access to the ROOT event pointers
185
186 static std::map<const TrigData*, TRef > m_trigDataMap;
187 static std::map<const TObject*, const TrigData*> m_rootTrigDataMap;
188
189 /// Provide access to the ROOT event pointers
191 static std::map<const HltRaw*, TRef > m_hltRawMap;
192 static std::map<const TObject*, const HltRaw*> m_rootHltRawMap;
193 static std::map<const HltInf*, TRef > m_hltInfMap;
194 static std::map<const TObject*, const HltInf*> m_rootHltInfMap;
195 static std::map<const DstHltInf*, TRef > m_dstHltInfMap;
196 static std::map<const TObject*, const DstHltInf*> m_rootDstHltInfMap;
197
198 /// Provide access to the ROOT event pointers
200
201 static std::map<const RecMdcTrack*, TRef > m_recMdcTrackMap;
202 static std::map<const TObject*, const RecMdcTrack*> m_rootRecMdcTrackMap;
203
204 static std::map<const RecMdcHit*, TRef > m_recMdcHitMap;
205 static std::map<const TObject*, const RecMdcHit*> m_rootRecMdcHitMap;
206
207
208 //static std::map<const DstMdcTrack*, TRef > m_RecmdcTrackMap;
209 //static std::map<const TObject*, const DstMdcTrack*> m_rootRecMdcTrackMap;
210
211 static std::map<const RecTofTrack*, TRef > m_RecTofTrackMap;
212 static std::map<const TObject*, const RecTofTrack*> m_rootRecTofTrackMap;
213
214 static std::map<const RecEmcHit*, TRef > m_recEmcHitMap;
215 static std::map<const TObject*, const RecEmcHit*> m_rootRecEmcHitMap;
216
217 static std::map<const RecEmcCluster*, TRef > m_recEmcClusterMap;
218 static std::map<const TObject*, const RecEmcCluster*> m_rootRecEmcClusterMap;
219
220 static std::map<const RecEmcShower*, TRef > m_recEmcShowerMap;
221 static std::map<const TObject*, const RecEmcShower*> m_rootRecEmcShowerMap;
222
223 static std::map<const RecMucTrack*, TRef > m_RecMucTrackMap;
224 static std::map<const TObject*, const RecMucTrack*> m_rootRecMucTrackMap;
225
226 static std::map<const RecMdcDedx*, TRef > m_recMdcDedxMap;
227 static std::map<const TObject*, const RecMdcDedx*> m_rootRecMdcDedxMap;
228
229 static std::map<const RecMdcDedxHit*, TRef > m_recMdcDedxHitMap;
230 static std::map<const TObject*, const RecMdcDedxHit*> m_rootRecMdcDedxHitMap;
231 /* static std::map<const DstTofTrack*, TRef > m_RectofTrackMap; */
232 /* static std::map<const TObject*, const DstTofTrack*> m_rootRecTofTrackMap; */
233
234 /* static std::map<const DstDedx*, TRef > m_RecdedxMap; */
235 /* static std::map<const TObject*, const DstDedx*> m_rootRecDedxMap; */
236
237 /* static std::map<const DstExtTrack*, TRef > m_RecextTrackMap; */
238 /* static std::map<const TObject*, const DstExtTrack*> m_rootRecExtTrackMap; */
239
240 static std::map<const RecMdcKalTrack*, TRef > m_recMdcKalTrackMap;
241 static std::map<const TObject*, const RecMdcKalTrack*> m_rootRecMdcKalTrackMap;
242
243 static std::map<const RecMdcKalHelixSeg*, TRef > m_recMdcKalHelixSegMap;
244 static std::map<const TObject*, const RecMdcKalHelixSeg*> m_rootRecMdcKalHelixSegMap;
245
246 static std::map<const RecEsTime*, TRef > m_RecEvTimeMap;
247 static std::map<const TObject*, const RecEsTime*> m_rootRecEvTimeMap;
248
249 static std::map<const EvtRecVeeVertex*, TRef > m_evtRecVeeVertexMap;
250 static std::map<const TObject*, const EvtRecVeeVertex*> m_rootEvtRecVeeVertexMap;
251
252 static std::map<const EvtRecPi0*, TRef > m_evtRecPi0Map;
253 static std::map<const TObject*, const EvtRecPi0*> m_rootEvtRecPi0Map;
254
255 static std::map<const EvtRecEtaToGG*, TRef > m_evtRecEtaToGGMap;
256 static std::map<const TObject*, const EvtRecEtaToGG*> m_rootEvtRecEtaToGGMap;
257
258 static std::map<const EvtRecDTag*, TRef > m_evtRecDTagMap;
259 static std::map<const TObject*, const EvtRecDTag*> m_rootEvtRecDTagMap;
260
261
263
264 static std::map<const EvtRecTrack*, TRef> m_EvtRecTrackMap;
265 static std::map<const TObject*, const EvtRecTrack*> m_rootEvtRecTrackMap;
266
267};
268
269
270#endif
static std::map< const TObject *, const EvtRecTrack * > m_rootEvtRecTrackMap
Definition: commonData.h:265
static std::map< const EmcMcHit *, TRef > m_emcMcHitMap
Definition: commonData.h:165
static std::map< const TObject *, const RecMdcKalHelixSeg * > m_rootRecMdcKalHelixSegMap
Definition: commonData.h:244
static std::map< const TObject *, const RecEmcCluster * > m_rootRecEmcClusterMap
Definition: commonData.h:218
static std::map< const EvtRecPi0 *, TRef > m_evtRecPi0Map
Definition: commonData.h:252
static std::map< const DstMdcTrack *, TRef > m_mdcTrackMap
Definition: commonData.h:144
static std::map< const TObject *, const RecMdcDedxHit * > m_rootRecMdcDedxHitMap
Definition: commonData.h:230
static std::map< const RecEmcShower *, TRef > m_recEmcShowerMap
Definition: commonData.h:220
static TEvtRecObject * m_evtRecObject
Definition: commonData.h:262
static TEvtHeader * m_EvtHeader
Definition: commonData.h:112
static std::map< const EmcDigi *, TRef > m_emcDigiMap
Definition: commonData.h:126
static std::map< const TObject *, const DstMdcKalTrack * > m_rootMdcKalTrackMap
Definition: commonData.h:160
static std::map< const EvtRecEtaToGG *, TRef > m_evtRecEtaToGGMap
Definition: commonData.h:255
static TDigiEvent * m_recEvt
Provide access to the ROOT event pointers.
Definition: commonData.h:124
static std::map< const TObject *, const RecMdcDedx * > m_rootRecMdcDedxMap
Definition: commonData.h:227
static std::map< const TObject *, const DstMdcDedx * > m_rootMdcDedxMap
Definition: commonData.h:154
static std::map< const TObject *, const MdcMcHit * > m_rootMdcMcHitMap
Definition: commonData.h:169
static std::map< const MdcDigi *, TRef > m_mdcDigiMap
Create a set of maps between Digi data in the TDS and the TRefs in the ROOT file.
Definition: commonData.h:117
static std::map< const DstMucTrack *, TRef > m_mucTrackMap
Definition: commonData.h:147
static std::map< const TrigData *, TRef > m_trigDataMap
Definition: commonData.h:186
static std::map< const DstMdcDedx *, TRef > m_mdcDedxMap
Definition: commonData.h:153
static std::map< const TObject *, const HltInf * > m_rootHltInfMap
Definition: commonData.h:194
static std::map< const RecEmcHit *, TRef > m_recEmcHitMap
Definition: commonData.h:214
static std::map< const MucMcHit *, TRef > m_mucMcHitMap
Definition: commonData.h:174
static std::map< const TObject *, const McParticle * > m_rootMcParticleMap
Definition: commonData.h:178
static std::map< const RecEsTime *, TRef > m_RecEvTimeMap
Definition: commonData.h:246
static TTrigEvent * m_trigEvt
Provide access to the ROOT event pointers.
Definition: commonData.h:184
static std::map< const EvtRecVeeVertex *, TRef > m_evtRecVeeVertexMap
Definition: commonData.h:249
static std::map< const TObject *, const EvtRecEtaToGG * > m_rootEvtRecEtaToGGMap
Definition: commonData.h:256
static std::map< const TObject *, const DstMdcTrack * > m_rootMdcTrackMap
Definition: commonData.h:145
static THltEvent * m_hltEvt
Provide access to the ROOT event pointers.
Definition: commonData.h:190
static std::map< const TObject *, const RecEmcHit * > m_rootRecEmcHitMap
Definition: commonData.h:215
static std::map< const TofMcHit *, TRef > m_tofMcHitMap
Definition: commonData.h:171
static std::map< const TObject *, const RecEmcShower * > m_rootRecEmcShowerMap
Definition: commonData.h:221
static std::map< const MucDigi *, TRef > m_mucDigiMap
Definition: commonData.h:132
static std::map< const TObject *, const RecMucTrack * > m_rootRecMucTrackMap
Definition: commonData.h:224
static std::map< const TObject *, const LumiDigi * > m_rootLumiDigiMap
Definition: commonData.h:136
static std::map< const MdcMcHit *, TRef > m_mdcMcHitMap
Definition: commonData.h:168
static TMcEvent * m_mcEvt
Provide access to the ROOT event pointers.
Definition: commonData.h:163
static std::map< const TObject *, const EvtRecPi0 * > m_rootEvtRecPi0Map
Definition: commonData.h:253
static std::map< const TObject *, const RecTofTrack * > m_rootRecTofTrackMap
Definition: commonData.h:212
static std::map< const TObject *, const RecEsTime * > m_rootRecEvTimeMap
Definition: commonData.h:247
static std::map< const TObject *, const HltRaw * > m_rootHltRawMap
Definition: commonData.h:192
static std::map< const TObject *, const RecMdcHit * > m_rootRecMdcHitMap
Definition: commonData.h:205
static TEvtNavigator * m_EvtNavigator
Definition: commonData.h:114
static std::map< const TObject *, const RecMdcTrack * > m_rootRecMdcTrackMap
Definition: commonData.h:202
static std::map< const HltInf *, TRef > m_hltInfMap
Definition: commonData.h:193
static std::map< const TObject *, const TrigData * > m_rootTrigDataMap
Definition: commonData.h:187
static std::map< const TObject *, const DstExtTrack * > m_rootExtTrackMap
Definition: commonData.h:157
static std::map< const TObject *, const DstHltInf * > m_rootDstHltInfMap
Definition: commonData.h:196
static std::map< const LumiDigi *, TRef > m_lumiDigiMap
Definition: commonData.h:135
static std::map< const TObject *, const EvtRecVeeVertex * > m_rootEvtRecVeeVertexMap
Definition: commonData.h:250
static std::map< const TObject *, const MucDigi * > m_rootMucDigiMap
Definition: commonData.h:133
static TRecTrackEvent * m_rectrackEvt
Provide access to the ROOT event pointers.
Definition: commonData.h:199
static std::map< const DstEmcShower *, TRef > m_emcShowerMap
Definition: commonData.h:141
static std::map< const TObject *, const MdcDigi * > m_rootMdcDigiMap
Create a set of maps between ROOT Digi objects and TDS Digi data.
Definition: commonData.h:120
static std::map< const RecMdcHit *, TRef > m_recMdcHitMap
Definition: commonData.h:204
static std::map< const RecEmcCluster *, TRef > m_recEmcClusterMap
Definition: commonData.h:217
static std::map< const TObject *, const TofDigi * > m_rootTofDigiMap
Definition: commonData.h:130
static std::map< const HltRaw *, TRef > m_hltRawMap
Definition: commonData.h:191
static std::map< const EvtRecTrack *, TRef > m_EvtRecTrackMap
Definition: commonData.h:264
static std::map< const DstMdcKalTrack *, TRef > m_mdcKalTrackMap
Definition: commonData.h:159
static std::map< const TObject *, const EmcMcHit * > m_rootEmcMcHitMap
Definition: commonData.h:166
static std::map< const RecTofTrack *, TRef > m_RecTofTrackMap
Definition: commonData.h:211
static std::map< const McParticle *, TRef > m_mcParticleMap
Definition: commonData.h:177
static std::map< const TObject *, const DstMucTrack * > m_rootMucTrackMap
Definition: commonData.h:148
static std::map< const TObject *, const DstEmcShower * > m_rootEmcShowerMap
Definition: commonData.h:142
static TDstEvent * m_dstEvt
Provide access to the ROOT event pointers.
Definition: commonData.h:139
static std::map< const DstTofTrack *, TRef > m_tofTrackMap
Definition: commonData.h:150
static std::map< const TofDigi *, TRef > m_tofDigiMap
Definition: commonData.h:129
static std::map< const TObject *, const TofMcHit * > m_rootTofMcHitMap
Definition: commonData.h:172
static std::map< const RecMdcDedx *, TRef > m_recMdcDedxMap
Definition: commonData.h:226
static std::map< const DstHltInf *, TRef > m_dstHltInfMap
Definition: commonData.h:195
static std::map< const TObject *, const RecMdcKalTrack * > m_rootRecMdcKalTrackMap
Definition: commonData.h:241
static std::map< const RecMucTrack *, TRef > m_RecMucTrackMap
Definition: commonData.h:223
static std::map< const DstExtTrack *, TRef > m_extTrackMap
Definition: commonData.h:156
static std::map< const TObject *, const DstTofTrack * > m_rootTofTrackMap
Definition: commonData.h:151
static std::map< const RecMdcKalTrack *, TRef > m_recMdcKalTrackMap
Definition: commonData.h:240
static std::map< const RecMdcKalHelixSeg *, TRef > m_recMdcKalHelixSegMap
Definition: commonData.h:243
static std::map< const RecMdcTrack *, TRef > m_recMdcTrackMap
Definition: commonData.h:201
static std::map< const EvtRecDTag *, TRef > m_evtRecDTagMap
Definition: commonData.h:258
void clear()
Definition: commonData.cxx:147
static std::map< const TObject *, const EvtRecDTag * > m_rootEvtRecDTagMap
Definition: commonData.h:259
static std::map< const RecMdcDedxHit *, TRef > m_recMdcDedxHitMap
Definition: commonData.h:229
static std::map< const TObject *, const EmcDigi * > m_rootEmcDigiMap
Definition: commonData.h:127
static std::map< const TObject *, const MucMcHit * > m_rootMucMcHitMap
Definition: commonData.h:175
Definition: Event.h:21