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

#include <TESDemoMark.h>

List of all members.

Public Member Functions

 TESDemoMark (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 TESDemoMark.h.


Constructor & Destructor Documentation

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

Definition at line 7 of file TESDemoMark.cpp.

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

Member Function Documentation

StatusCode TESDemoMark::initialize ( )

Definition at line 17 of file TESDemoMark.cpp.

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

Definition at line 27 of file TESDemoMark.cpp.

                                {

  SmartDataPtr<RegistrationSequence>  regSeq(eventSvc(),
                                             "/Event/RegistrationSequence");
  if (0 == regSeq) {
    return Error("Failed to retrieve RegistrationSequence from Event Store");
  }
  
  if (regSeq->empty()) {
    return Error("Retrieved RegistrationSequence is empty");    
  }

  const RegistrationSequence::Registration& registration = regSeq->registrations().front();
  const_cast<RegistrationSequence::Registration&>(registration).setStore(false);

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

Definition at line 45 of file TESDemoMark.cpp.

                                 {

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

  return StatusCode::SUCCESS;
}

Member Data Documentation

StringProperty TESDemoMark::m_regSeqPath [private]

Definition at line 22 of file TESDemoMark.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