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

In This Package:

TESDemoMark.cpp
Go to the documentation of this file.
00001 #include "src/TESDemoMark.h"
00002 
00003 #include "Event/RegistrationSequence.h"
00004 
00005 using namespace DayaBay;
00006 
00007 TESDemoMark::TESDemoMark( const std::string& name, 
00008                             ISvcLocator* pSvcLocator ) :
00009   GaudiAlgorithm(name,
00010                  pSvcLocator)
00011 {
00012   declareProperty("RegSeqPath",
00013                   m_regSeqPath="/Event/RegistrationSequence",
00014                   "Path, in the TES, where the RegistrationSequnce object is kept");
00015 }
00016 
00017 StatusCode TESDemoMark::initialize() {
00018   
00019    info() << "in initialize" 
00020           << endreq;
00021    info() << m_regSeqPath 
00022           << endreq;
00023    
00024    return StatusCode::SUCCESS;
00025 }
00026 
00027 StatusCode TESDemoMark::execute() {
00028 
00029   SmartDataPtr<RegistrationSequence>  regSeq(eventSvc(),
00030                                              "/Event/RegistrationSequence");
00031   if (0 == regSeq) {
00032     return Error("Failed to retrieve RegistrationSequence from Event Store");
00033   }
00034   
00035   if (regSeq->empty()) {
00036     return Error("Retrieved RegistrationSequence is empty");    
00037   }
00038 
00039   const RegistrationSequence::Registration& registration = regSeq->registrations().front();
00040   const_cast<RegistrationSequence::Registration&>(registration).setStore(false);
00041 
00042   return StatusCode::SUCCESS;
00043 }
00044 
00045 StatusCode TESDemoMark::finalize() {
00046 
00047   info() << "in finalize"
00048          << endreq;
00049 
00050   return StatusCode::SUCCESS;
00051 }
00052 
00053 
00054 
| 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