AliPhysics  63d3444 (63d3444)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QARing.h
Go to the documentation of this file.
1 
10 #ifndef QARING_H
11 #define QARING_H
12 #ifndef __CINT__
13 # include "QAStructs.h"
14 #else
15 class RingQuantity;
16 class FitStatus;
17 class Merge;
18 class DataLoss;
19 class Correlation;
20 class TTree;
21 #endif
22 
29 struct QARing
30 {
40  : fD(d), fR(r),
41  fChi2(0),
42  fC(0),
43  fDelta(0),
44  fXi(0),
45  fSigma(0),
46  fFitStatus(0),
47  fMerge(0),
48  fDataLoss(0),
49  fOccupancy(0),
50  fCorrelation(0)
51  {}
55  virtual ~QARing()
56  {
57  if (fChi2) { delete fChi2; fChi2 = 0; }
58  if (fC) { delete fC; fC = 0; }
59  if (fDelta) { delete fDelta; fDelta = 0; }
60  if (fXi) { delete fXi; fXi = 0; }
61  if (fSigma) { delete fSigma; fSigma = 0; }
62  if (fFitStatus) { delete fFitStatus; fFitStatus = 0; }
63  if (fMerge) { delete fMerge; fMerge = 0; }
64  if (fDataLoss) { delete fDataLoss; fDataLoss = 0; }
65  if (fOccupancy) { delete fOccupancy; fOccupancy = 0; }
66  if (fCorrelation) { delete fCorrelation; fCorrelation = 0; }
67  }
76  Bool_t Init(TTree* tree, bool read=false)
77  {
78  if (!read) {
79  fChi2 = RingQuantity::MakeBranch(tree, fD, fR, "chi2");
80  fC = RingQuantity::MakeBranch(tree, fD, fR, "c");
81  fDelta = RingQuantity::MakeBranch(tree, fD, fR, "delta");
82  fXi = RingQuantity::MakeBranch(tree, fD, fR, "xi");
83  fSigma = RingQuantity::MakeBranch(tree, fD, fR, "sigma");
85  fMerge = Merge::MakeBranch(tree, fD, fR);
87  fOccupancy = RingQuantity::MakeBranch(tree, fD, fR, "occupancy");
89  return true;
90  }
91  fChi2 = RingQuantity::SetBranch(tree, fD, fR, "chi2");
92  fC = RingQuantity::SetBranch(tree, fD, fR, "c");
93  fDelta = RingQuantity::SetBranch(tree, fD, fR, "delta");
94  fXi = RingQuantity::SetBranch(tree, fD, fR, "xi");
95  fSigma = RingQuantity::SetBranch(tree, fD, fR, "sigma");
97  fMerge = Merge::SetBranch(tree, fD, fR);
99  fOccupancy = RingQuantity::SetBranch(tree, fD, fR, "occupancy");
101  return true;
102  }
103  UShort_t fD; // Detector number
104  Char_t fR; // Ring identifier
105  RingQuantity* fChi2; // ELoss reduced chi-square
106  RingQuantity* fC; // ELoss constant
107  RingQuantity* fDelta; // ELoss most probably value
108  RingQuantity* fXi; // ELoss Landau width
109  RingQuantity* fSigma; // ELoss Gaus width
110  FitStatus* fFitStatus; // ELoss fit status
111  Merge* fMerge; // Merging parameters
112  DataLoss* fDataLoss; // Hit 'loss' summary
113  RingQuantity* fOccupancy; // Mean occupancy
114  Correlation* fCorrelation; // ELoss vs Poisson correlation
115 };
116 
117 #endif // QARING_H
118 // Local Variables:
119 // mode: C++
120 // End:
FitStatus * fFitStatus
Definition: QARing.h:110
DataLoss * fDataLoss
Definition: QARing.h:112
static FitStatus * MakeBranch(TTree *tree, UShort_t d, Char_t r)
Definition: QAStructs.h:206
char Char_t
Definition: External.C:18
RingQuantity * fXi
Definition: QARing.h:108
static Correlation * SetBranch(TTree *tree, UShort_t d, Char_t r)
Definition: QAStructs.h:416
static Merge * MakeBranch(TTree *tree, UShort_t d, Char_t r)
Definition: QAStructs.h:270
virtual ~QARing()
Definition: QARing.h:55
static RingQuantity * SetBranch(TTree *tree, UShort_t d, Char_t r, const char *name)
Definition: QAStructs.h:119
Char_t fR
Definition: QARing.h:104
Bool_t Init(TTree *tree, bool read=false)
Definition: QARing.h:76
UShort_t fD
Definition: QARing.h:103
RingQuantity * fDelta
Definition: QARing.h:107
static Merge * SetBranch(TTree *tree, UShort_t d, Char_t r)
Definition: QAStructs.h:288
static DataLoss * MakeBranch(TTree *tree, UShort_t d, Char_t r)
Definition: QAStructs.h:332
QARing(UShort_t d, Char_t r)
Definition: QARing.h:39
RingQuantity * fOccupancy
Definition: QARing.h:113
static Correlation * MakeBranch(TTree *tree, UShort_t d, Char_t r)
Definition: QAStructs.h:397
RingQuantity * fChi2
Definition: QARing.h:105
RingQuantity * fSigma
Definition: QARing.h:109
static FitStatus * SetBranch(TTree *tree, UShort_t d, Char_t r)
Definition: QAStructs.h:225
Data structures used in QA trending tree.
Merge * fMerge
Definition: QARing.h:111
unsigned short UShort_t
Definition: External.C:28
bool Bool_t
Definition: External.C:53
Definition: QARing.h:29
static RingQuantity * MakeBranch(TTree *tree, UShort_t d, Char_t r, const char *name)
Definition: QAStructs.h:98
static DataLoss * SetBranch(TTree *tree, UShort_t d, Char_t r)
Definition: QAStructs.h:350
RingQuantity * fC
Definition: QARing.h:106
Correlation * fCorrelation
Definition: QARing.h:114