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

In This Package:

Classes | Public Member Functions | Private Attributes
DybHelloWorld Class Reference

Trivial example of an algorithm. More...

#include <DybHelloWorld.h>

List of all members.

Classes

class  Configure

Public Member Functions

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

Private Attributes

int m_myInt
bool m_myBool
double m_myDouble
std::vector< std::string > m_myStringVec
IntegerProperty m_participant
std::map< std::string,
std::string > 
m_myStringMap
std::map< std::string,
std::vector< std::string > > 
m_myStringVectorMap
list __all__

Detailed Description

Trivial example of an algorithm.

Definition at line 16 of file DybHelloWorld.h.


Constructor & Destructor Documentation

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

Definition at line 5 of file DybHelloWorld.cc.

                                                                         :
  GaudiAlgorithm(name, pSvcLocator), m_myInt(0), m_myBool(0), m_myDouble(0)
{
  // Part 1: Declare the properties
  declareProperty("MyInt", m_myInt, "My Integer");
  declareProperty("MyBool", m_myBool, "My Bool");
  declareProperty("MyDouble", m_myDouble, "My Double");
  declareProperty("MyStringVec",m_myStringVec, "My String Vector");
  declareProperty("MyIntegerProperty", m_participant=40, "My Integer Property");    // [1]
  declareProperty("MyStringMap",m_myStringMap,"My String Map");
  declareProperty("MyStringVectorMap",m_myStringVectorMap,"My String Vector Map");
  m_participant.verifier().setBounds(0, 45);                                      // [2]
}

Member Function Documentation

StatusCode DybHelloWorld::initialize ( )

Definition at line 21 of file DybHelloWorld.cc.

                                    {
  
  // Part 1: Print where you are
  info() << " DybHelloWorld initialize()" << endreq;
  
  // Part 2: Print out the property values
  info() << "  MyInt =     " << m_myInt << endreq;
  info() << "  MyBool =    " << (int)m_myBool << endreq;
  info() << "  MyDouble =  " << m_myDouble << endreq;
  
  for (unsigned int i=0; i<m_myStringVec.size(); i++) {
    info() << "  MyStringVec[" << i << "] = " << m_myStringVec[i] 
           << endreq;
  }
  
  {
      map<string,string>::iterator it, done = m_myStringMap.end();
      info () << "MyStringMap: {\n";
      for (it = m_myStringMap.begin(); it != done; ++it) {
          info() << "\t" << it->first << " : " << it->second << ",\n";
      }
      info () << "\t}" << endreq;
  }
  {
      map<string,vector<string> >::iterator it, done = m_myStringVectorMap.end();  
      info () << "MyStringVectorMap: {\n";
      for (it = m_myStringVectorMap.begin(); it != done; ++it) {
          info() << "\t" << it->first << " : [";
          vector<string>& vec = it->second;
          for (size_t ind = 0; ind < vec.size(); ++ind) {
              info() << " " << vec[ind];
          }
          info() << "]\n";
      }
      info () << "\t}" << endreq;
  }
  info() << "  MyIntegerProperty = " << m_participant
         << "  [Bounds are " << m_participant.verifier().lower()
         << " , " << m_participant.verifier().upper() << " ] "
         << endreq;
  
  return StatusCode::SUCCESS;
}
StatusCode DybHelloWorld::execute ( )

Definition at line 67 of file DybHelloWorld.cc.

                                  {
  
  // Part 1: Print where you are
  info() << "DybHelloWorld execute()" << endreq;
  
  // Part 2: Print out the different levels of messages
  verbose() << "A VERBOSE message" << endreq;
  debug() << "A DEBUG message" << endreq;
  info() << "An INFO message" << endreq;
  warning() << "A WARNING message" << endreq;
  error() << "An ERROR message" << endreq;
  fatal() << "A FATAL error message" << endreq;
  always() << "A ALWAYS message" << endreq;  

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

Definition at line 86 of file DybHelloWorld.cc.

                                   {
  
  // Part 1: Print where you are
  info() << "DybHelloWorld finalize()" << endreq;
  
  return StatusCode::SUCCESS;
}

Member Data Documentation

int DybHelloWorld::m_myInt [private]

Definition at line 26 of file DybHelloWorld.h.

bool DybHelloWorld::m_myBool [private]

Definition at line 27 of file DybHelloWorld.h.

double DybHelloWorld::m_myDouble [private]

Definition at line 28 of file DybHelloWorld.h.

std::vector<std::string> DybHelloWorld::m_myStringVec [private]

Definition at line 29 of file DybHelloWorld.h.

IntegerProperty DybHelloWorld::m_participant [private]

Definition at line 30 of file DybHelloWorld.h.

std::map<std::string,std::string> DybHelloWorld::m_myStringMap [private]

Definition at line 31 of file DybHelloWorld.h.

std::map<std::string,std::vector<std::string> > DybHelloWorld::m_myStringVectorMap [private]

Definition at line 32 of file DybHelloWorld.h.

list DybHelloWorld::__all__ [private]
Initial value:
['DybHelloWorldConf','Configure','NonDefaultJom','OptionalJom',
           'PyloWorld']

Definition at line 3 of file __init__.py.


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 09:53:56 for DybHelloWorld by doxygen 1.7.4