BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RecETofCalHitCnv.cxx
Go to the documentation of this file.
1#ifndef RecETofCalHitCnv_CXX
2#define RecETofCalHitCnv_CXX 1
3
4#include "GaudiKernel/DataObject.h"
5#include "GaudiKernel/MsgStream.h"
6#include "GaudiKernel/ObjectVector.h"
7
8#include "TClonesArray.h"
9
10#include "EventModel/EventModel.h"
11
12#include "MucRecEvent/RecMucTrack.h"
13#include "ReconEvent/ReconEvent.h"
14
15// #include "RootEventData/TMucTrack.h" // standard root object
16#include "RootEventData/TRecMucTrack.h" // standard root object
17// #include "RootEventData/TDstEvent.h"
18#include "RootEventData/TRecTrackEvent.h"
19
20#include "RootCnvSvc/Rec/RecETofCalHitCnv.h"
21#include "RootCnvSvc/Rec/RecTrackCnv.h"
22#include "RootCnvSvc/RootAddress.h"
23
24#include <vector>
25
26using namespace std;
27
28// Instantiation of a static factory class used by clients to create
29// instances of this service
30// static CnvFactory<RecETofCalHitCnv> s_factory;
31// const ICnvFactory& RecETofCalHitCnvFactory = s_factory;
32
34
35 // Here we associate this converter with the /Event path on the TDS.
36 MsgStream log( msgSvc(), "RecETofCalHitCnv" );
37 // log << MSG::DEBUG << "Constructor called for " << objType() << endmsg;
38 // m_rootTreename ="Rec";
39 m_rootBranchname = "m_RecETofCalHitCol";
40 // declareObject(EventModel::Recon::RecETofCalHitCol, objType(), m_rootTreename,
41 // m_rootBranchname);
42 m_adresses.push_back( &m_mucTrackCol );
43 m_mucTrackCol = 0;
44}
45
46StatusCode RecETofCalHitCnv::TObjectToDataObject( DataObject*& refpObject ) {
47 // creation of TDS object from root object
48
49 return StatusCode::SUCCESS;
50}
51
52StatusCode RecETofCalHitCnv::DataObjectToTObject( DataObject* obj, RootAddress* rootaddr ) {
53
54 return StatusCode::SUCCESS;
55}
56#endif
IMessageSvc * msgSvc()
RecETofCalHitCnv(ISvcLocator *svc)
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation to root
virtual StatusCode TObjectToDataObject(DataObject *&obj)
transformation from root
Definition of a Root address, derived from IOpaqueAddress.
std::vector< void * > m_adresses
each converter knows the corresponding adresses
std::string m_rootBranchname
root branchname (may be concatenated of severals)
RootEventBaseCnv(const CLID &clid, ISvcLocator *svc)