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

#include <TESDemoDumpRegSeq.h>

List of all members.

Public Member Functions

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

Private Attributes

StringProperty m_regSeqPath

Detailed Description

Definition at line 9 of file TESDemoDumpRegSeq.h.


Constructor & Destructor Documentation

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

Definition at line 7 of file TESDemoDumpRegSeq.cpp.

                                                       :
  GaudiAlgorithm(name,
                 pSvcLocator)
{
  declareProperty("RegSeqPath",
                  m_regSeqPath="/Event/RegistrationSequence",
                  "Path, in the TES, where the RegistrationSequnce object is kept");
}

Member Function Documentation

StatusCode TESDemoDumpRegSeq::initialize ( )

Definition at line 17 of file TESDemoDumpRegSeq.cpp.

                                         {
  
   info() << "in initialize" 
          << endreq;
   info() << m_regSeqPath 
          << endreq;
   
   return StatusCode::SUCCESS;
}
StatusCode TESDemoDumpRegSeq::execute ( )

Definition at line 27 of file TESDemoDumpRegSeq.cpp.

                                      {

  SmartDataPtr<RegistrationSequence>  regSeq(eventSvc(),
                                             "/Event/RegistrationSequence");
  if (0 == regSeq) {
    info() << "Failed to retrieve RegistrationSequence from Event Store"
           << endreq;
    return StatusCode::SUCCESS;
  }
  
  if (regSeq->empty()) {
    info() << "Retrieved RegistrationSequence is empty"
           << endreq;
    return StatusCode::SUCCESS;
  }
  
  typedef RegistrationSequence::Registrations Registrations;

  info() << "Dump of RegistrationSequence for this Processing cycle."
         << endreq;
  
  const Registrations& registrations = regSeq->registrations();
  const Registrations::const_iterator finished = registrations.end();
  for (Registrations::const_iterator registration = registrations.begin();
       finished != registration;
       ++registration) {
    std::string store = "";
    if (!(*registration).store()) {
      store = "not ";
    }
    info() << "  There was an object registered at \""
           << (*registration).path()
           << "\" which is "
           << store
           << "marked for storage."
           << endreq;
  }

  return StatusCode::SUCCESS;
}
StatusCode TESDemoDumpRegSeq::finalize ( )

Definition at line 68 of file TESDemoDumpRegSeq.cpp.

                                       {

  info() << "in finalize"
         << endreq;

  return StatusCode::SUCCESS;
}

Member Data Documentation

StringProperty TESDemoDumpRegSeq::m_regSeqPath [private]

Definition at line 22 of file TESDemoDumpRegSeq.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:09:00 for TESDemo by doxygen 1.7.4