Gaudi Framework, version v24r2
Home
Generated: Wed Dec 4 2013
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
PartPropSvc
src
PartPropSvc.h
Go to the documentation of this file.
1
#ifndef __PARTPROPSVC_H__
2
#define __PARTPROPSVC_H__
3
4
#include "
GaudiKernel/Service.h
"
5
#include "
GaudiKernel/IPartPropSvc.h
"
6
#include "HepPDT/ParticleDataTable.hh"
7
#include "HepPDT/TableBuilder.hh"
8
9
#include <
vector
>
10
#include <
string
>
11
#include <
utility
>
12
#include <
iostream
>
13
14
// Forward declarations
15
template
<
class
TYPE>
class
SvcFactory
;
16
17
//------------------------------------------------------------------
18
//
19
// ClassName: PartPropSvc
20
//
21
// Description: This service provides access to particle properties.
22
// Uses HepPDT as the underlying layer
23
//
24
// Author: Charles Leggett
25
//
26
// Date: 3-8-2001
27
//
28
//------------------------------------------------------------------
29
30
class
PartPropSvc
:
public
extends1
<Service, IPartPropSvc> {
31
32
public
:
33
34
virtual
StatusCode
initialize
();
35
virtual
StatusCode
reinitialize
();
36
virtual
StatusCode
finalize
();
37
38
// The table
39
HepPDT::ParticleDataTable *
PDT
();
40
41
void
setUnknownParticleHandler
( HepPDT::ProcessUnknownID*,
42
const
std::string
&);
43
protected
:
44
45
PartPropSvc
(
const
std::string
&
name
,
ISvcLocator
* svc );
46
47
// Destructor.
48
virtual
~PartPropSvc
();
49
50
private
:
51
52
// Allow SvcFactory to instantiate the service.
53
friend
class
SvcFactory
<
PartPropSvc
>;
54
55
StatusCode
createTable
();
56
std::vector
<
std::pair
<
std::string
,
57
bool(*) (
std::istream
&,HepPDT::TableBuilder&)> >
m_inputs
;
58
59
StringProperty
m_pdtFiles
;
60
HepPDT::ProcessUnknownID*
m_upid
;
61
std::string
m_upid_name
;
62
63
HepPDT::ParticleDataTable *
m_pdt
;
64
65
bool (*
parseTableType
(
std::string
&))(
std::istream
&, HepPDT::TableBuilder&);
66
67
mutable
MsgStream
m_log
;
68
69
bool
m_upid_local
;
70
71
72
};
73
74
#endif
Generated at Wed Dec 4 2013 14:33:12 for Gaudi Framework, version v24r2 by
Doxygen
version 1.8.2 written by
Dimitri van Heesch
, © 1997-2004