BOSS 7.1.1
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;
102class RecZddChannel;
103
105{
106public:
107
110
111 void clear();
112
114
116
117 /// Create a set of maps between Digi data in the TDS and the TRefs in the ROOT file
118 static std::map<const MdcDigi*, TRef> m_mdcDigiMap;
119
120 /// Create a set of maps between ROOT Digi objects and TDS Digi data
121 static std::map<const TObject*, const MdcDigi*> m_rootMdcDigiMap;
122
123
124 /// Provide access to the ROOT event pointers
126
127 static std::map<const EmcDigi* , TRef > m_emcDigiMap;
128 static std::map<const TObject*, const EmcDigi*> m_rootEmcDigiMap;
129
130 static std::map<const TofDigi*, TRef > m_tofDigiMap;
131 static std::map<const TObject*, const TofDigi*> m_rootTofDigiMap;
132
133 static std::map<const MucDigi*, TRef > m_mucDigiMap;
134 static std::map<const TObject*, const MucDigi*> m_rootMucDigiMap;
135
136 static std::map<const LumiDigi*, TRef > m_lumiDigiMap;
137 static std::map<const TObject*, const LumiDigi*> m_rootLumiDigiMap;
138
139 /// Provide access to the ROOT event pointers
141
142 static std::map<const DstEmcShower*, TRef > m_emcShowerMap;
143 static std::map<const TObject*, const DstEmcShower*> m_rootEmcShowerMap;
144
145 static std::map<const DstMdcTrack*, TRef > m_mdcTrackMap;
146 static std::map<const TObject*, const DstMdcTrack*> m_rootMdcTrackMap;
147
148 static std::map<const DstMucTrack*, TRef > m_mucTrackMap;
149 static std::map<const TObject*, const DstMucTrack*> m_rootMucTrackMap;
150
151 static std::map<const DstTofTrack*, TRef > m_tofTrackMap;
152 static std::map<const TObject*, const DstTofTrack*> m_rootTofTrackMap;
153
154 static std::map<const DstMdcDedx*, TRef > m_mdcDedxMap;
155 static std::map<const TObject*, const DstMdcDedx*> m_rootMdcDedxMap;
156
157 static std::map<const DstExtTrack*, TRef > m_extTrackMap;
158 static std::map<const TObject*, const DstExtTrack*> m_rootExtTrackMap;
159
160 static std::map<const DstMdcKalTrack*, TRef > m_mdcKalTrackMap;
161 static std::map<const TObject*, const DstMdcKalTrack*> m_rootMdcKalTrackMap;
162
163 /// Provide access to the ROOT event pointers
165
166 static std::map<const EmcMcHit*, TRef > m_emcMcHitMap;
167 static std::map<const TObject*, const EmcMcHit*> m_rootEmcMcHitMap;
168
169 static std::map<const MdcMcHit*, TRef > m_mdcMcHitMap;
170 static std::map<const TObject*, const MdcMcHit*> m_rootMdcMcHitMap;
171
172 static std::map<const TofMcHit*, TRef > m_tofMcHitMap;
173 static std::map<const TObject*, const TofMcHit*> m_rootTofMcHitMap;
174
175 static std::map<const MucMcHit*, TRef > m_mucMcHitMap;
176 static std::map<const TObject*, const MucMcHit*> m_rootMucMcHitMap;
177
178 static std::map<const McParticle*, TRef > m_mcParticleMap;
179 static std::map<const TObject*, const McParticle*> m_rootMcParticleMap;
180
181 // static std::map<const DecayMode*, TRef > m_decayModeMap;
182 // static std::map<const TObject*, const DecayMode*> m_rootDecayModeMap;
183
184 /// Provide access to the ROOT event pointers
186
187 static std::map<const TrigData*, TRef > m_trigDataMap;
188 static std::map<const TObject*, const TrigData*> m_rootTrigDataMap;
189
190 /// Provide access to the ROOT event pointers
192 static std::map<const HltRaw*, TRef > m_hltRawMap;
193 static std::map<const TObject*, const HltRaw*> m_rootHltRawMap;
194 static std::map<const HltInf*, TRef > m_hltInfMap;
195 static std::map<const TObject*, const HltInf*> m_rootHltInfMap;
196 static std::map<const DstHltInf*, TRef > m_dstHltInfMap;
197 static std::map<const TObject*, const DstHltInf*> m_rootDstHltInfMap;
198
199 /// Provide access to the ROOT event pointers
201
202 static std::map<const RecMdcTrack*, TRef > m_recMdcTrackMap;
203 static std::map<const TObject*, const RecMdcTrack*> m_rootRecMdcTrackMap;
204
205 static std::map<const RecMdcHit*, TRef > m_recMdcHitMap;
206 static std::map<const TObject*, const RecMdcHit*> m_rootRecMdcHitMap;
207
208
209 //static std::map<const DstMdcTrack*, TRef > m_RecmdcTrackMap;
210 //static std::map<const TObject*, const DstMdcTrack*> m_rootRecMdcTrackMap;
211
212 static std::map<const RecTofTrack*, TRef > m_RecTofTrackMap;
213 static std::map<const TObject*, const RecTofTrack*> m_rootRecTofTrackMap;
214
215 static std::map<const RecEmcHit*, TRef > m_recEmcHitMap;
216 static std::map<const TObject*, const RecEmcHit*> m_rootRecEmcHitMap;
217
218 static std::map<const RecEmcCluster*, TRef > m_recEmcClusterMap;
219 static std::map<const TObject*, const RecEmcCluster*> m_rootRecEmcClusterMap;
220
221 static std::map<const RecEmcShower*, TRef > m_recEmcShowerMap;
222 static std::map<const TObject*, const RecEmcShower*> m_rootRecEmcShowerMap;
223
224 static std::map<const RecMucTrack*, TRef > m_RecMucTrackMap;
225 static std::map<const TObject*, const RecMucTrack*> m_rootRecMucTrackMap;
226
227 static std::map<const RecMdcDedx*, TRef > m_recMdcDedxMap;
228 static std::map<const TObject*, const RecMdcDedx*> m_rootRecMdcDedxMap;
229
230 static std::map<const RecMdcDedxHit*, TRef > m_recMdcDedxHitMap;
231 static std::map<const TObject*, const RecMdcDedxHit*> m_rootRecMdcDedxHitMap;
232 /* static std::map<const DstTofTrack*, TRef > m_RectofTrackMap; */
233 /* static std::map<const TObject*, const DstTofTrack*> m_rootRecTofTrackMap; */
234
235 /* static std::map<const DstDedx*, TRef > m_RecdedxMap; */
236 /* static std::map<const TObject*, const DstDedx*> m_rootRecDedxMap; */
237
238 /* static std::map<const DstExtTrack*, TRef > m_RecextTrackMap; */
239 /* static std::map<const TObject*, const DstExtTrack*> m_rootRecExtTrackMap; */
240
241 static std::map<const RecMdcKalTrack*, TRef > m_recMdcKalTrackMap;
242 static std::map<const TObject*, const RecMdcKalTrack*> m_rootRecMdcKalTrackMap;
243
244 static std::map<const RecMdcKalHelixSeg*, TRef > m_recMdcKalHelixSegMap;
245 static std::map<const TObject*, const RecMdcKalHelixSeg*> m_rootRecMdcKalHelixSegMap;
246
247 static std::map<const RecEsTime*, TRef > m_RecEvTimeMap;
248 static std::map<const TObject*, const RecEsTime*> m_rootRecEvTimeMap;
249
250 static std::map<const RecZddChannel*, TRef > m_recZddChannelMap;
251 static std::map<const TObject*, const RecZddChannel*> m_rootRecZddChannelMap;
252
253 static std::map<const EvtRecVeeVertex*, TRef > m_evtRecVeeVertexMap;
254 static std::map<const TObject*, const EvtRecVeeVertex*> m_rootEvtRecVeeVertexMap;
255
256 static std::map<const EvtRecPi0*, TRef > m_evtRecPi0Map;
257 static std::map<const TObject*, const EvtRecPi0*> m_rootEvtRecPi0Map;
258
259 static std::map<const EvtRecEtaToGG*, TRef > m_evtRecEtaToGGMap;
260 static std::map<const TObject*, const EvtRecEtaToGG*> m_rootEvtRecEtaToGGMap;
261
262 static std::map<const EvtRecDTag*, TRef > m_evtRecDTagMap;
263 static std::map<const TObject*, const EvtRecDTag*> m_rootEvtRecDTagMap;
264
265
267
268 static std::map<const EvtRecTrack*, TRef> m_EvtRecTrackMap;
269 static std::map<const TObject*, const EvtRecTrack*> m_rootEvtRecTrackMap;
270
271};
272
273
274#endif
static std::map< const TObject *, const EvtRecTrack * > m_rootEvtRecTrackMap
Definition commonData.h:269
static std::map< const EmcMcHit *, TRef > m_emcMcHitMap
Definition commonData.h:166
static std::map< const TObject *, const RecMdcKalHelixSeg * > m_rootRecMdcKalHelixSegMap
Definition commonData.h:245
static std::map< const TObject *, const RecEmcCluster * > m_rootRecEmcClusterMap
Definition commonData.h:219
static std::map< const EvtRecPi0 *, TRef > m_evtRecPi0Map
Definition commonData.h:256
static std::map< const DstMdcTrack *, TRef > m_mdcTrackMap
Definition commonData.h:145
static std::map< const TObject *, const RecMdcDedxHit * > m_rootRecMdcDedxHitMap
Definition commonData.h:231
static std::map< const RecEmcShower *, TRef > m_recEmcShowerMap
Definition commonData.h:221
static std::map< const RecZddChannel *, TRef > m_recZddChannelMap
Definition commonData.h:250
static TEvtRecObject * m_evtRecObject
Definition commonData.h:266
static TEvtHeader * m_EvtHeader
Definition commonData.h:113
static std::map< const EmcDigi *, TRef > m_emcDigiMap
Definition commonData.h:127
static std::map< const TObject *, const DstMdcKalTrack * > m_rootMdcKalTrackMap
Definition commonData.h:161
static std::map< const EvtRecEtaToGG *, TRef > m_evtRecEtaToGGMap
Definition commonData.h:259
static TDigiEvent * m_recEvt
Provide access to the ROOT event pointers.
Definition commonData.h:125
static std::map< const TObject *, const RecMdcDedx * > m_rootRecMdcDedxMap
Definition commonData.h:228
static std::map< const TObject *, const DstMdcDedx * > m_rootMdcDedxMap
Definition commonData.h:155
static std::map< const TObject *, const MdcMcHit * > m_rootMdcMcHitMap
Definition commonData.h:170
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:118
static std::map< const DstMucTrack *, TRef > m_mucTrackMap
Definition commonData.h:148
static std::map< const TrigData *, TRef > m_trigDataMap
Definition commonData.h:187
static std::map< const DstMdcDedx *, TRef > m_mdcDedxMap
Definition commonData.h:154
static std::map< const TObject *, const HltInf * > m_rootHltInfMap
Definition commonData.h:195
static std::map< const RecEmcHit *, TRef > m_recEmcHitMap
Definition commonData.h:215
static std::map< const MucMcHit *, TRef > m_mucMcHitMap
Definition commonData.h:175
static std::map< const TObject *, const McParticle * > m_rootMcParticleMap
Definition commonData.h:179
static std::map< const RecEsTime *, TRef > m_RecEvTimeMap
Definition commonData.h:247
static TTrigEvent * m_trigEvt
Provide access to the ROOT event pointers.
Definition commonData.h:185
static std::map< const EvtRecVeeVertex *, TRef > m_evtRecVeeVertexMap
Definition commonData.h:253
static std::map< const TObject *, const EvtRecEtaToGG * > m_rootEvtRecEtaToGGMap
Definition commonData.h:260
static std::map< const TObject *, const DstMdcTrack * > m_rootMdcTrackMap
Definition commonData.h:146
static THltEvent * m_hltEvt
Provide access to the ROOT event pointers.
Definition commonData.h:191
static std::map< const TObject *, const RecEmcHit * > m_rootRecEmcHitMap
Definition commonData.h:216
static std::map< const TofMcHit *, TRef > m_tofMcHitMap
Definition commonData.h:172
static std::map< const TObject *, const RecEmcShower * > m_rootRecEmcShowerMap
Definition commonData.h:222
static std::map< const MucDigi *, TRef > m_mucDigiMap
Definition commonData.h:133
static std::map< const TObject *, const RecMucTrack * > m_rootRecMucTrackMap
Definition commonData.h:225
static std::map< const TObject *, const LumiDigi * > m_rootLumiDigiMap
Definition commonData.h:137
static std::map< const MdcMcHit *, TRef > m_mdcMcHitMap
Definition commonData.h:169
static TMcEvent * m_mcEvt
Provide access to the ROOT event pointers.
Definition commonData.h:164
static std::map< const TObject *, const EvtRecPi0 * > m_rootEvtRecPi0Map
Definition commonData.h:257
static std::map< const TObject *, const RecTofTrack * > m_rootRecTofTrackMap
Definition commonData.h:213
static std::map< const TObject *, const RecEsTime * > m_rootRecEvTimeMap
Definition commonData.h:248
static std::map< const TObject *, const HltRaw * > m_rootHltRawMap
Definition commonData.h:193
static std::map< const TObject *, const RecMdcHit * > m_rootRecMdcHitMap
Definition commonData.h:206
static TEvtNavigator * m_EvtNavigator
Definition commonData.h:115
static std::map< const TObject *, const RecMdcTrack * > m_rootRecMdcTrackMap
Definition commonData.h:203
static std::map< const HltInf *, TRef > m_hltInfMap
Definition commonData.h:194
static std::map< const TObject *, const TrigData * > m_rootTrigDataMap
Definition commonData.h:188
static std::map< const TObject *, const DstExtTrack * > m_rootExtTrackMap
Definition commonData.h:158
static std::map< const TObject *, const DstHltInf * > m_rootDstHltInfMap
Definition commonData.h:197
static std::map< const LumiDigi *, TRef > m_lumiDigiMap
Definition commonData.h:136
static std::map< const TObject *, const EvtRecVeeVertex * > m_rootEvtRecVeeVertexMap
Definition commonData.h:254
static std::map< const TObject *, const MucDigi * > m_rootMucDigiMap
Definition commonData.h:134
static TRecTrackEvent * m_rectrackEvt
Provide access to the ROOT event pointers.
Definition commonData.h:200
static std::map< const DstEmcShower *, TRef > m_emcShowerMap
Definition commonData.h:142
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:121
static std::map< const RecMdcHit *, TRef > m_recMdcHitMap
Definition commonData.h:205
static std::map< const RecEmcCluster *, TRef > m_recEmcClusterMap
Definition commonData.h:218
static std::map< const TObject *, const TofDigi * > m_rootTofDigiMap
Definition commonData.h:131
static std::map< const HltRaw *, TRef > m_hltRawMap
Definition commonData.h:192
static std::map< const EvtRecTrack *, TRef > m_EvtRecTrackMap
Definition commonData.h:268
static std::map< const DstMdcKalTrack *, TRef > m_mdcKalTrackMap
Definition commonData.h:160
static std::map< const TObject *, const EmcMcHit * > m_rootEmcMcHitMap
Definition commonData.h:167
static std::map< const RecTofTrack *, TRef > m_RecTofTrackMap
Definition commonData.h:212
static std::map< const McParticle *, TRef > m_mcParticleMap
Definition commonData.h:178
static std::map< const TObject *, const DstMucTrack * > m_rootMucTrackMap
Definition commonData.h:149
static std::map< const TObject *, const DstEmcShower * > m_rootEmcShowerMap
Definition commonData.h:143
static TDstEvent * m_dstEvt
Provide access to the ROOT event pointers.
Definition commonData.h:140
static std::map< const DstTofTrack *, TRef > m_tofTrackMap
Definition commonData.h:151
static std::map< const TofDigi *, TRef > m_tofDigiMap
Definition commonData.h:130
static std::map< const TObject *, const TofMcHit * > m_rootTofMcHitMap
Definition commonData.h:173
static std::map< const RecMdcDedx *, TRef > m_recMdcDedxMap
Definition commonData.h:227
static std::map< const DstHltInf *, TRef > m_dstHltInfMap
Definition commonData.h:196
static std::map< const TObject *, const RecMdcKalTrack * > m_rootRecMdcKalTrackMap
Definition commonData.h:242
static std::map< const RecMucTrack *, TRef > m_RecMucTrackMap
Definition commonData.h:224
static std::map< const DstExtTrack *, TRef > m_extTrackMap
Definition commonData.h:157
static std::map< const TObject *, const DstTofTrack * > m_rootTofTrackMap
Definition commonData.h:152
static std::map< const RecMdcKalTrack *, TRef > m_recMdcKalTrackMap
Definition commonData.h:241
static std::map< const TObject *, const RecZddChannel * > m_rootRecZddChannelMap
Definition commonData.h:251
static std::map< const RecMdcKalHelixSeg *, TRef > m_recMdcKalHelixSegMap
Definition commonData.h:244
static std::map< const RecMdcTrack *, TRef > m_recMdcTrackMap
Definition commonData.h:202
static std::map< const EvtRecDTag *, TRef > m_evtRecDTagMap
Definition commonData.h:262
static std::map< const TObject *, const EvtRecDTag * > m_rootEvtRecDTagMap
Definition commonData.h:263
static std::map< const RecMdcDedxHit *, TRef > m_recMdcDedxHitMap
Definition commonData.h:230
static std::map< const TObject *, const EmcDigi * > m_rootEmcDigiMap
Definition commonData.h:128
static std::map< const TObject *, const MucMcHit * > m_rootMucMcHitMap
Definition commonData.h:176
Definition Event.h:21