Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

RawDataTrigCnv Class Reference

#include <RawDataTrigCnv.h>

Inheritance diagram for RawDataTrigCnv:

RawDataBaseCnv RawDataBaseCnv Converter< Ty1, Ty2 > Converter< Ty1, Ty2 > Converter< Ty1, Ty2 > Converter< Ty1, Ty2 > List of all members.

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 *pObj, IOpaqueAddress *&pAddr)
 Convert the transient object to the requested representation.
virtual StatusCode createRep (DataObject *pObj, IOpaqueAddress *&pAddr)
 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 init ()
StatusCode init ()
StatusCode initialize ()
StatusCode initialize ()
destinationoperator (const source &) const
destinationoperator (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 destinationconvert (const source &) const =0
virtual destinationconvert (const source &) const =0
 RawDataTrigCnv (ISvcLocator *svc)
 RawDataTrigCnv (ISvcLocator *svc)

Protected Attributes

IRawDataCnvSvcm_CnvSvc
 Pointer to event conversion service interface.
IRawDataCnvSvcm_CnvSvc
 Pointer to event conversion service interface.
std::vector< IRawDataCnvSvc::Leafm_leaves
 Leaf objects giving the locations of the objects in the data store.
std::vector< IRawDataCnvSvc::Leafm_leaves
 Leaf objects giving the locations of the objects in the data store.

Private Attributes

IRawDataInputSvcm_inputSvc
IRawDataInputSvcm_inputSvc
IRawDataCnvSvcm_RawDataAccess
 Define the interface to raw data cnv.
IRawDataCnvSvcm_RawDataAccess
 Define the interface to raw data cnv.

Friends

class CnvFactory<RawDataTrigCnv>

Member Typedef Documentation

template<class Ty1, class Ty2>
typedef Ty2 Converter< Ty1, Ty2 >::destination [inherited]
 

template<class Ty1, class Ty2>
typedef Ty2 Converter< Ty1, Ty2 >::destination [inherited]
 

template<class Ty1, class Ty2>
typedef Ty1 Converter< Ty1, Ty2 >::source [inherited]
 

template<class Ty1, class Ty2>
typedef Ty1 Converter< Ty1, Ty2 >::source [inherited]
 


Constructor & Destructor Documentation

RawDataTrigCnv::RawDataTrigCnv ISvcLocator *  svc  )  [protected]
 

00012                                                :
00013 RawDataBaseCnv(PACKEDRAWEVENT_StorageType, classID(), svc)
00014 {
00015   init();
00016 }

RawDataTrigCnv::RawDataTrigCnv ISvcLocator *  svc  )  [protected]
 


Member Function Documentation

const CLID& RawDataTrigCnv::classID  )  [static]
 

Reimplemented from RawDataBaseCnv.

const CLID & RawDataTrigCnv::classID  )  [static]
 

Reimplemented from RawDataBaseCnv.

00019 {
00020   return CLID_TrigEvent;
00021 }

template<class Ty1, class Ty2>
virtual destination* Converter< Ty1, Ty2 >::convert const source  )  const [protected, pure virtual, inherited]
 

template<class Ty1, class Ty2>
virtual destination* Converter< Ty1, Ty2 >::convert const source  )  const [protected, pure virtual, inherited]
 

StatusCode RawDataTrigCnv::createObj IOpaqueAddress *  pAddr,
DataObject *&  pObj
 

StatusCode RawDataTrigCnv::createObj IOpaqueAddress *  pAddr,
DataObject *&  pObj
 

00067 {
00068   TrigEvent * evt = new TrigEvent();
00069   pObj = evt;
00070   return StatusCode::SUCCESS;
00071 }

virtual StatusCode RawDataTrigCnv::createRep DataObject *  pObj,
IOpaqueAddress *&  pAddr
[virtual]
 

Convert the transient object to the requested representation.

Reimplemented from RawDataBaseCnv.

StatusCode RawDataTrigCnv::createRep DataObject *  pObj,
IOpaqueAddress *&  pAddr
[virtual]
 

Convert the transient object to the requested representation.

Reimplemented from RawDataBaseCnv.

00074 {
00075     std::string nm = pObj->registry()->name(); 
00076     RawDataAddress* addr = new RawDataAddress(classID(), nm, ""); 
00077     pAddr = addr; 
00078  
00079   return StatusCode::SUCCESS;
00080 }

void RawDataBaseCnv::declareObject const std::string &  fullPath,
const CLID &  clid,
const std::string &  bank,
long  par = 0
[inherited]
 

Store TDS path to link a particular converter to an object on the TDS.

void RawDataBaseCnv::declareObject const std::string &  fullPath,
const CLID &  clid,
const std::string &  bank,
long  par = 0
[inherited]
 

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 }

virtual StatusCode RawDataBaseCnv::fillRepRefs IOpaqueAddress *  pAddress,
DataObject *  pObject
[virtual, inherited]
 

Resolve the references of the converted object.

StatusCode RawDataBaseCnv::fillRepRefs IOpaqueAddress *  pAddress,
DataObject *  pObject
[virtual, inherited]
 

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 }

virtual StatusCode RawDataBaseCnv::finalize  )  [virtual, inherited]
 

StatusCode RawDataBaseCnv::finalize  )  [virtual, inherited]
 

00073                                       {
00074     if ( m_CnvSvc )     {
00075         m_CnvSvc->release();
00076         m_CnvSvc = 0;
00077     }
00078     return Converter::finalize();
00079 }

StatusCode RawDataTrigCnv::init  ) 
 

StatusCode RawDataTrigCnv::init  ) 
 

00024 {
00025     StatusCode sc = RawDataBaseCnv::initialize();
00026     if (sc.isFailure()) {
00027        return sc;
00028     }
00029 
00030     MsgStream log(messageService(), "RawDataTrigCnv");
00031 
00032     IService* svc = 0;
00033     sc = serviceLocator()->service("PackedRawDataCnvSvc", svc);
00034     if (sc != StatusCode::SUCCESS) {
00035         log << MSG::ERROR << "Can't get RawDataAccess interface" << endreq;
00036         return StatusCode::FAILURE;
00037     }
00038 
00039     m_RawDataAccess = dynamic_cast<PackedRawDataCnvSvc*> (svc);
00040     if (m_RawDataAccess  == 0 ) {
00041       log << MSG::ERROR << "RawDataCnv: Cant cast to RawDataCnvSvc" << endreq;
00042       return StatusCode::FAILURE;
00043     }
00044 
00045     sc = serviceLocator()->getService("RawDataInputSvc", svc);
00046     if(sc != StatusCode::SUCCESS ) {
00047         log << MSG::WARNING << "Cant get RawDataInputSvc " << endreq;
00048         return sc ;
00049     }
00050  
00051     m_inputSvc = dynamic_cast<RawDataInputSvc*> (svc);
00052     if(m_inputSvc == 0 ) {
00053         log << MSG::ERROR << "Cant cast to RawDataInputSvc" << endreq;
00054         return StatusCode::FAILURE ;
00055     }
00056 
00057     return StatusCode::SUCCESS;
00058 }

StatusCode RawDataBaseCnv::initialize  )  [inherited]
 

Reimplemented in RawDataCnv, RawDataDigiCnv, RawDataEmcDigiCnv, RawDataEmcMcHitCnv, RawDataEvtHeaderCnv, RawDataHltCnv, RawDataHltRawCnv, RawDataLumiDigiCnv, RawDataMcCnv, RawDataMcParticleCnv, RawDataMdcDigiCnv, RawDataMdcMcHitCnv, RawDataMucDigiCnv, RawDataMucMcHitCnv, RawDataTofDigiCnv, RawDataTofMcHitCnv, RawDataCnv, RawDataDigiCnv, RawDataEmcDigiCnv, RawDataEmcMcHitCnv, RawDataEvtHeaderCnv, RawDataHltCnv, RawDataHltRawCnv, RawDataLumiDigiCnv, RawDataMcCnv, RawDataMcParticleCnv, RawDataMdcDigiCnv, RawDataMdcMcHitCnv, RawDataMucDigiCnv, RawDataMucMcHitCnv, RawDataTofDigiCnv, and RawDataTofMcHitCnv.

StatusCode RawDataBaseCnv::initialize  )  [inherited]
 

Reimplemented in RawDataCnv, RawDataDigiCnv, RawDataEmcDigiCnv, RawDataEmcMcHitCnv, RawDataEvtHeaderCnv, RawDataHltCnv, RawDataHltRawCnv, RawDataLumiDigiCnv, RawDataMcCnv, RawDataMcParticleCnv, RawDataMdcDigiCnv, RawDataMdcMcHitCnv, RawDataMucDigiCnv, RawDataMucMcHitCnv, RawDataTofDigiCnv, RawDataTofMcHitCnv, RawDataCnv, RawDataDigiCnv, RawDataEmcDigiCnv, RawDataEmcMcHitCnv, RawDataEvtHeaderCnv, RawDataHltCnv, RawDataHltRawCnv, RawDataLumiDigiCnv, RawDataMcCnv, RawDataMcParticleCnv, RawDataMdcDigiCnv, RawDataMdcMcHitCnv, RawDataMucDigiCnv, RawDataMucMcHitCnv, RawDataTofDigiCnv, and RawDataTofMcHitCnv.

00050                                         {
00051     // Purpose and Method:  Perform standard converter initialization.
00052     //   Access the EventCnvSvc to create an association between converters 
00053     //   and paths within the TDS, using the vector of leaves and the
00054     //   declareObject methods available in each specific converter.
00055     StatusCode status = Converter::initialize();
00056     /*
00057     if ( status.isSuccess() )   {
00058         IService* isvc = 0;
00059         status = serviceLocator()->service(cnvSvcName, isvc, true);        
00060         if ( status.isSuccess() )   {
00061             status = isvc->queryInterface(IID_IRawDataBaseCnv, (void**)&m_CnvSvc);
00062             if ( status.isSuccess() )   {
00063                 for ( std::vector<IRawDataCnvSvc::Leaf>::iterator i = m_leaves.begin(); i != m_leaves.end(); i++ )    {
00064                     m_CnvSvc->declareObject(*i);
00065                 }
00066             }
00067         }
00068     }
00069     */
00070     return status;
00071 }

template<class Ty1, class Ty2>
destination* Converter< Ty1, Ty2 >::operator const source  )  const [inline, inherited]
 

template<class Ty1, class Ty2>
destination* Converter< Ty1, Ty2 >::operator const source  )  const [inline, inherited]
 

virtual long RawDataTrigCnv::repSvcType  )  const [inline, virtual]
 

Reimplemented from RawDataBaseCnv.

00031                                    {
00032        return PACKEDRAWEVENT_StorageType;
00033    }

virtual long RawDataTrigCnv::repSvcType  )  const [inline, virtual]
 

Reimplemented from RawDataBaseCnv.

00031                                    {
00032        return PACKEDRAWEVENT_StorageType;
00033    }

const unsigned char RawDataTrigCnv::storageType  )  [inline, static]
 

Reimplemented from RawDataBaseCnv.

00035                                             {
00036      return PACKEDRAWEVENT_StorageType;
00037    }

const unsigned char RawDataTrigCnv::storageType  )  [inline, static]
 

Reimplemented from RawDataBaseCnv.

00035                                             {
00036      return PACKEDRAWEVENT_StorageType;
00037    }

virtual StatusCode RawDataTrigCnv::updateObj IOpaqueAddress *  ,
DataObject * 
[virtual]
 

override the RawDataBaseCnv version

StatusCode RawDataTrigCnv::updateObj IOpaqueAddress *  ,
DataObject * 
[virtual]
 

override the RawDataBaseCnv version

00060                                                                             {
00061     MsgStream log(msgSvc(), "RawDataTrigCnv");
00062     log << MSG::DEBUG << "RawDataTrigCnv::updateObj" << endreq;
00063     return Converter::updateObj(pAddr, pObj);
00064 }

virtual StatusCode RawDataBaseCnv::updateRep IOpaqueAddress *  pAddress,
DataObject *  pObject
[virtual, inherited]
 

Update the converted representation of a transient object.

StatusCode RawDataBaseCnv::updateRep IOpaqueAddress *  pAddress,
DataObject *  pObject
[virtual, inherited]
 

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 }

virtual StatusCode RawDataBaseCnv::updateRepRefs IOpaqueAddress *  pAddress,
DataObject *  pObject
[virtual, inherited]
 

Update the references of an already converted object.

StatusCode RawDataBaseCnv::updateRepRefs IOpaqueAddress *  pAddress,
DataObject *  pObject
[virtual, inherited]
 

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 }


Friends And Related Function Documentation

CnvFactory<RawDataTrigCnv> [friend]
 


Member Data Documentation

IRawDataCnvSvc* RawDataBaseCnv::m_CnvSvc [protected, inherited]
 

Pointer to event conversion service interface.

IRawDataCnvSvc* RawDataBaseCnv::m_CnvSvc [protected, inherited]
 

Pointer to event conversion service interface.

IRawDataInputSvc* RawDataTrigCnv::m_inputSvc [private]
 

IRawDataInputSvc* RawDataTrigCnv::m_inputSvc [private]
 

std::vector<IRawDataCnvSvc::Leaf> RawDataBaseCnv::m_leaves [protected, inherited]
 

Leaf objects giving the locations of the objects in the data store.

std::vector<IRawDataCnvSvc::Leaf> RawDataBaseCnv::m_leaves [protected, inherited]
 

Leaf objects giving the locations of the objects in the data store.

IRawDataCnvSvc* RawDataTrigCnv::m_RawDataAccess [private]
 

Define the interface to raw data cnv.

IRawDataCnvSvc* RawDataTrigCnv::m_RawDataAccess [private]
 

Define the interface to raw data cnv.


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 16:43:06 2011 for BOSS6.5.5 by  doxygen 1.3.9.1