HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoRunHeader.h
Go to the documentation of this file.
1 #ifndef HARPORUNHEADER_H
2 #define HARPORUNHEADER_H
3 
5 // //
6 // HarpoRunHeader //
7 // //
8 // Description of the run from all row files
9 // //
10 
11 #include "TObject.h"
12 #include "HarpoDetSet.h"
13 #include "HarpoDetHeader.h"
14 #include "HarpoConfig.h"
15 #include "HarpoRunConfig.h"
16 
17 class HarpoRunHeader : public TObject
18 {
19 public:
20 
23 
24  virtual ~HarpoRunHeader();
25 
26  void SetDetHeader(HarpoDetHeader *hdr,UInt_t ndet=XDCC);
27  HarpoDetHeader *GetHeader(UInt_t ndet=XDCC);
28 
29  void SetRun(Int_t value) {fRun = value;}
30  void SetDetMask(ULong_t mask) {fNDet = mask; }
31  void SetSimDataFlag(Bool_t flag=true) {fSimData = flag; }
32 
33  void SetAngle(Int_t value) {fAngle = value;}
34  void SetLaser(Int_t value) {fLaser = value;}
35  void SetTrigger(Int_t value) {fTrigger = value;}
36  void SetIlaser(Float_t value) {fIlaser = value;}
37  void SetEbeam(Float_t value) {fEbeam = value;}
38  void SetEgamma(Float_t value) {fEgamma = value;}
39  void SetPola(Int_t value) {fPola = value;}
40 
41  Int_t GetRun() {return fRun;}
42  ULong_t GetDetMask() {return fNDet;}
43  Bool_t GetSimDataFlag() {return fSimData; }
44  Int_t GetAngle() {return fAngle;}
45  Int_t GetLaser() {return fLaser;}
46  Int_t GetTrigger() {return fTrigger;}
47  Float_t GetIlaser() {return fIlaser;}
48  Float_t GetEbeam() {return fEbeam;}
49  Float_t GetEgamma() {return fEgamma;}
50  Int_t GetPola() {return fPola;}
51 
54  { fRunConfig = rcfg; }
56  { return fRunConfig; }
57 
58  void print();
59 
60 private:
62 
63  Int_t fRun;
64  ULong_t fNDet;
65  Bool_t fSimData;
66 
67  Int_t fAngle;
68  Int_t fLaser;
69  Int_t fTrigger;
70  Float_t fIlaser;
71  Float_t fEbeam;
72  Float_t fEgamma;
73  Int_t fPola;
74 
76 
77  ClassDef(HarpoRunHeader,2) //Run Header
78 
79 };
80 
81 #endif
A class hold HARPO run iformation.
HarpoRunConfig * fRunConfig
HarpoDetHeader * GetHeader(UInt_t ndet=XDCC)
void SetTrigger(Int_t value)
ULong_t GetDetMask()
void SetPola(Int_t value)
Get Run Configuration info by run number. The class query MySQL databe use GetRunConfig Method Only t...
Float_t GetIlaser()
void SetEbeam(Float_t value)
A class hold HARPO run iformation.
virtual ~HarpoRunHeader()
void SetIlaser(Float_t value)
HarpoDetHeader * fHeaders[gkNDetectors]
Int_t fRun
Raw Header list.
Bool_t GetSimDataFlag()
HarpoRunConfig * GetRunConfig()
void SetEgamma(Float_t value)
void SetLaser(Int_t value)
Int_t GetTrigger()
void SetRun(Int_t value)
Float_t GetEgamma()
Unknown Detector.
Definition: HarpoDet.h:18
Float_t GetEbeam()
void SetSimDataFlag(Bool_t flag=true)
const ULong_t gkNDetectors
Definition: HarpoDet.h:14
void SetAngle(Int_t value)
void SetRunConfig(HarpoRunConfig *rcfg)
HarpoRunConfig get/set.
void SetDetHeader(HarpoDetHeader *hdr, UInt_t ndet=XDCC)
void SetDetMask(ULong_t mask)
A class which keeps track of the entire configuration of the analysis.
Definition: HarpoConfig.h:50