QwAnalysis
QwRunCondition.h
Go to the documentation of this file.
1 #ifndef __QwRunCondition__
2 #define __QwRunCondition__
3 /**
4  * \file QwRunCondition.h
5  * \brief
6  * \author jhlee@jlab.org
7  * \date Thursday, September 9 21:42:30 EDT 2010
8  */
9 
10 
11 #include <unistd.h>
12 #include <iostream>
13 #include <fstream>
14 
15 #include "TROOT.h"
16 #include "TList.h"
17 #include "TString.h"
18 #include "TObjString.h"
19 #include "TTimeStamp.h"
20 
22 {
23 
24  public:
26  QwRunCondition(Int_t argc, Char_t* argv[], TString name);
27  virtual ~QwRunCondition();
28 
29  TList* Get();
30  TString GetName();
31 
32  void SetROCFlagsFileName(const TString in) {fROCFlagFileName = in;};
33 
34 
35 
36  private:
37 
38  void SetArgs(Int_t argc, Char_t* argv[]);
39  void SetName(const TString name);
40  void Add(TString in);
41 
42  TString GetROCFlags();
43 
45 
47  static const Int_t fCharLength;
48 
49  // Do not let compiler generate these automatically
50  QwRunCondition(const QwRunCondition& rhs); // copy constructor
51  QwRunCondition& operator = (const QwRunCondition& rhs); // assignment operator
52  QwRunCondition* operator&(); // address-of operator
53  const QwRunCondition* operator&() const; // address-of operator
54 
55 };
56 
57 
58 // How to access fRunConditionList
59 // TList *list = (TList*) file->FindObjectAny(fRunConditoinList name);
60 // for example,
61 //
62 // TFile *file = TFile::Open("Qweak_5150.root")
63 // TList *list = (TList*) file->FindObjectAny("5150_condition");
64 // if(list) {
65 // std::cout << list->Print() << std::endl;
66 // std::cout << list->GetEntries() << std::endl;
67 // std::cout << list->GetSize() << std::endl;
68 // std::cout << list->GetName() << std::endl;
69 // for(Int_t i=0; i < list->GetSize(); i++) {
70 // std::cout << list->At(i)->GetName() << std::endl;
71 // }
72 // }
73 
74 #endif
QwRunCondition & operator=(const QwRunCondition &rhs)
void SetROCFlagsFileName(const TString in)
TString GetROCFlags()
QwRunCondition * operator&()
virtual ~QwRunCondition()
static const double in
Definition: QwUnits.h:66
void Add(TString in)
TString fROCFlagFileName
void SetArgs(Int_t argc, Char_t *argv[])
void SetName(const TString name)
TList * fRunConditionList
static const Int_t fCharLength