| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

MixRootEvtSelector Class Reference

#include <MixRootEvtSelector.h>

Inheritance diagram for MixRootEvtSelector:

[legend]
Collaboration diagram for MixRootEvtSelector:
[legend]
List of all members.

Public Types

 SUCCESS
 NO_INTERFACE
 VERSMISMATCH
 LAST_ERROR
enum  Status
enum  Status

Public Member Functions

 MixRootEvtSelector (const std::string &name, ISvcLocator *svcloc)
virtual ~MixRootEvtSelector ()
virtual StatusCode initialize ()
StatusCode setEntry (RootIOEvtSelector::Context &rc, int entry) const
StatusCode createAddress (const IEvtSelector::Context &c, IOpaqueAddress *&iop) const
virtual StatusCode finalize ()
virtual StatusCode createContext (IEvtSelector::Context *&c) const
virtual StatusCode next (IEvtSelector::Context &c) const
virtual StatusCode next (IEvtSelector::Context &c, int jump) const
virtual StatusCode previous (IEvtSelector::Context &c) const
virtual StatusCode previous (IEvtSelector::Context &c, int jump) const
virtual StatusCode last (IEvtSelector::Context &refContext) const
virtual StatusCode rewind (IEvtSelector::Context &c) const
virtual StatusCode releaseContext (IEvtSelector::Context *&c) const
virtual StatusCode resetCriteria (const std::string &cr, IEvtSelector::Context &c) const
StatusCode queryInterface (const InterfaceID &riid, void **ppif)
virtual unsigned long addRef ()
virtual unsigned long addRef ()=0
virtual unsigned long release ()
virtual unsigned long release ()=0
virtual const std::string & name () const
virtual const InterfaceIDtype () const
virtual StatusCode configure ()
virtual StatusCode start ()
virtual StatusCode stop ()
virtual StatusCode terminate ()
virtual Gaudi::StateMachine::State FSMState () const
virtual Gaudi::StateMachine::State targetFSMState () const
virtual StatusCode reinitialize ()
virtual StatusCode restart ()
virtual StatusCode sysInitialize ()
virtual StatusCode sysStart ()
virtual StatusCode sysStop ()
virtual StatusCode sysFinalize ()
virtual StatusCode sysReinitialize ()
virtual StatusCode sysRestart ()
virtual StatusCode setProperty (const Property &p)
virtual StatusCode setProperty (const std::string &s)
virtual StatusCode setProperty (const std::string &n, const std::string &v)
StatusCode setProperty (const std::string &name, const TYPE &value)
virtual StatusCode getProperty (Property *p) const
virtual const PropertygetProperty (const std::string &name) const
virtual StatusCode getProperty (const std::string &n, std::string &v) const
virtual const std::vector<
Property * > & 
getProperties () const
ISvcLocatorserviceLocator () const
IMessageSvcmsgSvc ()
IMessageSvcmsgSvc () const
IMessageSvcmessageService ()
IMessageSvcmessageService () const
StatusCode setProperties ()
StatusCode service (const std::string &name, T *&psvc, bool createIf=true) const
StatusCode service (const std::string &svcType, const std::string &svcName, T *&psvc) const
PropertydeclareProperty (const std::string &name, T &property, const std::string &doc="none") const
PropertydeclareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") const
IAuditorSvcauditorSvc () const

Static Public Member Functions

static const InterfaceIDinterfaceID ()
static const InterfaceIDinterfaceID ()
static const InterfaceIDinterfaceID ()
static const InterfaceIDinterfaceID ()

Public Attributes

 SUCCESS
 NO_INTERFACE
 VERSMISMATCH
 LAST_ERROR

Protected Member Functions

int outputLevel () const

Protected Attributes

IRootIOSvcm_rioSvc
IntegerProperty m_outputLevel
Gaudi::StateMachine::State m_state
Gaudi::StateMachine::State m_targetState
IMessageSvcm_messageSvc

Private Attributes

std::string m_reqSeqName
RootInputStreamm_controlStream
IMixingSvcm_mixSvc

Friends

friend friend class ServiceManager

Detailed Description

Definition at line 22 of file MixRootEvtSelector.h.


Constructor & Destructor Documentation

MixRootEvtSelector::MixRootEvtSelector ( const std::string &  name,
ISvcLocator svcloc 
)

Definition at line 13 of file MixRootEvtSelector.cc.

