FairRoot/PandaRoot
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PndRichCalDbPar Class Reference

#include <PndRichCalDbPar.h>

Inheritance diagram for PndRichCalDbPar:

Public Member Functions

 PndRichCalDbPar (const char *name, const char *title, const char *context)
 
 PndRichCalDbPar ()
 
 ~PndRichCalDbPar ()
 
virtual void putParams (FairParamList *list)
 
virtual Bool_t getParams (FairParamList *list)
 
void SetParameters (FairField *field)
 
Int_t GetType () const
 
Double_t GetPmin () const
 
Double_t GetXmin () const
 
Double_t GetYmin () const
 
Double_t GetTmin () const
 
Double_t GetFmin () const
 
Double_t GetPmax () const
 
Double_t GetXmax () const
 
Double_t GetYmax () const
 
Double_t GetTmax () const
 
Double_t GetFmax () const
 
Double_t GetBetaMean () const
 
Double_t GetBetaSig () const
 
Double_t GetBetaEff () const
 
void MapName (TString &name)
 

Private Member Functions

 ClassDef (PndRichCalDbPar, 1)
 

Private Attributes

Int_t fType
 
Double_t fPmin
 
Double_t fPmax
 
Double_t fXmin
 
Double_t fXmax
 
Double_t fYmin
 
Double_t fYmax
 
Double_t fTmin
 
Double_t fTmax
 
Double_t fFmin
 
Double_t fFmax
 
Double_t fBetaMean
 
Double_t fBetaSig
 
Double_t fBetaEff
 
TString fMapName
 

Detailed Description

Definition at line 14 of file PndRichCalDbPar.h.

Constructor & Destructor Documentation

PndRichCalDbPar::PndRichCalDbPar ( const char *  name,
const char *  title,
const char *  context 
)

Standard constructor

Definition at line 12 of file PndRichCalDbPar.cxx.

14  : FairParGenericSet(name, title, context),
15  fType(-1),
16  fPmin(0),
17  fPmax(0),
18  fXmin(0),
19  fXmax(0),
20  fYmin(0),
21  fYmax(0),
22  fTmin(0),
23  fTmax(0),
24  fFmin(0),
25  fFmax(0),
26  fBetaMean(0),
27  fBetaSig(0),
28  fBetaEff(0) ,
29  fMapName(TString(""))
30 
31 {
32 }
TString name
PndRichCalDbPar::PndRichCalDbPar ( )

default constructor

Definition at line 35 of file PndRichCalDbPar.cxx.

36  : fType(-1),
37  fPmin(0),
38  fPmax(0),
39  fXmin(0),
40  fXmax(0),
41  fYmin(0),
42  fYmax(0),
43  fTmin(0),
44  fTmax(0),
45  fFmin(0),
46  fFmax(0),
47  fBetaMean(0),
48  fBetaSig(0),
49  fBetaEff(0),
50  fMapName(TString(""))
51 {
52 }
PndRichCalDbPar::~PndRichCalDbPar ( )

Destructor

Definition at line 56 of file PndRichCalDbPar.cxx.

56 { }

Member Function Documentation

PndRichCalDbPar::ClassDef ( PndRichCalDbPar  ,
 
)
private
Double_t PndRichCalDbPar::GetBetaEff ( ) const
inline

Definition at line 50 of file PndRichCalDbPar.h.

References fBetaEff.

50 { return fBetaEff; }
Double_t PndRichCalDbPar::GetBetaMean ( ) const
inline

Definition at line 48 of file PndRichCalDbPar.h.

References fBetaMean.

48 { return fBetaMean; }
Double_t PndRichCalDbPar::GetBetaSig ( ) const
inline

Definition at line 49 of file PndRichCalDbPar.h.

References fBetaSig.

49 { return fBetaSig; }
Double_t PndRichCalDbPar::GetFmax ( ) const
inline

Definition at line 47 of file PndRichCalDbPar.h.

References fFmax.

47 { return fFmax; }
Double_t PndRichCalDbPar::GetFmin ( ) const
inline

Definition at line 42 of file PndRichCalDbPar.h.

References fFmin.

42 { return fFmin; }
Bool_t PndRichCalDbPar::getParams ( FairParamList *  list)
virtual

Get parameters

Definition at line 90 of file PndRichCalDbPar.cxx.

References fBetaEff, fBetaMean, fBetaSig, fFmax, fFmin, fPmax, fPmin, fTmax, fTmin, fType, fXmax, fXmin, fYmax, and fYmin.

