/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 Attributes
RegSeqDumpAlg Class Reference

Dump contents of the registration sequence object. More...

#include <RegSeqDumpAlg.h>

List of all members.

Public Member Functions

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

Private Attributes

std::string m_location

Detailed Description

Dump contents of the registration sequence object.

bv@bnl.gov Thu Aug 7 14:01:32 2008

Definition at line 18 of file RegSeqDumpAlg.h.


Constructor & Destructor Documentation

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

Definition at line 15 of file RegSeqDumpAlg.cc.

    : GaudiAlgorithm(name,pSvcLocator)
{
    declareProperty("Location",m_location = DayaBay::RegistrationSequence::defaultLocation(),
                    "TES location to find the RegistrationSequence");
}
RegSeqDumpAlg::~RegSeqDumpAlg ( ) [virtual]

Definition at line 22 of file RegSeqDumpAlg.cc.

{
}

Member Function Documentation

StatusCode RegSeqDumpAlg::initialize ( ) [virtual]

Definition at line 26 of file RegSeqDumpAlg.cc.

{
    this->GaudiAlgorithm::initialize();

    IJobOptionsSvc* jos = svc<IJobOptionsSvc>("JobOptionsSvc");
    vector<string> clients = jos->getClients();
    info() << "Job Options:\n";
    for (size_t ind=0; ind<clients.size(); ++ind) {
        const vector<const Property*>* props = jos->getProperties(clients[ind]);
        if (!props) {
            info () << "\t" << clients[ind] << ": no properties\n";
            continue;
        }
        info () << "\t" << clients[ind] << ": " << props->size() << " properties:\n";
        for (size_t pind=0; pind<props->size(); ++pind) {
            info () << "\t\t" << *((*props)[pind]) << "\n";
        }
    }

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

Definition at line 48 of file RegSeqDumpAlg.cc.

{
    DayaBay::RegistrationSequence* rs = get<DayaBay::RegistrationSequence>(m_location);
    info() << "%%% BEGIN DUMP %%%\n";
    if (rs) info() << *rs;
    info() << "%%% END DUMP %%%\n" << endreq;

    DayaBay::HeaderObject ho;
    stringstream ss;
    ho.fillStream(ss);
    info() << "Generic HeaderObject: \"" << ss.str() << "\"" << endreq;

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

Definition at line 63 of file RegSeqDumpAlg.cc.

{

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

Member Data Documentation

std::string RegSeqDumpAlg::m_location [private]

Definition at line 32 of file RegSeqDumpAlg.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:20:12 for RootIOTest by doxygen 1.7.4