pxar
 All Classes Namespaces Functions Variables Typedefs Friends
PixSetup.hh
1 #ifndef PIXSETUP_H
2 #define PIXSETUP_H
3 
4 #include <string>
5 #include <map>
6 
7 #include "api.h"
8 
9 #include "PixTestParameters.hh"
10 #include "ConfigParameters.hh"
11 #include "PixMonitor.hh"
12 
13 class DLLEXPORT PixSetup {
14 public:
16  PixSetup(std::string verbosity, PixTestParameters *, ConfigParameters *);
17  PixSetup();
18  ~PixSetup();
19  void init();
20 
21  PixTestParameters* getPixTestParameters() {return fPixTestParameters;}
22  ConfigParameters * getConfigParameters() {return fConfigParameters;}
23  pxar::pxarCore* getApi() {return fApi;}
24  PixMonitor* getPixMonitor() {return fPixMonitor;}
25  bool doAnalysisOnly() {return fDoAnalysisOnly;}
26  void setDoAnalysisOnly(bool x) {fDoAnalysisOnly = x;}
27  bool useRootLogon() {return fUseRootLogon;}
28  void setUseRootLogon(bool x) {fUseRootLogon = x;}
29  void killApi();
30  void setRootFileUpdate(bool x) {fDoUpdateRootFile = x;}
31  bool doRootFileUpdate() {return fDoUpdateRootFile;}
32 
33  void writeDacParameterFiles();
34  void writeTrimFiles();
35  void writeTbmParameterFiles();
36 
37 
38  void *fPxarMemory, *fPxarMemHi;
39 private:
40  bool fDoUpdateRootFile;
41  bool fDoAnalysisOnly;
42  bool fUseRootLogon;
43 
44  pxar::pxarCore *fApi;
45  PixTestParameters *fPixTestParameters;
46  ConfigParameters *fConfigParameters;
47  PixMonitor *fPixMonitor;
48 
49 };
50 
51 #endif
52