EIC Software
 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 
13 {
14 
15  public:
16  static FairFieldFactory* Instance();
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:
31 
32  ClassDef(FairFieldFactory,1)
33  private:
35  FairFieldFactory& operator= (const FairFieldFactory&) {return *this;}
36 
37 };
38 #endif //FAIRFIELDFACTORY_H
39 
40 
41 
42 
43 
44 
45