90  {
91 
92  if ( ! list ) return kFALSE;
93 
94  if ( ! list->fill("Cal db Type", &fType) ) return kFALSE;
95 
96  if ( fType == 0 ) { // constant field
97  if ( ! list->fill("Cal db min p", &fPmin) ) return kFALSE;
98  if ( ! list->fill("Cal db max p", &fPmax) ) return kFALSE;
99  if ( ! list->fill("Cal db min x", &fXmin) ) return kFALSE;
100  if ( ! list->fill("Cal db max x", &fXmax) ) return kFALSE;
101  if ( ! list->fill("Cal db min y", &fYmin) ) return kFALSE;
102  if ( ! list->fill("Cal db max y", &fYmax) ) return kFALSE;
103  if ( ! list->fill("Cal db min t", &fTmin) ) return kFALSE;
104  if ( ! list->fill("Cal db max t", &fTmax) ) return kFALSE;
105  if ( ! list->fill("Cal db min f", &fFmin) ) return kFALSE;
106  if ( ! list->fill("Cal db max f", &fFmax) ) return kFALSE;
107  if ( ! list->fill("Cal db BetaMean", &fBetaMean) ) return kFALSE;
108  if ( ! list->fill("Cal db BetaSig", &fBetaSig) ) return kFALSE;
109  if ( ! list->fill("Cal db BetaEff", &fBetaEff) ) return kFALSE;
110  }
111 
112  return kTRUE;
113 
114 }
Double_t PndRichCalDbPar::GetPmax ( ) const
inline

Definition at line 43 of file PndRichCalDbPar.h.

References fPmax.

43 { return fPmax; }
Double_t PndRichCalDbPar::GetPmin ( ) const
inline

Definition at line 38 of file PndRichCalDbPar.h.

References fPmin.

38 { return fPmin; }
Double_t PndRichCalDbPar::GetTmax ( ) const
inline

Definition at line 46 of file PndRichCalDbPar.h.

References fTmax.

46 { return fTmax; }
Double_t PndRichCalDbPar::GetTmin ( ) const
inline

Definition at line 41 of file PndRichCalDbPar.h.

References fTmin.

41 { return fTmin; }
Int_t PndRichCalDbPar::GetType ( ) const
inline

Accessors

Definition at line 37 of file PndRichCalDbPar.h.

References fType.

Referenced by PndRichCalDb::PndRichCalDb().

37 { return fType; }
Double_t PndRichCalDbPar::GetXmax ( ) const
inline

Definition at line 44 of file PndRichCalDbPar.h.

References fXmax.

44 { return fXmax; }
Double_t PndRichCalDbPar::GetXmin ( ) const
inline

Definition at line 39 of file PndRichCalDbPar.h.

References fXmin.

39 { return fXmin; }
Double_t PndRichCalDbPar::GetYmax ( ) const
inline

Definition at line 45 of file PndRichCalDbPar.h.

References fYmax.

45 { return fYmax; }
Double_t PndRichCalDbPar::GetYmin ( ) const
inline

Definition at line 40 of file PndRichCalDbPar.h.

References fYmin.

40 { return fYmin; }
void PndRichCalDbPar::MapName ( TString name)
inline

Definition at line 51 of file PndRichCalDbPar.h.

References fMapName.

Referenced by PndRichCalDb::PndRichCalDb().

51 { name = fMapName; }
TString name
void PndRichCalDbPar::putParams ( FairParamList *  list)
virtual

Put parameters

Definition at line 62 of file PndRichCalDbPar.cxx.

References fBetaEff, fBetaMean, fBetaSig, fFmax, fFmin, fPmax, fPmin, fTmax, fTmin, fType, fXmax, fXmin, fYmax, and fYmin.

62  {
63 
64  if ( ! list ) return;
65 
66  list->add("Field Type", fType);
67 
68  if ( fType == 0 ) { // constant field
69  list->add("Cal db min p", fPmin);
70  list->add("Cal db max p", fPmax);
71  list->add("Cal db min x", fXmin);
72  list->add("Cal db max x", fXmax);
73  list->add("Cal db min y", fYmin);
74  list->add("Cal db max y", fYmax);
75  list->add("Cal db min t", fTmin);
76  list->add("Cal db max t", fTmax);
77  list->add("Cal db min f", fFmin);
78  list->add("Cal db max f", fFmax);
79  list->add("Cal db BetaMean", fBetaMean);
80  list->add("Cal db BetaSig", fBetaSig);
81  list->add("Cal db BetaEff", fBetaEff);
82  }
83 
84 }
void PndRichCalDbPar::SetParameters ( FairField *  field)

Set parameters from FairField

Definition at line 120 of file PndRichCalDbPar.cxx.

References fType.

