Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:18:57

0001 #ifndef SETUP_H
0002 #define SETUP_H
0003 
0004 #include <cstddef>
0005 #include <TObject.h>
0006 
0007 class Setup{
0008  public:
0009   Setup(const Setup &)=delete;
0010   Setup& operator=(const Setup&) = delete;
0011   
0012   static Setup* getInstance(){
0013     if(instance==NULL) instance=new Setup();
0014     return instance;
0015   }
0016 
0017   void set(double q, double w){
0018     a=q;
0019     b=w;
0020   }
0021   void setPed(double p){
0022     c=p;
0023   }
0024   double get1();
0025   double get2();
0026   double getP();
0027   
0028  private:
0029   static Setup* instance;
0030   double a;
0031   double b;
0032   double c;
0033   Setup(){}
0034   ~Setup() {}
0035   ClassDef(Setup,1)
0036 };
0037 
0038 
0039 
0040 
0041 #endif