CbmRoot
Loading...
Searching...
No Matches
CbmLitFieldApproximationQa Class Reference

Field map approximation QA. More...

#include <CbmLitFieldApproximationQa.h>

Inheritance diagram for CbmLitFieldApproximationQa:
[legend]
Collaboration diagram for CbmLitFieldApproximationQa:
[legend]

Public Member Functions

 CbmLitFieldApproximationQa ()
 Constructor.
 
virtual ~CbmLitFieldApproximationQa ()
 Destructor.
 
virtual InitStatus Init ()
 Inherited from FairTask.
 
virtual void Exec (Option_t *opt)
 Inherited from FairTask.
 
virtual void Finish ()
 Inherited from FairTask.
 
void SetSliceZPosition (const vector< Double_t > &zPos)
 
void SetPolynomDegrees (const vector< UInt_t > &degrees)
 
void IsFixedBounds (Bool_t fixedBounds)
 
void SetAcceptanceAngleX (double xangle)
 
void SetAcceptanceAngleY (double yangle)
 
void SetNofBinsX (int nofBinsX)
 
void SetNofBinsY (int nofBinsY)
 
void SetUseEllipseAcc (bool useEllipseAcc)
 
void SetOutputDir (const string &dir)
 
void SetPolynomDegreeIndex (unsigned int degreeIndex)
 

Private Member Functions

void CreateHistos ()
 Create histograms.
 
void CreateFieldHistos ()
 Create field histograms.
 
void CreateFitterHistos ()
 Create histograms for field approximation.
 
void CreateGridHistos ()
 Create histograms for grid creator.
 
void FillBHistos ()
 Fill graphs and histos for field map for each field component (Bx, By, Bz, |B|).
 
void FillFieldApproximationHistos ()
 Fill histograms for polynomial field approximation.
 
void FillGridCreatorHistos ()
 fill histograms for grid creator tool.
 
 CbmLitFieldApproximationQa (const CbmLitFieldApproximationQa &)
 
CbmLitFieldApproximationQaoperator= (const CbmLitFieldApproximationQa &)
 
 ClassDef (CbmLitFieldApproximationQa, 1)
 

Private Attributes

FairField * fField
 
Int_t fNofSlices
 
vector< Double_t > fZSlicePosition
 
vector< Double_t > fXSlicePosition
 
vector< Double_t > fYSlicePosition
 
string fOutputDir
 
Double_t fAcceptanceAngleX
 
Double_t fAcceptanceAngleY
 
Int_t fNofBinsX
 
Int_t fNofBinsY
 
Bool_t fUseEllipseAcc
 
UInt_t fPolynomDegreeIndex
 
UInt_t fNofPolynoms
 
vector< UInt_t > fPolynomDegrees
 
vector< CbmLitFieldFitter * > fFitter
 
CbmLitFieldGridCreatorfGridCreator
 
CbmHistManagerfHM
 
Bool_t fFixedBounds
 

Detailed Description

Field map approximation QA.

Task checks magnetic field map. Compares field map with its polynomial approximation and with approximation based on grid.

Author
Andrey Lebedev andre.nosp@m.y.le.nosp@m.bedev.nosp@m.@gsi.nosp@m..de
Date
2009

Definition at line 39 of file CbmLitFieldApproximationQa.h.

Constructor & Destructor Documentation

◆ CbmLitFieldApproximationQa() [1/2]

CbmLitFieldApproximationQa::CbmLitFieldApproximationQa ( )

Constructor.

Definition at line 53 of file CbmLitFieldApproximationQa.cxx.

◆ ~CbmLitFieldApproximationQa()

CbmLitFieldApproximationQa::~CbmLitFieldApproximationQa ( )
virtual

Destructor.

Definition at line 75 of file CbmLitFieldApproximationQa.cxx.

◆ CbmLitFieldApproximationQa() [2/2]

CbmLitFieldApproximationQa::CbmLitFieldApproximationQa ( const CbmLitFieldApproximationQa & )
private

Member Function Documentation

◆ ClassDef()

