BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
RecMucRecHitCnv.cxx
Go to the documentation of this file.
1#ifndef RecMucRecHitCnv_CXX
2#define RecMucRecHitCnv_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 "ReconEvent/ReconEvent.h"
13
14// #include "RootEventData/TMucTrack.h" // standard root object
15#include "RootEventData/TRecMucTrack.h" // standard root object
16// #include "RootEventData/TDstEvent.h"
17#include "RootEventData/TRecTrackEvent.h"
18
19#include "RootCnvSvc/Rec/RecMucRecHitCnv.h"
20#include "RootCnvSvc/Rec/RecTrackCnv.h"
21#include "RootCnvSvc/RootAddress.h"
22
23#include <vector>
24
25using namespace std;
26
27// Instantiation of a static factory class used by clients to create
28// instances of this service
29// static CnvFactory<RecMucRecHitCnv> s_factory;
30// const ICnvFactory& RecMucRecHitCnvFactory = s_factory;
31
33
34 // Here we associate this converter with the /Event path on the TDS.
35 MsgStream log( msgSvc(), "RecMucRecHitCnv" );
36 // log << MSG::DEBUG << "Constructor called for " << objType() << endmsg;
37 // m_rootTreename ="Rec";
38 m_rootBranchname = "m_RecmucRecHitCol";
41 m_adresses.push_back( &m_mucTrackCol );
42 m_mucTrackCol = 0;
43}
44
45StatusCode RecMucRecHitCnv::TObjectToDataObject( DataObject*& refpObject ) {
46 // creation of TDS object from root object
47
48 return StatusCode::SUCCESS;
49}
50
51StatusCode RecMucRecHitCnv::DataObjectToTObject( DataObject* obj, RootAddress* rootaddr ) {
52
53 return StatusCode::SUCCESS;
54}
55#endif
IMessageSvc * msgSvc()
virtual StatusCode DataObjectToTObject(DataObject *obj, RootAddress *addr)
transformation to root
virtual StatusCode TObjectToDataObject(DataObject *&obj)
transformation from root
RecMucRecHitCnv(ISvcLocator *svc)
Definition of a Root address, derived from IOpaqueAddress.
std::string m_rootTreename
each converter knows it's treename
std::vector< void * > m_adresses
each converter knows the corresponding adresses
void declareObject(const std::string &fullPath, const CLID &clid, const std::string &treename, const std::string &branchname)
Store TDS path to link a particular converter to an object on the TDS.
std::string m_rootBranchname
root branchname (may be concatenated of severals)
RootEventBaseCnv(const CLID &clid, ISvcLocator *svc)