/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
SimpleInputModule Class Reference

#include <SimpleInputModule.h>

List of all members.

Public Member Functions

 SimpleInputModule (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~SimpleInputModule ()
virtual StatusCode initialize ()
virtual StatusCode execute ()
virtual StatusCode finalize ()

Detailed Description

Definition at line 7 of file SimpleInputModule.h.


Constructor & Destructor Documentation

SimpleInputModule::SimpleInputModule ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 11 of file SimpleInputModule.cc.

    : GaudiAlgorithm(name,pSvcLocator)
{
}
SimpleInputModule::~SimpleInputModule ( ) [virtual]

Definition at line 17 of file SimpleInputModule.cc.

{
}

Member Function Documentation

StatusCode SimpleInputModule::initialize ( ) [virtual]

Definition at line 21 of file SimpleInputModule.cc.

{
    this->GaudiAlgorithm::initialize();

    return StatusCode::SUCCESS;
}
StatusCode SimpleInputModule::execute ( ) [virtual]

Definition at line 28 of file SimpleInputModule.cc.

{
    info() << "execute()" << endreq;

    const char* dirs[] = {"foo", "bar", "baz", 0};

    for (int ind=0; dirs[ind]; ++ind) {
        string path = "/Event/";
        path += dirs[ind];

        if (exist<DataObject>(evtSvc(), path)) {
            info () << "Path " << path << " exists as DataObject at least" << endreq;
        }
        else {
            error() << "Path " << path << " doesn't exist!" << endreq;
        }

        DayaBay::HeaderObject* ho = 
            get<DayaBay::HeaderObject>(path);
        info() << path 
               << "[" << ho->execNumber() << "]"
               << ": "
               << ho->earliest()
               << " --> "
               << ho->latest()
               << endreq;
        int siz = ho->inputHeaders().size();
        if (siz) {
            info() << path << " has " << siz << " input headers: [";
            for (int ind=0; ind<siz; ++ind) {
                const IHeader* ihead = ho->inputHeaders()[ind];
                const DataObject* dobj = dynamic_cast<const DataObject*>(ihead);
                info() << " " << dobj->name();
            }
            info() << " ]" << endreq;
        }
        else {
            info() << "no input headers for " << path << endreq;
        }
            
    }

#if 0
    RegistrationSequence* rs = 
        get<RegistrationSequence>(RegistrationSequence::defaultLocation());
    ObjectReg* bazreg = rs->registration("/Event/baz");
    if (!bazreg) {
        warning() << "Failed to get registration for /Event/baz" << endreq;
    }
    else {
        info() << "Killing baz, never liked that guy." << endreq;
        bazreg->setStore(false);
    }
#endif

    return StatusCode::SUCCESS;
}
StatusCode SimpleInputModule::finalize ( ) [virtual]

Definition at line 86 of file SimpleInputModule.cc.

{

    return this->GaudiAlgorithm::finalize();
}

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:20:12 for RootIOTest by doxygen 1.7.4