CbmLitFieldApproximationQa::ClassDef ( CbmLitFieldApproximationQa ,
1  )
private

◆ CreateFieldHistos()

void CbmLitFieldApproximationQa::CreateFieldHistos ( )
private

Create field histograms.

Definition at line 143 of file CbmLitFieldApproximationQa.cxx.

References CbmHistManager::Add(), fHM, fNofSlices, fZSlicePosition, ToString(), and v.

Referenced by CreateHistos().

◆ CreateFitterHistos()

void CbmLitFieldApproximationQa::CreateFitterHistos ( )
private

Create histograms for field approximation.

Definition at line 158 of file CbmLitFieldApproximationQa.cxx.

References CbmHistManager::Add(), fFixedBounds, fHM, fNofPolynoms, fNofSlices, fPolynomDegrees, fXSlicePosition, fYSlicePosition, fZSlicePosition, ToString(), and v.

Referenced by CreateHistos().

◆ CreateGridHistos()

void CbmLitFieldApproximationQa::CreateGridHistos ( )
private

Create histograms for grid creator.

Definition at line 221 of file CbmLitFieldApproximationQa.cxx.

References CbmHistManager::Add(), fFixedBounds, fHM, fNofSlices, fXSlicePosition, fYSlicePosition, fZSlicePosition, ToString(), and v.

Referenced by CreateHistos().

◆ CreateHistos()

void CbmLitFieldApproximationQa::CreateHistos ( )
private

Create histograms.

Definition at line 135 of file CbmLitFieldApproximationQa.cxx.

References CreateFieldHistos(), CreateFitterHistos(), CreateGridHistos(), fHM, and CbmHistManager::ToString().

Referenced by Init().

◆ Exec()

void CbmLitFieldApproximationQa::Exec ( Option_t * opt)
virtual

Inherited from FairTask.

Definition at line 131 of file CbmLitFieldApproximationQa.cxx.

◆ FillBHistos()

void CbmLitFieldApproximationQa::FillBHistos ( )
private

Fill graphs and histos for field map for each field component (Bx, By, Bz, |B|).

Definition at line 277 of file CbmLitFieldApproximationQa.cxx.

References fField, fHM, fNofBinsX, fNofBinsY, fNofSlices, fUseEllipseAcc, fXSlicePosition, fYSlicePosition, fZSlicePosition, CbmHistManager::G2(), pos, sqrt(), and ToString().

Referenced by Init().

◆ FillFieldApproximationHistos()

void CbmLitFieldApproximationQa::FillFieldApproximationHistos ( )
private

◆ FillGridCreatorHistos()

void CbmLitFieldApproximationQa::FillGridCreatorHistos ( )
private

◆ Finish()

void CbmLitFieldApproximationQa::Finish ( )
virtual

Inherited from FairTask.

Definition at line 133 of file CbmLitFieldApproximationQa.cxx.

◆ Init()

◆ IsFixedBounds()

void CbmLitFieldApproximationQa::IsFixedBounds ( Bool_t fixedBounds)
inline

Definition at line 69 of file CbmLitFieldApproximationQa.h.

References fFixedBounds.

◆ operator=()

CbmLitFieldApproximationQa & CbmLitFieldApproximationQa::operator= ( const CbmLitFieldApproximationQa & )
private

◆ SetAcceptanceAngleX()

void CbmLitFieldApproximationQa::SetAcceptanceAngleX ( double xangle)
inline

Definition at line 70 of file CbmLitFieldApproximationQa.h.

References fAcceptanceAngleX.

◆ SetAcceptanceAngleY()

void CbmLitFieldApproximationQa::SetAcceptanceAngleY ( double yangle)
inline

Definition at line 71 of file CbmLitFieldApproximationQa.h.

References fAcceptanceAngleY.

◆ SetNofBinsX()

void CbmLitFieldApproximationQa::SetNofBinsX ( int nofBinsX)
inline

Definition at line 72 of file CbmLitFieldApproximationQa.h.

References fNofBinsX.

◆ SetNofBinsY()

void CbmLitFieldApproximationQa::SetNofBinsY ( int nofBinsY)
inline