120  {
121 
122  if ( ! field ) {
123  cerr << "-W- PndRichCalDbPar::SetParameters: Empty field pointer!" << endl;
124  return;
125  }
126 
127  fType = field->GetType();
128 /*
129  if ( fType == 0 ) { // constant field
130  PndConstField* fieldConst = (PndConstField*) field;
131  fBx = fieldConst->GetBx();
132  fBy = fieldConst->GetBy();
133  fBz = fieldConst->GetBz();
134  fXmin = fieldConst->GetXmin();
135  fXmax = fieldConst->GetXmax();
136  fYmin = fieldConst->GetYmin();
137  fYmax = fieldConst->GetYmax();
138  fZmin = fieldConst->GetZmin();
139  fZmax = fieldConst->GetZmax();
140  fMapName = "";
141  fPosX = fPosY = fPosZ = fScale = 0.;
142  }
143 
144  else if ( fType >=1 && fType <= 4 ) { // field map
145  PndRichCalDb* fieldMap = (PndRichCalDb*) field;
146  fBx = fBy = fBz = 0.;
147  fXmin = fXmax = fYmin = fYmax = fZmin = fZmax = 0.;
148 
149  fMapName = field->GetName();
150  fPosX = fieldMap->GetPositionX();
151  fPosY = fieldMap->GetPositionY();
152  fPosZ = fieldMap->GetPositionZ();
153  fScale = fieldMap->GetScale();
154  } else if (fType ==5) {
155 
156  PndMultiField *fMulti=(PndMultiField *)field;
157  TObjArray *fieldlist = fMulti->GetFieldList();
158  TIterator* FieldIter = fieldlist->MakeIterator();
159  FieldIter->Reset();
160  FairField *fi=0;
161  while( (fi = (FairField*)FieldIter->Next() ) ) {
162  SetParameters(fi);
163  }
164 
165  delete FieldIter;
166  }else {
167  cerr << "-W- PndRichCalDbPar::SetParameters: Unknown field type "
168  << fType << "!" << endl;
169  fBx = fBy = fBz = 0.;
170  fXmin = fXmax = fYmin = fYmax = fZmin = fZmax = 0.;
171  fMapName = "";
172  fPosX = fPosY = fPosZ = fScale = 0.;
173  }
174 */
175  return;
176 
177 }

Member Data Documentation

Double_t PndRichCalDbPar::fBetaEff
private

Definition at line 71 of file PndRichCalDbPar.h.

Referenced by GetBetaEff(), getParams(), and putParams().

Double_t PndRichCalDbPar::fBetaMean
private

Field values in case of constant field [kG]

Definition at line 71 of file PndRichCalDbPar.h.

Referenced by GetBetaMean(), getParams(), and putParams().

Double_t PndRichCalDbPar::fBetaSig
private

Definition at line 71 of file PndRichCalDbPar.h.

Referenced by GetBetaSig(), getParams(), and putParams().

Double_t PndRichCalDbPar::fFmax
private

Definition at line 68 of file PndRichCalDbPar.h.

Referenced by GetFmax(), getParams(), and putParams().

Double_t PndRichCalDbPar::fFmin
private

Definition at line 68 of file PndRichCalDbPar.h.

Referenced by GetFmin(), getParams(), and putParams().

TString PndRichCalDbPar::fMapName
private

Field map name in case of field map

Definition at line 74 of file PndRichCalDbPar.h.

Referenced by MapName().

Double_t PndRichCalDbPar::fPmax
private

Definition at line 64 of file PndRichCalDbPar.h.

Referenced by getParams(), GetPmax(), and putParams().

Double_t PndRichCalDbPar::fPmin
private

Field limits in case of constant field

Definition at line 64 of file PndRichCalDbPar.h.

Referenced by getParams(), GetPmin(), and putParams().

Double_t PndRichCalDbPar::fTmax
private

Definition at line 67 of file PndRichCalDbPar.h.

Referenced by getParams(), GetTmax(), and putParams().

Double_t PndRichCalDbPar::fTmin
private

Definition at line 67 of file PndRichCalDbPar.h.

Referenced by getParams(), GetTmin(), and putParams().

Int_t PndRichCalDbPar::fType
private

Field type 0 = constant field 1 = field map 2 = field map sym2 (symmetries in x and y) 3 = field map sym3 (symmetries in x, y and z)

Definition at line 61 of file PndRichCalDbPar.h.

Referenced by getParams(), GetType(), putParams(), and SetParameters().

Double_t PndRichCalDbPar::fXmax
private

Definition at line 65 of file PndRichCalDbPar.h.

Referenced by getParams(), GetXmax(), and putParams().

Double_t PndRichCalDbPar::fXmin
private

Definition at line 65 of file PndRichCalDbPar.h.

Referenced by getParams(), GetXmin(), and putParams().

Double_t PndRichCalDbPar::fYmax
private

Definition at line 66 of file PndRichCalDbPar.h.

Referenced by getParams(), GetYmax(), and putParams().

Double_t PndRichCalDbPar::fYmin
private

Definition at line 66 of file PndRichCalDbPar.h.

Referenced by getParams(), GetYmin(), and putParams().


The documentation for this class was generated from the following files: