EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
FairFieldFactory.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairFieldFactory.h
1
// -------------------------------------------------------------------------
2
// ----- FairFieldFactory header file -----
3
// ----- Created 15/01/07 by M. Al-Turany -----
4
// -------------------------------------------------------------------------
5
6
7
#ifndef FAIRFIELDFACTORY_H
8
#define FAIRFIELDFACTORY_H
9
10
#include "
FairField.h
"
11
12
class
FairFieldFactory
13
{
14
15
public
:
16
static
FairFieldFactory
*
Instance
();
17
FairFieldFactory
();
18
virtual
~FairFieldFactory
();
19
virtual
FairField*
createFairField
() {
20
FairField* field=0;
21
if
(
fCreator
) { field=
fCreator
->
createFairField
(); }
22
return
field;
23
};
24
virtual
void
SetParm
() {
25
if
(
fCreator
) {
fCreator
->
SetParm
(); }
26
}
27
28
protected
:
29
FairFieldFactory
*
fCreator
;
30
static
FairFieldFactory
*
fgRinstance
;
31
32
ClassDef(
FairFieldFactory
,1)
33
private:
34
FairFieldFactory
(const
FairFieldFactory
&
M
);
35
FairFieldFactory
& operator= (const
FairFieldFactory
&) {
return
*
this
;}
36
37
};
38
#endif //FAIRFIELDFACTORY_H
39
40
41
42
43
44
45
EicRoot
blob
master
base
FairFieldFactory.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:32
using
1.8.2 with
EIC GitHub integration