Definition at line 73 of file CbmLitFieldApproximationQa.h.

References fNofBinsY.

◆ SetOutputDir()

void CbmLitFieldApproximationQa::SetOutputDir ( const string & dir)
inline

Definition at line 75 of file CbmLitFieldApproximationQa.h.

References fOutputDir.

◆ SetPolynomDegreeIndex()

void CbmLitFieldApproximationQa::SetPolynomDegreeIndex ( unsigned int degreeIndex)
inline

Definition at line 76 of file CbmLitFieldApproximationQa.h.

References fPolynomDegreeIndex.

◆ SetPolynomDegrees()

void CbmLitFieldApproximationQa::SetPolynomDegrees ( const vector< UInt_t > & degrees)
inline

Definition at line 68 of file CbmLitFieldApproximationQa.h.

References fPolynomDegrees.

◆ SetSliceZPosition()

void CbmLitFieldApproximationQa::SetSliceZPosition ( const vector< Double_t > & zPos)
inline

Definition at line 67 of file CbmLitFieldApproximationQa.h.

References fZSlicePosition.

◆ SetUseEllipseAcc()

void CbmLitFieldApproximationQa::SetUseEllipseAcc ( bool useEllipseAcc)
inline

Definition at line 74 of file CbmLitFieldApproximationQa.h.

References fUseEllipseAcc.

Member Data Documentation

◆ fAcceptanceAngleX

Double_t CbmLitFieldApproximationQa::fAcceptanceAngleX
private

Definition at line 135 of file CbmLitFieldApproximationQa.h.

Referenced by Init(), and SetAcceptanceAngleX().

◆ fAcceptanceAngleY

Double_t CbmLitFieldApproximationQa::fAcceptanceAngleY
private

Definition at line 137 of file CbmLitFieldApproximationQa.h.

Referenced by Init(), and SetAcceptanceAngleY().

◆ fField

FairField* CbmLitFieldApproximationQa::fField
private

◆ fFitter

vector<CbmLitFieldFitter*> CbmLitFieldApproximationQa::fFitter
private

Definition at line 151 of file CbmLitFieldApproximationQa.h.

Referenced by FillFieldApproximationHistos(), and Init().

◆ fFixedBounds

Bool_t CbmLitFieldApproximationQa::fFixedBounds
private

◆ fGridCreator

CbmLitFieldGridCreator* CbmLitFieldApproximationQa::fGridCreator
private

Definition at line 157 of file CbmLitFieldApproximationQa.h.

Referenced by FillGridCreatorHistos(), and Init().

◆ fHM

◆ fNofBinsX

Int_t CbmLitFieldApproximationQa::fNofBinsX
private

◆ fNofBinsY

Int_t CbmLitFieldApproximationQa::fNofBinsY
private

◆ fNofPolynoms

UInt_t CbmLitFieldApproximationQa::fNofPolynoms
private

◆ fNofSlices

Int_t CbmLitFieldApproximationQa::fNofSlices
private

◆ fOutputDir

string CbmLitFieldApproximationQa::fOutputDir
private

Definition at line 129 of file CbmLitFieldApproximationQa.h.

Referenced by Init(), and SetOutputDir().

◆ fPolynomDegreeIndex

UInt_t CbmLitFieldApproximationQa::fPolynomDegreeIndex
private

Definition at line 145 of file CbmLitFieldApproximationQa.h.

Referenced by SetPolynomDegreeIndex().

◆ fPolynomDegrees

vector<UInt_t> CbmLitFieldApproximationQa::fPolynomDegrees
private

◆ fUseEllipseAcc

Bool_t CbmLitFieldApproximationQa::fUseEllipseAcc
private

◆ fXSlicePosition

vector<Double_t> CbmLitFieldApproximationQa::fXSlicePosition
private

◆ fYSlicePosition

vector<Double_t> CbmLitFieldApproximationQa::fYSlicePosition
private

◆ fZSlicePosition

vector<Double_t> CbmLitFieldApproximationQa::fZSlicePosition
private

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