/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Member Functions | Private Attributes
DybDaq::DaqFormatSelector Class Reference

#include <DaqFormatSelector.h>

Collaboration diagram for DybDaq::DaqFormatSelector:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DaqFormatSelector (const std::string &name, ISvcLocator *svc)
 Creates an instace of this class.
 ~DaqFormatSelector ()
 Destroys the instance of this class.
virtual StatusCode initialize ()
virtual StatusCode finalize ()
virtual StatusCode createContext (Context *&context) const
virtual StatusCode next (Context &context) const
virtual StatusCode next (Context &context, int jump) const
virtual StatusCode createAddress (const Context &context, IOpaqueAddress *&iop) const
virtual StatusCode releaseContext (Context *&context) const
virtual StatusCode queryInterface (const InterfaceID &id, void **interface)
virtual StatusCode previous (Context &context) const
virtual StatusCode previous (Context &context, int jump) const
virtual StatusCode last (Context &context) const
virtual StatusCode rewind (Context &context) const
virtual StatusCode resetCriteria (const std::string &criteria, Context &context) const

Private Member Functions

 DaqFormatSelector ()
 Suppress default.
 DaqFormatSelector (const DaqFormatSelector &rhs)
 Suppress default.
DaqFormatSelectoroperator= (const DaqFormatSelector &rhs)
 Suppress default.

Private Attributes

std::vector< std::string > * m_inputFiles
 List of input files.
IDaqReadoutSvcm_daqSvc
 The service managing DAQ formatted file data.

Detailed Description

Definition at line 21 of file DaqFormatSelector.h.


Constructor & Destructor Documentation

DaqFormatSelector::DaqFormatSelector ( const std::string &  name,
ISvcLocator *  svc 
)

Creates an instace of this class.

Definition at line 22 of file DaqFormatSelector.cc.

                                                       :
Service(name,
            svc),
m_inputFiles(new vector<string>()) {
    declareProperty("InputFiles",
                    *m_inputFiles,
                    "List of input data files");
}
DaqFormatSelector::~DaqFormatSelector ( )

Destroys the instance of this class.

Definition at line 32 of file DaqFormatSelector.cc.

                                      {
    if (0 != m_inputFiles) {
        delete m_inputFiles;
    }
}
DybDaq::DaqFormatSelector::DaqFormatSelector ( ) [private]

Suppress default.

DybDaq::DaqFormatSelector::DaqFormatSelector ( const DaqFormatSelector rhs) [private]

Suppress default.


Member Function Documentation

StatusCode DaqFormatSelector::initialize ( ) [virtual]

Definition at line 38 of file DaqFormatSelector.cc.

                                         {
    StatusCode status = Service::initialize();
    if (status.isFailure()) {
        return status;
    }
    return service("DaqReadoutSvc",
                     "DaqReadoutSvc",
                     m_daqSvc);
}
StatusCode DaqFormatSelector::finalize ( ) [virtual]

Definition at line 48 of file DaqFormatSelector.cc.

{
    if (0 != m_daqSvc) {
        m_daqSvc->release();
    }
    return Service::finalize();
}
StatusCode DaqFormatSelector::createContext ( Context *&  context) const [virtual]

Definition at line 56 of file DaqFormatSelector.cc.

                                                                   {
    context = new DaqFormatContext(*m_inputFiles,
                                   *msgSvc(),
                                   *m_daqSvc);
    return StatusCode::SUCCESS;
}
StatusCode DaqFormatSelector::next ( Context context) const [virtual]

Definition at line 63 of file DaqFormatSelector.cc.

                                                         {
    return next(context,
                m_daqSvc->samplingInterval());
}
StatusCode DaqFormatSelector::next ( Context context,
int  jump 
) const [virtual]

Definition at line 69 of file DaqFormatSelector.cc.

                                                   {
    DaqFormatContext* ctxt = dynamic_cast<DaqFormatContext*>(&context);
    return ctxt->jump(jump);
}
StatusCode DaqFormatSelector::createAddress ( const Context context,
IOpaqueAddress *&  iop 
) const [virtual]

Definition at line 76 of file DaqFormatSelector.cc.

                                                                        {
    const DaqFormatContext* ctxt = dynamic_cast<const DaqFormatContext*>(&context);
    StatusCode status = ctxt->isGoodEvent();
    if (status.isFailure()) {
        return status;
    }
    iop = new StructureConverter::Address(*ctxt,
                                          StructureConverter::kEvent);
    return StatusCode::SUCCESS;
}
StatusCode DaqFormatSelector::releaseContext ( Context *&  context) const [virtual]

Definition at line 89 of file DaqFormatSelector.cc.

                                                                    {
    if (0 != context) {
        delete context;
    }
    return StatusCode::SUCCESS;
}
StatusCode DaqFormatSelector::queryInterface ( const InterfaceID &  id,
void **  interface 
) [virtual]

Definition at line 97 of file DaqFormatSelector.cc.

                                                               {
    if (IEvtSelector::interfaceID().versionMatch(id)) {
        // Good enough. Return this object
        *interface = dynamic_cast<IEvtSelector*>(this);
        addRef();
        return StatusCode::SUCCESS;
    }
    // Try base class
    return Service::queryInterface(id,
                                   interface);
}
StatusCode DaqFormatSelector::previous ( Context context) const [virtual]

Definition at line 110 of file DaqFormatSelector.cc.

                                                       {
    return StatusCode::FAILURE;
}
StatusCode DaqFormatSelector::previous ( Context context,
int  jump 
) const [virtual]

Definition at line 114 of file DaqFormatSelector.cc.

                                                    {
    return StatusCode::FAILURE;
}
StatusCode DaqFormatSelector::last ( Context context) const [virtual]

Definition at line 119 of file DaqFormatSelector.cc.

                                                   {
    return StatusCode::FAILURE;
}
StatusCode DaqFormatSelector::rewind ( Context context) const [virtual]

Definition at line 123 of file DaqFormatSelector.cc.

                                                     {
    return StatusCode::FAILURE;
}
StatusCode DaqFormatSelector::resetCriteria ( const std::string &  criteria,
Context context 
) const [virtual]

Definition at line 127 of file DaqFormatSelector.cc.

                                                              {
    return StatusCode::FAILURE;
}
DaqFormatSelector& DybDaq::DaqFormatSelector::operator= ( const DaqFormatSelector rhs) [private]

Suppress default.


Member Data Documentation

std::vector<std::string>* DybDaq::DaqFormatSelector::m_inputFiles [private]

List of input files.

Definition at line 94 of file DaqFormatSelector.h.

The service managing DAQ formatted file data.

Definition at line 99 of file DaqFormatSelector.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 Fri May 16 2014 10:15:32 for DaqFormatModules by doxygen 1.7.4