FairRoot/PandaRoot
PndRichCalDbData.cxx
Go to the documentation of this file.
1 #include "TArrayF.h"
2 #include "PndRichCalDb.h"
3 #include "PndRichCalDbData.h"
4 
5 
6 
7 // ------------- Default constructor ----------------------------------
9  :fType(1),
10  fPmin(0),
11  fPmax(0),
12  fXmin(0),
13  fXmax(0),
14  fYmin(0),
15  fYmax(0),
16  fTmin(0),
17  fTmax(0),
18  fFmin(0),
19  fFmax(0),
20  fNp(0),
21  fNx(0),
22  fNy(0),
23  fNt(0),
24  fNf(0),
25  fBetaMean(0),
26  fBetaSig(0),
27  fBetaEff(0)
28 {
29 
30 }
31 // ------------------------------------------------------------------------
32 
33 
34 
35 // ------------- Standard constructor ---------------------------------
37  :TNamed(mapName, "PND Rich Cal db"),
38  fPmin(0),
39  fPmax(0),
40  fXmin(0),
41  fXmax(0),
42  fYmin(0),
43  fYmax(0),
44  fTmin(0),
45  fTmax(0),
46  fFmin(0),
47  fFmax(0),
48  fNp(0),
49  fNx(0),
50  fNy(0),
51  fNt(0),
52  fNf(0),
53  fBetaMean(0),
54  fBetaSig(0),
55  fBetaEff(0)
56 {
57 }
58 // ------------------------------------------------------------------------
59 
60 
61 
62 // ----- Constructor from PndRichCalDb ------------------------------
64  const PndRichCalDb& cal)
65  :TNamed(name, "PND Rich Cal db"),
66  fType( cal.GetType()),
67  fPmin( cal.GetPmin()),
68  fPmax( cal.GetPmax()),
69  fXmin( cal.GetXmin()),
70  fXmax( cal.GetXmax()),
71  fYmin( cal.GetYmin()),
72  fYmax( cal.GetYmax()),
73  fTmin( cal.GetTmin()),
74  fTmax( cal.GetTmax()),
75  fFmin( cal.GetFmin()),
76  fFmax( cal.GetFmax()),
77  fNp( cal.GetNp()),
78  fNx( cal.GetNx()),
79  fNy( cal.GetNy()),
80  fNt( cal.GetNt()),
81  fNf( cal.GetNf()),
82  fBetaMean( new TArrayF(*(cal.GetBetaMean()))),
83  fBetaSig( new TArrayF(*(cal.GetBetaSig()))),
84  fBetaEff( new TArrayF(*(cal.GetBetaEff())))
85 {
86 }
87 // ------------------------------------------------------------------------
88 
89 // ----- Copy Constructor from PndRichCalDb ----------------------------
91  :TNamed(L),
92  fType( L.GetType()),
93  fPmin( L.GetPmin()),
94  fPmax( L.GetPmax()),
95  fXmin( L.GetXmin()),
96  fXmax( L.GetXmax()),
97  fYmin( L.GetYmin()),
98  fYmax( L.GetYmax()),
99  fTmin( L.GetTmin()),
100  fTmax( L.GetTmax()),
101  fFmin( L.GetFmin()),
102  fFmax( L.GetFmax()),
103  fNp( L.GetNp()),
104  fNx( L.GetNx()),
105  fNy( L.GetNy()),
106  fNt( L.GetNt()),
107  fNf( L.GetNf()),
108  fBetaMean( new TArrayF(*(L.GetBetaMean()))),
109  fBetaSig( new TArrayF(*(L.GetBetaSig()))),
110  fBetaEff( new TArrayF(*(L.GetBetaEff())))
111 
112 {
113 }
114 // ------------------------------------------------------------------------
115 
116 // ------------ Define size of PndRichCalDbData --------------------------------------------
118  Int_t size = this->Sizeof();
119  size += 6*sizeof(Int_t);
120  size += 10*sizeof(Double_t);
121  size += fBetaMean->GetSize()*sizeof(Float_t);
122  size += fBetaSig->GetSize()*sizeof(Float_t);
123  size += fBetaEff->GetSize()*sizeof(Float_t);
124  return size;
125 }
126 // ------------------------------------------------------------------------
127 
128 // ------------ Destructor --------------------------------------------
130  if ( fBetaMean ) delete fBetaMean;
131  if ( fBetaSig ) delete fBetaSig;
132  if ( fBetaEff ) delete fBetaEff;
133 }
134 // ------------------------------------------------------------------------
135 
136 
Double_t
TString name
ClassImp(PndAnaContFact)