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

#include <TESDemoCreateReadout.h>

Collaboration diagram for TESDemoCreateReadout:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Attributes

StringProperty m_readoutPath
int m_sequenceNumber
TimeStamp m_readoutTime

Detailed Description

Definition at line 8 of file TESDemoCreateReadout.h.


Constructor & Destructor Documentation

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

Definition at line 13 of file TESDemoCreateReadout.cpp.

                                                                       :
  GaudiAlgorithm(name,
                 pSvcLocator),
  m_readoutTime(time(0),
                0)
{
   declareProperty("ReadoutPath",
                   m_readoutPath="/Event/TESDemo/Readout");
}

Member Function Documentation

StatusCode TESDemoCreateReadout::initialize ( )

Definition at line 24 of file TESDemoCreateReadout.cpp.

                                            {

   info() << "in initialize" 
          << endreq;
   info() << m_readoutPath 
          << endreq;
   return StatusCode::SUCCESS;

}
StatusCode TESDemoCreateReadout::execute ( )

Definition at line 34 of file TESDemoCreateReadout.cpp.

                                         {

  // Create TESDemo tree in event store
  // TODO : Use m_readoutPath to create tree trunk
  DataObject* dataObject = new DataObject();
  StatusCode status = eventSvc()->registerObject("/Event/TESDemo",
                                                 dataObject);
  if (status.isFailure()) {
    Error( "Failed to create '/Event/TESDemo' tree in Event Store",
           status);
  }

  // Create and store dummy Readout
  TESDemoReadout* readout = new TESDemoReadout(m_readoutTime,
                                               m_sequenceNumber);
  m_readoutTime.Add(0.0000001 * (random() % 1000));
  m_sequenceNumber++;
  status = eventSvc()->registerObject(m_readoutPath.value(),
                                      readout);
  if (status.isFailure()) {
    Error("Failed to store readout in Event Store",
          status);
  }

  return StatusCode::SUCCESS;

}
StatusCode TESDemoCreateReadout::finalize ( )

Definition at line 62 of file TESDemoCreateReadout.cpp.

                                          {

  info() << "in finalize"
         << endreq;
  return StatusCode::SUCCESS;

}

Member Data Documentation

StringProperty TESDemoCreateReadout::m_readoutPath [private]

Definition at line 20 of file TESDemoCreateReadout.h.

Definition at line 22 of file TESDemoCreateReadout.h.

Definition at line 23 of file TESDemoCreateReadout.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