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

#include <TESDemoFill2.h>

List of all members.

Public Member Functions

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

Private Attributes

IntegerProperty m_percentage
StringProperty m_readoutPath
StringProperty m_neutronPath

Detailed Description

Definition at line 6 of file TESDemoFill2.h.


Constructor & Destructor Documentation

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

Definition at line 12 of file TESDemoFill2.cpp.

                                                       :
  GaudiAlgorithm(name,
                 pSvcLocator)
{
  declareProperty("NeutronPercentage",
                  m_percentage=50,
                  "Percentage of Readouts to contain Neutrons");
  declareProperty("ReadoutPath",
                  m_readoutPath="/Event/TESDemo/Readout",
                  "Path from which to retrieve the Readouts");
  declareProperty("NeutronPath",
                  m_neutronPath="/Event/TESDemo/Neutron",
                  "Path, in the TES, into which the Neutron is stored");
}

Member Function Documentation

StatusCode TESDemoFill2::initialize ( )

Definition at line 28 of file TESDemoFill2.cpp.

                                    {

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

}
StatusCode TESDemoFill2::execute ( )

Definition at line 42 of file TESDemoFill2.cpp.

                                 {

  TESDemoReadout* readout = get<TESDemoReadout>(m_readoutPath.value());

  // Determine whether this readout will contain a neutron.
  if (random() % 101 <= m_percentage.value()) {
    return StatusCode::SUCCESS;
  }

  TESDemoNeutron* neutron = new TESDemoNeutron(readout->timeStamp(),
                                               readout);
  put(neutron,
      m_neutronPath.value());

  return StatusCode::SUCCESS;

}
StatusCode TESDemoFill2::finalize ( )

Definition at line 60 of file TESDemoFill2.cpp.

                                  {

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

}

Member Data Documentation

IntegerProperty TESDemoFill2::m_percentage [private]

Definition at line 18 of file TESDemoFill2.h.

StringProperty TESDemoFill2::m_readoutPath [private]

Definition at line 20 of file TESDemoFill2.h.

StringProperty TESDemoFill2::m_neutronPath [private]

Definition at line 21 of file TESDemoFill2.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