All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PropertyAlg.cpp
Go to the documentation of this file.
1 // Include files
7 #include "GaudiKernel/SmartIF.h"
8 #include "PropertyAlg.h"
9 
10 
11 // Static Factory declaration
13 
14 // Constructor
15 //------------------------------------------------------------------------------
16 PropertyAlg::PropertyAlg(const std::string& name, ISvcLocator* ploc)
17  : Algorithm(name, ploc) {
18 //------------------------------------------------------------------------------
19  // Declare the algorithm's properties
20 
21  declareProperty( "Bool", m_bool = true);
22  declareProperty( "Char", m_char = 100);
23  declareProperty( "Uchar", m_uchar = 100);
24  declareProperty( "Schar", m_schar = 100);
25  declareProperty( "Short", m_short = 100);
26  declareProperty( "Ushort", m_ushort = 100);
27  declareProperty( "Int", m_int = 100);
28  declareProperty( "Uint", m_uint = 100);
29  declareProperty( "Long", m_long = 100L);
30  declareProperty( "Ulong", m_ulong = 100L);
31  declareProperty( "Longlong", m_longlong = 100LL);
32  declareProperty( "Ulonglong", m_ulonglong = 100LL);
33  declareProperty( "Float", m_float = 100.0F);
34  declareProperty( "Double", m_double = 100.);
35  declareProperty( "String", m_string = "hundred");
36 
37  declareProperty( "BoolArray", m_boolarray );
38  declareProperty( "CharArray", m_chararray );
39  declareProperty( "UcharArray", m_uchararray );
40  declareProperty( "ScharArray", m_schararray );
41  declareProperty( "ShortArray", m_shortarray );
42  declareProperty( "UshortArray", m_ushortarray );
43  declareProperty( "IntArray", m_intarray );
44  declareProperty( "UintArray", m_uintarray );
45  declareProperty( "LongArray", m_longarray );
46  declareProperty( "UlongArray", m_ulongarray );
47  declareProperty( "LonglongArray", m_longlongarray );
48  declareProperty( "UlonglongArray", m_ulonglongarray );
49  declareProperty( "FloatArray", m_floatarray );
50  declareProperty( "DoubleArray", m_doublearray );
51  declareProperty( "StringArray", m_stringarray );
52 
53 }
54 
55 
56 
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:26
#define DECLARE_COMPONENT(type)
Definition: PluginService.h:35
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:61
std
AIDA -> ROTO converter.
Definition: GaudiAlgs.py:73
Trivial Algorithm for tutotial purposes.
Definition: PropertyAlg.h:15