BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootCnvSvc/RootCnvSvc-02-01-12/RootCnvSvc/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"
12#include "EventModel/EventModel.h"
13
14
15#include "RawEvent/DigiEvent.h"
16
17#include "TFile.h"
18#include "TTree.h"
19#include "TRef.h"
20
21//Digi
22#include "RootEventData/TDigiEvent.h"
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
30#include "RootEventData/TDstEvent.h"
31#include "DstEvent/DstMdcTrack.h"
32#include "DstEvent/DstEmcShower.h"
33#include "DstEvent/DstTofTrack.h"
34#include "DstEvent/DstMucTrack.h"
35#include "DstEvent/DstMdcDedx.h"
36#include "DstEvent/DstExtTrack.h"
37#include "DstEvent/DstMdcKalTrack.h" // Add On Oct.10 wensp
38
39// McTruth information
40#include "RootEventData/TMcEvent.h"
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
49#include "RootEventData/TTrigEvent.h"
50#include "TrigEvent/TrigData.h"
51
52//event filter information
53#include "RootEventData/THltEvent.h"
54#include "HltEvent/HltRaw.h"
55#include "HltEvent/HltInf.h"
56#include "HltEvent/DstHltInf.h"
57
58//------------liangyt
59#include "RootEventData/TRecTrackEvent.h"
60#include "RootEventData/TRecTofTrack.h"
61#include "RootEventData/TRecMdcTrack.h"
62#include "RootEventData/TRecMdcHit.h"
63#include "RootEventData/TRecEvTime.h"
64#include "RootEventData/TRecEmcHit.h"
65#include "RootEventData/TRecEmcCluster.h"
66#include "RootEventData/TRecEmcShower.h"
67#include "RootEventData/TRecMucTrack.h"
68#include "RootEventData/TRecMdcDedx.h"
69#include "RootEventData/TRecMdcDedxHit.h"
70#include "RootEventData/TEvtHeader.h"
71#include "RootEventData/TRecMdcKalTrack.h"
72#include "RootEventData/TRecMdcKalHelixSeg.h"
73#include "RootEventData/TEvtNavigator.h"
74
75#include "RootEventData/TEvtRecObject.h"
76
77#include "TofRecEvent/RecTofTrack.h"
78#include "MdcRecEvent/RecMdcTrack.h"
79#include "MdcRecEvent/RecMdcHit.h"
80#include "MdcRecEvent/RecMdcKalTrack.h"
81#include "MdcRecEvent/RecMdcKalHelixSeg.h"
82#include "MdcRecEvent/RecMdcDedx.h"
83#include "MdcRecEvent/RecMdcDedxHit.h"
84#include "EmcRecEventModel/RecEmcShower.h"
85#include "MucRecEvent/RecMucTrack.h"
86#include "MucRecEvent/RecMucTrack.h"
87#include "EvTimeEvent/RecEsTime.h"
88
89#include "EventNavigator/EventNavigator.h"
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 McParticle *, TRef > m_mcParticleMap
static std::map< const EvtRecEtaToGG *, TRef > m_evtRecEtaToGGMap
static std::map< const TObject *, const DstMdcKalTrack * > m_rootMdcKalTrackMap
static std::map< const EmcMcHit *, TRef > m_emcMcHitMap
static std::map< const DstMdcKalTrack *, TRef > m_mdcKalTrackMap
static std::map< const TObject *, const EvtRecVeeVertex * > m_rootEvtRecVeeVertexMap
static std::map< const TObject *, const LumiDigi * > m_rootLumiDigiMap
static std::map< const RecEmcHit *, TRef > m_recEmcHitMap
static std::map< const TObject *, const EmcMcHit * > m_rootEmcMcHitMap
static std::map< const DstEmcShower *, TRef > m_emcShowerMap
static std::map< const TObject *, const RecEsTime * > m_rootRecEvTimeMap
static std::map< const HltInf *, TRef > m_hltInfMap
static std::map< const TObject *, const HltInf * > m_rootHltInfMap
static std::map< const TObject *, const RecEmcCluster * > m_rootRecEmcClusterMap
static TMcEvent * m_mcEvt
Provide access to the ROOT event pointers.
static TDigiEvent * m_recEvt
Provide access to the ROOT event pointers.
static std::map< const TObject *, const MucDigi * > m_rootMucDigiMap
static std::map< const TObject *, const RecEmcHit * > m_rootRecEmcHitMap
static std::map< const TObject *, const RecMdcDedx * > m_rootRecMdcDedxMap
static std::map< const TObject *, const RecZddChannel * > m_rootRecZddChannelMap
static TTrigEvent * m_trigEvt
Provide access to the ROOT event pointers.
static std::map< const TObject *, const RecMucTrack * > m_rootRecMucTrackMap
static std::map< const RecMdcTrack *, TRef > m_recMdcTrackMap
static std::map< const RecMdcDedx *, TRef > m_recMdcDedxMap
static std::map< const TObject *, const MdcMcHit * > m_rootMdcMcHitMap
static std::map< const RecEmcShower *, TRef > m_recEmcShowerMap
static std::map< const TofMcHit *, TRef > m_tofMcHitMap
static std::map< const DstMdcDedx *, TRef > m_mdcDedxMap
static std::map< const RecMdcKalHelixSeg *, TRef > m_recMdcKalHelixSegMap
static std::map< const TObject *, const DstMucTrack * > m_rootMucTrackMap
static std::map< const TObject *, const TrigData * > m_rootTrigDataMap
static TDstEvent * m_dstEvt
Provide access to the ROOT event pointers.
static std::map< const TObject *, const DstTofTrack * > m_rootTofTrackMap
static TRecTrackEvent * m_rectrackEvt
Provide access to the ROOT event pointers.
static std::map< const TObject *, const RecEmcShower * > m_rootRecEmcShowerMap
static std::map< const MucMcHit *, TRef > m_mucMcHitMap
static std::map< const EvtRecVeeVertex *, TRef > m_evtRecVeeVertexMap
static std::map< const MdcMcHit *, TRef > m_mdcMcHitMap
static std::map< const TObject *, const RecMdcDedxHit * > m_rootRecMdcDedxHitMap
static std::map< const TrigData *, TRef > m_trigDataMap
static std::map< const TObject *, const EvtRecEtaToGG * > m_rootEvtRecEtaToGGMap
static std::map< const TObject *, const EvtRecTrack * > m_rootEvtRecTrackMap
static std::map< const TObject *, const MdcDigi * > m_rootMdcDigiMap
Create a set of maps between ROOT Digi objects and TDS Digi data.
static std::map< const TObject *, const RecMdcKalTrack * > m_rootRecMdcKalTrackMap
static std::map< const TObject *, const DstExtTrack * > m_rootExtTrackMap
static std::map< const RecEsTime *, TRef > m_RecEvTimeMap
static std::map< const TofDigi *, TRef > m_tofDigiMap
static std::map< const TObject *, const MucMcHit * > m_rootMucMcHitMap
static std::map< const RecEmcCluster *, TRef > m_recEmcClusterMap
static std::map< const TObject *, const DstMdcTrack * > m_rootMdcTrackMap
static std::map< const DstExtTrack *, TRef > m_extTrackMap
static std::map< const RecTofTrack *, TRef > m_RecTofTrackMap
static std::map< const RecMucTrack *, TRef > m_RecMucTrackMap
static std::map< const TObject *, const EmcDigi * > m_rootEmcDigiMap
static std::map< const RecMdcHit *, TRef > m_recMdcHitMap
static std::map< const TObject *, const DstMdcDedx * > m_rootMdcDedxMap
static std::map< const TObject *, const RecMdcKalHelixSeg * > m_rootRecMdcKalHelixSegMap
static std::map< const TObject *, const RecTofTrack * > m_rootRecTofTrackMap
static std::map< const EvtRecTrack *, TRef > m_EvtRecTrackMap
static std::map< const RecZddChannel *, TRef > m_recZddChannelMap
static std::map< const EmcDigi *, TRef > m_emcDigiMap
static std::map< const TObject *, const EvtRecDTag * > m_rootEvtRecDTagMap
static THltEvent * m_hltEvt
Provide access to the ROOT event pointers.
static std::map< const TObject *, const DstEmcShower * > m_rootEmcShowerMap
static std::map< const TObject *, const RecMdcHit * > m_rootRecMdcHitMap
static std::map< const MucDigi *, TRef > m_mucDigiMap
static std::map< const EvtRecPi0 *, TRef > m_evtRecPi0Map
static std::map< const TObject *, const McParticle * > m_rootMcParticleMap
static std::map< const RecMdcDedxHit *, TRef > m_recMdcDedxHitMap
static std::map< const TObject *, const DstHltInf * > m_rootDstHltInfMap
static std::map< const LumiDigi *, TRef > m_lumiDigiMap
static std::map< const DstTofTrack *, TRef > m_tofTrackMap
static std::map< const RecMdcKalTrack *, TRef > m_recMdcKalTrackMap
static std::map< const TObject *, const RecMdcTrack * > m_rootRecMdcTrackMap
static std::map< const HltRaw *, TRef > m_hltRawMap
static std::map< const TObject *, const TofDigi * > m_rootTofDigiMap
static std::map< const TObject *, const EvtRecPi0 * > m_rootEvtRecPi0Map
static std::map< const TObject *, const TofMcHit * > m_rootTofMcHitMap
static std::map< const DstMucTrack *, TRef > m_mucTrackMap
static std::map< const EvtRecDTag *, TRef > m_evtRecDTagMap
void clear()
Definition: commonData.cxx:150
static std::map< const DstHltInf *, TRef > m_dstHltInfMap
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.
static std::map< const DstMdcTrack *, TRef > m_mdcTrackMap
static std::map< const TObject *, const HltRaw * > m_rootHltRawMap