#include <RawDataEvtHeaderCnv.h>
Inheritance diagram for RawDataEvtHeaderCnv:
Public Types | |
typedef Ty2 | destination |
typedef Ty2 | destination |
typedef Ty1 | source |
typedef Ty1 | source |
Public Member Functions | |
StatusCode | createObj (IOpaqueAddress *pAddr, DataObject *&pObj) |
StatusCode | createObj (IOpaqueAddress *pAddr, DataObject *&pObj) |
virtual StatusCode | createRep (DataObject *pObject, IOpaqueAddress *&refpAddress) |
Convert the transient object to the requested representation. | |
virtual StatusCode | createRep (DataObject *pObject, IOpaqueAddress *&refpAddress) |
Convert the transient object to the requested representation. | |
void | declareObject (const std::string &fullPath, const CLID &clid, const std::string &bank, long par=0) |
Store TDS path to link a particular converter to an object on the TDS. | |
void | declareObject (const std::string &fullPath, const CLID &clid, const std::string &bank, long par=0) |
Store TDS path to link a particular converter to an object on the TDS. | |
virtual StatusCode | fillRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Resolve the references of the converted object. | |
virtual StatusCode | fillRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Resolve the references of the converted object. | |
virtual StatusCode | finalize () |
virtual StatusCode | finalize () |
StatusCode | initialize () |
StatusCode | initialize () |
destination * | operator (const source &) const |
destination * | operator (const source &) const |
virtual long | repSvcType () const |
virtual long | repSvcType () const |
virtual StatusCode | updateObj (IOpaqueAddress *, DataObject *) |
override the RawDataBaseCnv version | |
virtual StatusCode | updateObj (IOpaqueAddress *, DataObject *) |
override the RawDataBaseCnv version | |
virtual StatusCode | updateRep (IOpaqueAddress *pAddress, DataObject *pObject) |
Update the converted representation of a transient object. | |
virtual StatusCode | updateRep (IOpaqueAddress *pAddress, DataObject *pObject) |
Update the converted representation of a transient object. | |
virtual StatusCode | updateRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Update the references of an already converted object. | |
virtual StatusCode | updateRepRefs (IOpaqueAddress *pAddress, DataObject *pObject) |
Update the references of an already converted object. | |
Static Public Member Functions | |
const CLID & | classID () |
const CLID & | classID () |
const unsigned char | storageType () |
const unsigned char | storageType () |
Protected Member Functions | |
virtual destination * | convert (const source &) const =0 |
virtual destination * | convert (const source &) const =0 |
RawDataEvtHeaderCnv (ISvcLocator *svc) | |
RawDataEvtHeaderCnv (ISvcLocator *svc) | |
Protected Attributes | |
IRawDataCnvSvc * | m_CnvSvc |
Pointer to event conversion service interface. | |
IRawDataCnvSvc * | m_CnvSvc |
Pointer to event conversion service interface. | |
std::vector< IRawDataCnvSvc::Leaf > | m_leaves |
Leaf objects giving the locations of the objects in the data store. | |
std::vector< IRawDataCnvSvc::Leaf > | m_leaves |
Leaf objects giving the locations of the objects in the data store. | |
Private Attributes | |
IRawDataInputSvc * | m_inputSvc |
IRawDataInputSvc * | m_inputSvc |
IRawDataCnvSvc * | m_RawDataAccess |
Define the interface to raw data cnv. | |
IRawDataCnvSvc * | m_RawDataAccess |
Define the interface to raw data cnv. | |
Friends | |
class | CnvFactory<RawDataEvtHeaderCnv> |
|
|
|
|
|
|
|
|
|
00015 : 00016 RawDataBaseCnv(PACKEDRAWEVENT_StorageType, classID(), svc) 00017 { 00018 // for Mutil-thread by tianhl 00019 //init(); 00020 // for Mutil-thread by tianhl 00021 }
|
|
|
|
Reimplemented from RawDataBaseCnv. |
|
Reimplemented from RawDataBaseCnv. 00073 {
00074 return CLID_EventHeader;
00075 }
|
|
|
|
|
|
|
|
00085 { 00086 StatusCode sc; 00087 RawDataAddress *pEFAddr; 00088 const RAWEVENT *evt; 00089 00090 Event::EventHeader *header = new Event::EventHeader(); 00091 pObj = header; 00092 00093 //if ( (pEFAddr = dynamic_cast<RawDataAddress*>(pAddr)) ) { 00094 evt = m_inputSvc->currentEvent(); 00095 00096 if (evt == NULL) return StatusCode::FAILURE; 00097 00098 header->setEventNumber(evt->eventHeader().event_number()); 00099 header->setRunNumber(evt->eventHeader().run_number()); 00100 header->setTime(evt->eventHeader().time()); 00101 header->setFlag1( evt->eventHeader().flag1() ); 00102 //header->setFlag2( evt->eventHeader().flag2() ); 00103 00104 00105 return StatusCode::SUCCESS; 00106 //} 00107 //else { 00108 // return StatusCode::FAILURE; 00109 //} 00110 00111 }
|
|
Convert the transient object to the requested representation.
Reimplemented in RawDataCnv, RawDataDigiCnv, RawDataEmcDigiCnv, RawDataEmcMcHitCnv, RawDataHltCnv, RawDataHltRawCnv, RawDataLumiDigiCnv, RawDataMcCnv, RawDataMcParticleCnv, RawDataMdcDigiCnv, RawDataMdcMcHitCnv, RawDataMucDigiCnv, RawDataMucMcHitCnv, RawDataTofDigiCnv, RawDataTofMcHitCnv, RawDataTrigCnv, RawDataTrigGTDCnv, RawDataCnv, RawDataDigiCnv, RawDataEmcDigiCnv, RawDataEmcMcHitCnv, RawDataHltCnv, RawDataHltRawCnv, RawDataLumiDigiCnv, RawDataMcCnv, RawDataMcParticleCnv, RawDataMdcDigiCnv, RawDataMdcMcHitCnv, RawDataMucDigiCnv, RawDataMucMcHitCnv, RawDataTofDigiCnv, RawDataTofMcHitCnv, RawDataTrigCnv, and RawDataTrigGTDCnv. |
|
Convert the transient object to the requested representation.
Reimplemented in RawDataCnv, RawDataDigiCnv, RawDataEmcDigiCnv, RawDataEmcMcHitCnv, RawDataHltCnv, RawDataHltRawCnv, RawDataLumiDigiCnv, RawDataMcCnv, RawDataMcParticleCnv, RawDataMdcDigiCnv, RawDataMdcMcHitCnv, RawDataMucDigiCnv, RawDataMucMcHitCnv, RawDataTofDigiCnv, RawDataTofMcHitCnv, RawDataTrigCnv, RawDataTrigGTDCnv, RawDataCnv, RawDataDigiCnv, RawDataEmcDigiCnv, RawDataEmcMcHitCnv, RawDataHltCnv, RawDataHltRawCnv, RawDataLumiDigiCnv, RawDataMcCnv, RawDataMcParticleCnv, RawDataMdcDigiCnv, RawDataMdcMcHitCnv, RawDataMucDigiCnv, RawDataMucMcHitCnv, RawDataTofDigiCnv, RawDataTofMcHitCnv, RawDataTrigCnv, and RawDataTrigGTDCnv. 00022 { 00023 // Purpose and Method: Convert the transient object to the requested 00024 // representation. It is expected that derived classes will override 00025 // this method. 00026 return StatusCode::SUCCESS; 00027 }
|
|
Store TDS path to link a particular converter to an object on the TDS.
|
|
Store TDS path to link a particular converter to an object on the TDS.
00082 { 00083 // Purpose and Method: Save the path on the TDS, in the m_leaves vector, 00084 // corresponding to the DataObject that the converter handles. 00085 // m_leaves.push_back(IRawDataCnvSvc::Leaf(path, cl, bank, par)); 00086 }
|
|
Resolve the references of the converted object.
|
|
Resolve the references of the converted object.
00030 { 00031 // Purpose and Method: Resolve the references of the converted object. 00032 // It is expected that derived classes will override this method. 00033 return StatusCode::SUCCESS; 00034 }
|
|
|
|
00073 { 00074 if ( m_CnvSvc ) { 00075 m_CnvSvc->release(); 00076 m_CnvSvc = 0; 00077 } 00078 return Converter::finalize(); 00079 }
|
|
Reimplemented from RawDataBaseCnv. |
|
Reimplemented from RawDataBaseCnv. 00024 { 00025 StatusCode sc = RawDataBaseCnv::initialize(); 00026 if ( sc.isFailure() ) return sc; 00027 00028 std::string PackedRawDataCnvSvc_Name("PackedRawDataCnvSvc"); 00029 std::string RawDataInputSvc_Name("RawDataInputSvc"); 00030 std::string RawDataEvtHeaderCnv_Name("RawDataEvtHeaderCnv"); 00031 00032 // for Mutil-thread by tianhl 00033 ConversionSvc* pCnvSvc = 0; 00034 if (pCnvSvc = dynamic_cast<ConversionSvc*>(conversionSvc())){ 00035 if (isGaudiThreaded(pCnvSvc->name())){ 00036 PackedRawDataCnvSvc_Name += getGaudiThreadIDfromName(pCnvSvc->name()); 00037 RawDataInputSvc_Name += getGaudiThreadIDfromName(pCnvSvc->name()); 00038 RawDataEvtHeaderCnv_Name += getGaudiThreadIDfromName(pCnvSvc->name()); 00039 } 00040 } 00041 // for Mutil-thread by tianhl 00042 MsgStream log(messageService(), RawDataEvtHeaderCnv_Name.c_str()); 00043 00044 IService* svc = 0; 00045 sc = serviceLocator()->service(PackedRawDataCnvSvc_Name.c_str(), svc); 00046 if ( sc.isFailure() ) { 00047 log << MSG::ERROR << "Can't get RawDataAccess interface" << endreq; 00048 return StatusCode::FAILURE; 00049 } 00050 00051 m_RawDataAccess = dynamic_cast<PackedRawDataCnvSvc*> (svc); 00052 if (m_RawDataAccess == 0 ) { 00053 log << MSG::ERROR << "RawDataEvtHeaderCnv: Cant cast to RawDataCnvSvc" << endreq; 00054 return StatusCode::FAILURE; 00055 } 00056 00057 sc = serviceLocator()->getService(RawDataInputSvc_Name.c_str(), svc); 00058 if ( sc.isFailure() ) { 00059 log << MSG::WARNING << "Cant get RawDataInputSvc " << endreq; 00060 return sc ; 00061 } 00062 00063 m_inputSvc = dynamic_cast<RawDataInputSvc*> (svc); 00064 if ( m_inputSvc == 0 ) { 00065 log << MSG::ERROR << "Cant cast to RawDataInputSvc" << endreq; 00066 return StatusCode::FAILURE ; 00067 } 00068 00069 return StatusCode::SUCCESS; 00070 }
|
|
|
|
|
|
Reimplemented from RawDataBaseCnv. 00032 {
00033 return PACKEDRAWEVENT_StorageType;
00034 }
|
|
Reimplemented from RawDataBaseCnv. 00032 {
00033 return PACKEDRAWEVENT_StorageType;
00034 }
|
|
Reimplemented from RawDataBaseCnv. 00036 {
00037 return PACKEDRAWEVENT_StorageType;
00038 }
|
|
Reimplemented from RawDataBaseCnv. 00036 {
00037 return PACKEDRAWEVENT_StorageType;
00038 }
|
|
override the RawDataBaseCnv version
|
|
override the RawDataBaseCnv version
00077 { 00078 //MsgStream log(msgSvc(), "RawDataEvtHeaderCnv"); 00079 //log << MSG::DEBUG << "RawDataEvtHeaderCnv::updateObj" << endreq; 00080 return Converter::updateObj(pAddr, pObj); 00081 }
|
|
Update the converted representation of a transient object.
|
|
Update the converted representation of a transient object.
00037 { 00038 // Purpose and Method: Update the converted representation of a transient 00039 // object. It is expected that derived classes will override this. 00040 return StatusCode::SUCCESS; 00041 }
|
|
Update the references of an already converted object.
|
|
Update the references of an already converted object.
00044 { 00045 // Purpose and Method: Update the references of an already converted object. 00046 // It is expected that derived classes will override this method. 00047 return StatusCode::SUCCESS; 00048 }
|
|
|
|
Pointer to event conversion service interface.
|
|
Pointer to event conversion service interface.
|
|
|
|
|
|
Leaf objects giving the locations of the objects in the data store.
|
|
Leaf objects giving the locations of the objects in the data store.
|
|
Define the interface to raw data cnv.
|
|
Define the interface to raw data cnv.
|