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

In This Package:

TESDemoTracing.cpp
Go to the documentation of this file.
00001 #include "src/TESDemoTracing.h"
00002 
00003 #include "Event/TESDemoTracer.h"
00004 
00005 using namespace DayaBay;
00006 
00007 TESDemoTracing::TESDemoTracing( const std::string& name, 
00008                                 ISvcLocator* pSvcLocator ) :
00009   GaudiAlgorithm(name,
00010                  pSvcLocator),
00011                  m_done(false)
00012 {
00013   declareProperty("On",
00014                   m_on=false,
00015                   "Switch tracer functionallity on");
00016 }
00017 
00018 StatusCode TESDemoTracing::initialize() {
00019   
00020    info() << "in initialize" 
00021           << endreq;
00022    info() << m_on
00023           << endreq;
00024 
00025    return StatusCode::SUCCESS;
00026 
00027 }
00028 
00029 StatusCode TESDemoTracing::execute() {
00030 
00031   if (m_done) {
00032     return StatusCode::SUCCESS;
00033   }
00034 
00035   if (m_on) {
00036     TESDemoTracer::setMessageSvc(msgSvc(),
00037                                  "Tracing");
00038   }
00039   m_done = true;
00040 
00041   return StatusCode::SUCCESS;
00042 }
00043 
00044 StatusCode TESDemoTracing::finalize() {
00045 
00046   info() << "in finalize"
00047          << endreq;
00048 
00049   return StatusCode::SUCCESS;
00050 }
00051 
00052 
00053 
| 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