FairRoot/PandaRoot
|
#include <PndRichCalDb.h>
Public Member Functions | |
PndRichCalDb () | |
PndRichCalDb (const char *mapName, const char *fileType="R") | |
PndRichCalDb (PndRichCalDbPar *CaldbPar) | |
virtual | ~PndRichCalDb () |
virtual void | Init () |
virtual Double_t | GetBetaMean (dbpoint pnt) |
virtual Double_t | GetBetaSig (dbpoint pnt) |
virtual Double_t | GetBetaEff (dbpoint pnt) |
virtual Bool_t | IsInside (Double_t p, Double_t x, Double_t y, Double_t t, Double_t f, Int_t &ip, Int_t &ix, Int_t &iy, Int_t &it, Int_t &iq, Double_t &dp, Double_t &dx, Double_t &dy, Double_t &dt, Double_t &df) |
void | WriteAsciiFile (const char *fileName) |
void | WriteRootFile (const char *fileName, const char *mapName) |
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 | GetPstep () const |
Double_t | GetXstep () const |
Double_t | GetYstep () const |
Double_t | GetTstep () const |
Double_t | GetFstep () const |
Int_t | GetNp () const |
Int_t | GetNx () const |
Int_t | GetNy () const |
Int_t | GetNt () const |
Int_t | GetNf () const |
TArrayF * | GetBetaMean () const |
TArrayF * | GetBetaSig () const |
TArrayF * | GetBetaEff () const |
const char * | GetFileName () |
virtual void | Print () |
Protected Member Functions | |
void | Reset () |
void | ReadAsciiFile (const char *fileName) |
void | ReadRootFile (const char *fileName, const char *mapName) |
void | SetCalDb (const PndRichCalDbData *data) |
Protected Attributes | |
TString | fFileName |
Double_t | fPmin |
Double_t | fPmax |
Double_t | fPstep |
Double_t | fXmin |
Double_t | fXmax |
Double_t | fXstep |
Double_t | fYmin |
Double_t | fYmax |
Double_t | fYstep |
Double_t | fTmin |
Double_t | fTmax |
Double_t | fTstep |
Double_t | fFmin |
Double_t | fFmax |
Double_t | fFstep |
Int_t | fNp |
Int_t | fNx |
Int_t | fNy |
Int_t | fNt |
Int_t | fNf |
TArrayF * | fBetaMean |
TArrayF * | fBetaSig |
TArrayF * | fBetaEff |
Private Member Functions | |
PndRichCalDb (const PndRichCalDb &L) | |
PndRichCalDb & | operator= (const PndRichCalDb &) |
Definition at line 31 of file PndRichCalDb.h.
PndRichCalDb::PndRichCalDb | ( | ) |
Default constructor
Definition at line 24 of file PndRichCalDb.cxx.
References fBetaEff, fBetaMean, fBetaSig, fFmax, fFmin, fFstep, fNf, fNp, fNt, fNx, fNy, fPmax, fPmin, fPstep, fTmax, fTmin, fTstep, fXmax, fXmin, fXstep, fYmax, fYmin, fYstep, and SetName.
PndRichCalDb::PndRichCalDb | ( | const char * | mapName, |
const char * | fileType = "R" |
||
) |
Standard constructor
name | Name of field map |
fileType | R = ROOT file, A = ASCII |
Definition at line 54 of file PndRichCalDb.cxx.
References fFileName, SetName, and TString.
PndRichCalDb::PndRichCalDb | ( | PndRichCalDbPar * | CaldbPar | ) |
Constructor from PndRichCalDbPar
Definition at line 77 of file PndRichCalDb.cxx.
References fFileName, PndRichCalDbPar::GetType(), PndRichCalDbPar::MapName(), SetName, and TString.
|
virtual |
Destructor
Definition at line 124 of file PndRichCalDb.cxx.
References fBetaEff, fBetaMean, and fBetaSig.
|
private |
Definition at line 106 of file PndRichCalDb.cxx.
Definition at line 276 of file PndRichCalDb.cxx.
References dbpoint::beta, bp, Double_t, dx, dy, f, fBetaEff, fNf, fNt, fNx, fNy, IsInside(), p, dbpoint::phi, t, dbpoint::theta, dbpoint::x, x, dbpoint::y, and y.
Referenced by PndRichResolution::Efficiency().
|
inline |
Get the field components at a certain point
x,y,z | Point coordinates (global) [cm] Bx,By,Bz Field components [kG] |
Definition at line 147 of file PndRichCalDb.cxx.
References dbpoint::beta, bp, Double_t, dx, dy, f, fBetaMean, fNf, fNt, fNx, fNy, IsInside(), p, dbpoint::phi, t, dbpoint::theta, dbpoint::x, x, dbpoint::y, and y.
Referenced by PndRichResolution::Shift().
|
inline |
Accessors to the field value arrays
Definition at line 111 of file PndRichCalDb.h.
References fBetaMean.
Definition at line 212 of file PndRichCalDb.cxx.
References dbpoint::beta, bp, Double_t, dx, dy, f, fBetaSig, fNf, fNt, fNx, fNy, IsInside(), p, dbpoint::phi, t, dbpoint::theta, dbpoint::x, x, dbpoint::y, and y.
Referenced by PndRichResolution::Sigma().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Accessors to field parameters in local coordinate system
Definition at line 88 of file PndRichCalDb.h.
References fPmin.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
Initialisation (read map from file)
Definition at line 134 of file PndRichCalDb.cxx.
References fFileName, ReadAsciiFile(), and ReadRootFile().
Referenced by PndRichResolution::PndRichResolution().
|
virtual |
Determine whether a point is inside the field map
x,y,z | Point coordinates (global) [cm] |
ix,iy,iz | (return) Grid cell |
dx,dy,dz | (return) Distance from grid point [cm] if inside kTRUE if inside map, else kFALSE |
Definition at line 342 of file PndRichCalDb.cxx.
References Double_t, fFmax, fFmin, fFstep, fPmax, fPmin, fPstep, fTmax, fTmin, fTstep, fXmin, fXstep, fYmax, fYmin, and fYstep.
Referenced by GetBetaEff(), GetBetaMean(), and GetBetaSig().
|
inlineprivate |
Definition at line 125 of file PndRichCalDb.h.
|
virtual |
|
protected |
Read the field map from an ASCII file
Definition at line 516 of file PndRichCalDb.cxx.
References Double_t, fBetaEff, fBetaMean, fBetaSig, fFmax, fFmin, fFstep, fNf, fNp, fNt, fNx, fNy, fPmax, fPmin, fPstep, fTmax, fTmin, fTstep, fXmax, fXmin, fXstep, fYmax, fYmin, fYstep, m, and s.
Referenced by Init().
|
protected |
Read field map from a ROOT file
Definition at line 604 of file PndRichCalDb.cxx.
References exit(), file, and SetCalDb().
Referenced by Init().
|
protected |
|
protected |
Set field parameters and data
Definition at line 641 of file PndRichCalDb.cxx.
References Double_t, fBetaEff, fBetaMean, fBetaSig, fFmax, fFmin, fFstep, fNf, fNp, fNt, fNx, fNy, fPmax, fPmin, fPstep, fTmax, fTmin, fTstep, fXmax, fXmin, fXstep, fYmax, fYmin, fYstep, PndRichCalDbData::GetBetaEff(), PndRichCalDbData::GetBetaMean(), PndRichCalDbData::GetBetaSig(), PndRichCalDbData::GetFmax(), PndRichCalDbData::GetFmin(), PndRichCalDbData::GetNf(), PndRichCalDbData::GetNp(), PndRichCalDbData::GetNt(), PndRichCalDbData::GetNx(), PndRichCalDbData::GetNy(), PndRichCalDbData::GetPmax(), PndRichCalDbData::GetPmin(), PndRichCalDbData::GetTmax(), PndRichCalDbData::GetTmin(), PndRichCalDbData::GetType(), PndRichCalDbData::GetXmax(), PndRichCalDbData::GetXmin(), PndRichCalDbData::GetYmax(), and PndRichCalDbData::GetYmin().
Referenced by ReadRootFile().
void PndRichCalDb::WriteAsciiFile | ( | const char * | fileName | ) |
void PndRichCalDb::WriteRootFile | ( | const char * | fileName, |
const char * | mapName | ||
) |
Write field map data to a ROOT file
Definition at line 448 of file PndRichCalDb.cxx.
References file.
|
protected |
Definition at line 166 of file PndRichCalDb.h.
Referenced by GetBetaEff(), PndRichCalDb(), ReadAsciiFile(), Reset(), SetCalDb(), WriteAsciiFile(), and ~PndRichCalDb().
|
protected |
Arrays with the field values
Definition at line 164 of file PndRichCalDb.h.
Referenced by GetBetaMean(), PndRichCalDb(), ReadAsciiFile(), Reset(), SetCalDb(), WriteAsciiFile(), and ~PndRichCalDb().
|
protected |
Definition at line 165 of file PndRichCalDb.h.
Referenced by GetBetaSig(), PndRichCalDb(), ReadAsciiFile(), Reset(), SetCalDb(), WriteAsciiFile(), and ~PndRichCalDb().
|
protected |
Map file name
Definition at line 148 of file PndRichCalDb.h.
Referenced by GetFileName(), Init(), and PndRichCalDb().
|
protected |
Definition at line 156 of file PndRichCalDb.h.
Referenced by GetFmax(), IsInside(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Definition at line 156 of file PndRichCalDb.h.
Referenced by GetFmin(), IsInside(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Definition at line 156 of file PndRichCalDb.h.
Referenced by GetFstep(), IsInside(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), and SetCalDb().
|
protected |
Definition at line 160 of file PndRichCalDb.h.
Referenced by GetBetaEff(), GetBetaMean(), GetBetaSig(), GetNf(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Number of grid points
Definition at line 160 of file PndRichCalDb.h.
Referenced by GetNp(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Definition at line 160 of file PndRichCalDb.h.
Referenced by GetBetaEff(), GetBetaMean(), GetBetaSig(), GetNt(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Definition at line 160 of file PndRichCalDb.h.
Referenced by GetBetaEff(), GetBetaMean(), GetBetaSig(), GetNx(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Definition at line 160 of file PndRichCalDb.h.
Referenced by GetBetaEff(), GetBetaMean(), GetBetaSig(), GetNy(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Definition at line 152 of file PndRichCalDb.h.
Referenced by GetPmax(), IsInside(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Field limits in local coordinate system
Definition at line 152 of file PndRichCalDb.h.
Referenced by GetPmin(), IsInside(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Definition at line 152 of file PndRichCalDb.h.
Referenced by GetPstep(), IsInside(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), and SetCalDb().
|
protected |
Definition at line 155 of file PndRichCalDb.h.
Referenced by GetTmax(), IsInside(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Definition at line 155 of file PndRichCalDb.h.
Referenced by GetTmin(), IsInside(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Definition at line 155 of file PndRichCalDb.h.
Referenced by GetTstep(), IsInside(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), and SetCalDb().
|
protected |
Definition at line 153 of file PndRichCalDb.h.
Referenced by GetXmax(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Definition at line 153 of file PndRichCalDb.h.
Referenced by GetXmin(), IsInside(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Definition at line 153 of file PndRichCalDb.h.
Referenced by GetXstep(), IsInside(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), and SetCalDb().
|
protected |
Definition at line 154 of file PndRichCalDb.h.
Referenced by GetYmax(), IsInside(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Definition at line 154 of file PndRichCalDb.h.
Referenced by GetYmin(), IsInside(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), SetCalDb(), and WriteAsciiFile().
|
protected |
Definition at line 154 of file PndRichCalDb.h.
Referenced by GetYstep(), IsInside(), PndRichCalDb(), Print(), ReadAsciiFile(), Reset(), and SetCalDb().