00014                    :Service(name,svcloc)
00015                    ,RootIOEvtSelector(name,svcloc)
00016                    ,m_reqSeqName(""), m_controlStream(0)
00017 {
00018   m_reqSeqName = DayaBay::RegistrationSequenceLocation::Default;
00019   declareProperty("ReqSeq",m_reqSeqName,
00020                   "TES/TFile path where to find the RegistrationSequence");
00021 }

MixRootEvtSelector::~MixRootEvtSelector (  )  [virtual]

Definition at line 23 of file MixRootEvtSelector.cc.

00024 {
00025   MsgStream log(msgSvc(), "MixRootEvtSelector");
00026   log << MSG::INFO << "MixRootEvtSelector::~MixIOEvtSelector()" << endreq;
00027 }


Member Function Documentation

StatusCode MixRootEvtSelector::initialize (  )  [virtual]

Reimplemented from RootIOEvtSelector.

Definition at line 29 of file MixRootEvtSelector.cc.

00030 {
00031   MsgStream log(msgSvc(), "MixRootEvtSelector");
00032   log << MSG::INFO << "initializing @" << (void*)this << endreq;
00033   log << MSG::DEBUG << "called " << this->name() << endreq;
00034   StatusCode sc = this->Service::initialize();
00035   if(sc.isFailure()) return sc;
00036 
00037   IService* isvc=0;
00038   sc = serviceLocator()->service("MixRootIOCnvSvc", "RootIOCnvSvc", isvc, false);
00039   if(sc.isFailure()) 
00040   {
00041     log << MSG::ERROR << "Conversion service MixRootIOCnvSvc"
00042         << " could not be retrieved" << endreq;
00043     return sc;
00044   }
00045   isvc->addRef();
00046 
00047   sc = isvc->queryInterface(IRootIOSvc::interfaceID(), (void**)&m_rioSvc);
00048   if(sc.isFailure()) 
00049   {
00050     log << MSG::ERROR << "Conversion service RootIOCnvSvc"
00051         << " does not implement IRootIOCnvSvc" << endreq;
00052     return sc;
00053   }
00054 
00055   log << MSG::INFO << "initialized @" << (void*)this
00056       << " got RootIOCnvSvc @" << (void*)m_rioSvc
00057       << endreq;
00058 
00059   sc = isvc->queryInterface(IMixingSvc::interfaceID(), (void**)&m_mixSvc);
00060   if(sc.isFailure()) 
00061   {
00062     log << MSG::ERROR << "Conversion service RootIOCnvSvc"
00063         << " does not implement IMixingSvc" << endreq;
00064     return sc;
00065   }
00066 
00067   log << MSG::INFO << "initialized @" << (void*)this
00068       << " got RootIOCnvSvc @" << (void*)m_mixSvc
00069       << endreq;
00070 
00071   return StatusCode::SUCCESS;
00072 }

StatusCode MixRootEvtSelector::setEntry ( RootIOEvtSelector::Context rc,
int  entry 
) const [virtual]

Reimplemented from RootIOEvtSelector.

StatusCode MixRootEvtSelector::createAddress ( const IEvtSelector::Context c,
IOpaqueAddress *&  iop 
) const [virtual]

Reimplemented from RootIOEvtSelector.

Definition at line 100 of file MixRootEvtSelector.cc.

00101 {
00102   MsgStream log(msgSvc(), "MixRootEvtSelector");
00103   log << MSG::DEBUG << "createAddress" << endreq;
00104   const MixRootEvtSelector::Context* rc = dynamic_cast<const MixRootEvtSelector::Context*>(&c);
00105   if(!rc) 
00106   {
00107     log << MSG::ERROR << "Failed to get MixRootIOEvtSelector::Context" << endreq;
00108     return StatusCode::FAILURE;
00109   }
00110 
00111   RootInputAddress* ria = new RootInputAddress(DataObject::classID(),"/Event");
00112   MixHeader mh = m_mixSvc->fetchMixHeader();
00113   ria->setEntry(mh.entry);
00114   iop = ria;
00115   log << MSG::DEBUG << "createAddress for /Event" << endreq;
00116   return StatusCode::SUCCESS;
00117 }


Member Data Documentation

std::string MixRootEvtSelector::m_reqSeqName [private]

Definition at line 33 of file MixRootEvtSelector.h.

RootInputStream* MixRootEvtSelector::m_controlStream [mutable, private]

Definition at line 34 of file MixRootEvtSelector.h.

IMixingSvc* MixRootEvtSelector::m_mixSvc [private]

Definition at line 35 of file MixRootEvtSelector.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:45:53 2011 for Mixing by doxygen 1.4.7