Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DetectorDescription
ExprAlgo
interface
ExprEvalSingleton.h
Go to the documentation of this file.
1
#ifndef ExprEvalSingleton_h
2
#define ExprEvalSingleton_h
3
4
#include "
DetectorDescription/Base/interface/Singleton.h
"
5
7
// Choose the Evaluator here:
8
// The concrete evaluator must be a subclass of class ExprEvalInterface, which
9
// defines the interface (which can be used to write Evaluator-implementation-
10
// independent code !
11
#include "
DetectorDescription/ExprAlgo/interface/ClhepEvaluator.h
"
12
typedef
ClhepEvaluator
UseThisEvaluator
;
14
15
16
// full name compatible with the header file name
17
typedef
DDI::Singleton<UseThisEvaluator>
ExprEvalSingleton
;
18
19
// short name
20
typedef
DDI::Singleton<UseThisEvaluator>
ExprEval
;
21
22
24
// usage:
25
//
26
// DDExprEvaluator & eval_sgtn = DDExpreEvalSingleton::instance();
27
// eval_sgtn.set(...) ; and so on ...
28
//
29
// the same singleton can be addressed using:
30
// DDExprEval::instance()
31
//
33
#endif
ClhepEvaluator
Definition:
ClhepEvaluator.h:11
ClhepEvaluator.h
UseThisEvaluator
ClhepEvaluator UseThisEvaluator
Definition:
ExprEvalSingleton.h:12
Singleton.h
ExprEval
DDI::Singleton< UseThisEvaluator > ExprEval
Definition:
ExprEvalSingleton.h:20
DDI::Singleton
Definition:
Singleton.h:6
ExprEvalSingleton
DDI::Singleton< UseThisEvaluator > ExprEvalSingleton
Definition:
ExprEvalSingleton.h:17
Generated for CMSSW Reference Manual by
1.8.5