BmnRoot 26.10.0-210-gc52d34b0
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnSP41FieldMapCreator Class Reference

#include <BmnSP41FieldMapCreator.h>

Inheritance diagram for BmnSP41FieldMapCreator:
Collaboration diagram for BmnSP41FieldMapCreator:

Public Member Functions

 BmnSP41FieldMapCreator ()
 BmnSP41FieldMapCreator (TString, TString)
virtual ~BmnSP41FieldMapCreator ()
void CreateExtrapolatedMap ()
void SmoothMap (TClonesArray *)
void SetOutParamFileName (TString name)
void SetDebug (Bool_t flag)
void SetNodeNumber (Int_t nNodes)
void SetNewRanges (Double_t min, Double_t max)
void SetExtrapolationAxis (TString axis)
void Extrapolation ()
Public Member Functions inherited from TNamed
 TNamed ()
 TNamed (const char *name, const char *title)
 TNamed (const TNamed &named)
 TNamed (const TString &name, const TString &title)
virtual ~TNamed ()
void Clear (Option_t *option="") override
TObject * Clone (const char *newname="") const override
Int_t Compare (const TObject *obj) const override
void Copy (TObject &named) const override
virtual void FillBuffer (char *&buffer)
const char * GetName () const override
const char * GetTitle () const override
ULong_t Hash () const override
TClass * IsA () const override
Bool_t IsSortable () const override
void ls (Option_t *option="") const override
TNamed & operator= (const TNamed &rhs)
void Print (Option_t *option="") const override
virtual void SetName (const char *name)
virtual void SetNameTitle (const char *name, const char *title)
virtual void SetTitle (const char *title="")
virtual Int_t Sizeof () const
void Streamer (TBuffer &) override
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
Public Member Functions inherited from TObject
 TObject ()
 TObject (const TObject &object)
virtual ~TObject ()
void AbstractMethod (const char *method) const
virtual void AppendPad (Option_t *option="")
virtual void Browse (TBrowser *b)
ULong_t CheckedHash ()
virtual const char * ClassName () const
virtual void Delete (Option_t *option="")
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
virtual void Draw (Option_t *option="")
virtual void DrawClass () const
virtual TObject * DrawClone (Option_t *option="") const
virtual void Dump () const
virtual void Error (const char *method, const char *msgfmt,...) const
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
virtual void Fatal (const char *method, const char *msgfmt,...) const
virtual TObject * FindObject (const char *name) const
virtual TObject * FindObject (const TObject *obj) const
virtual Option_t * GetDrawOption () const
virtual const char * GetIconName () const
virtual char * GetObjectInfo (Int_t px, Int_t py) const
virtual Option_t * GetOption () const
virtual UInt_t GetUniqueID () const
virtual Bool_t HandleTimer (TTimer *timer)
Bool_t HasInconsistentHash () const
virtual void Info (const char *method, const char *msgfmt,...) const
virtual Bool_t InheritsFrom (const char *classname) const
virtual Bool_t InheritsFrom (const TClass *cl) const
virtual void Inspect () const
void InvertBit (UInt_t f)
Bool_t IsDestructed () const
virtual Bool_t IsEqual (const TObject *obj) const
virtual Bool_t IsFolder () const
R__ALWAYS_INLINE Bool_t IsOnHeap () const
R__ALWAYS_INLINE Bool_t IsZombie () const
void MayNotUse (const char *method) const
virtual Bool_t Notify ()
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
void operator delete (void *ptr)
void operator delete (void *ptr, void *vp)
void operator delete[] (void *ptr)
void operator delete[] (void *ptr, void *vp)
void * operator new (size_t sz)
void * operator new (size_t sz, void *vp)
void * operator new[] (size_t sz)
void * operator new[] (size_t sz, void *vp)
TObject & operator= (const TObject &rhs)
virtual void Paint (Option_t *option="")
virtual void Pop ()
virtual Int_t Read (const char *name)
virtual void RecursiveRemove (TObject *obj)
void ResetBit (UInt_t f)
virtual void SaveAs (const char *filename="", Option_t *option="") const
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
void SetBit (UInt_t f)
void SetBit (UInt_t f, Bool_t set)
virtual void SetDrawOption (Option_t *option="")
virtual void SetUniqueID (UInt_t uid)
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
virtual void SysError (const char *method, const char *msgfmt,...) const
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
virtual void UseCurrentStyle ()
virtual void Warning (const char *method, const char *msgfmt,...) const
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const

Private Member Functions

void DrawProfileExtrapZ (Int_t, TGraph ***, TF1 ***, TString, TString, Double_t, Double_t, Double_t, Double_t)
void DrawProfileExtrapX (Int_t, TGraph ***, TF1 ***, TString, TString, Double_t, Double_t, Double_t, Double_t)
Double_t FieldExtrapolate (Double_t, Double_t, Double_t, TGraph2D *, TGraph2D *, TGraph2D *)
void Print (BmnFieldMap *)
void DoExtrapolationAlongZ (Int_t, Int_t)
void DoExtrapolationAlongX (Int_t, Int_t)
std::vector< Double_t > checkedFieldValue (Double_t bx, Double_t by, Double_t bz)

Private Attributes

Bool_t fDebug
TString nameOutput
Int_t dimGrid
Int_t dimNhist
Double_t factor
BmnFieldMap * fMap
extrapolationConditions * fConditions
fitParMonitor * fMonitor
Double_t WinXmin
Double_t WinXmax
Double_t WinYmin
Double_t WinYmax
Double_t WinZmin
Double_t WinZmax
Double_t winXstep
Double_t winYstep
Double_t winZstep
TGraph2D *** constant
TGraph2D *** mean
TGraph2D *** sigma
TString fParamFileName

Additional Inherited Members

Public Types inherited from TObject
enum  EDeprecatedStatusBits
enum  EStatusBits
Static Public Member Functions inherited from TNamed
static TClass * Class ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
Static Public Member Functions inherited from TObject
static TClass * Class ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
static Longptr_t GetDtorOnly ()
static Bool_t GetObjectStat ()
static void SetDtorOnly (void *obj)
static void SetObjectStat (Bool_t stat)
Public Attributes inherited from TObject
 kIsOnHeap
 kNotDeleted
 kZombie
 kInconsistent
 kBitMask
 kSingleKey
 kOverwrite
 kWriteDelete
 kObjInCanvas
 kCanDelete
 kMustCleanup
 kIsReferenced
 kHasUUID
 kCannotPick
 kNoContextMenu
 kInvalidObject
Protected Member Functions inherited from TNamed
void SavePrimitiveNameTitle (std::ostream &out, const char *variable_name)
Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
void MakeZombie ()
Static Protected Member Functions inherited from TObject
static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Bool_t empty_line=kFALSE)
Protected Attributes inherited from TNamed
TString fName
TString fTitle
Protected Attributes inherited from TObject
 kOnlyPrepStep

Detailed Description

Definition at line 78 of file BmnSP41FieldMapCreator.h.

Constructor & Destructor Documentation

◆ BmnSP41FieldMapCreator() [1/2]

BmnSP41FieldMapCreator::BmnSP41FieldMapCreator ( )
inline

Definition at line 81 of file BmnSP41FieldMapCreator.h.

◆ BmnSP41FieldMapCreator() [2/2]

BmnSP41FieldMapCreator::BmnSP41FieldMapCreator ( TString in,
TString out )

◆ ~BmnSP41FieldMapCreator()

BmnSP41FieldMapCreator::~BmnSP41FieldMapCreator ( )
virtual

Definition at line 52 of file BmnSP41FieldMapCreator.cxx.

References constant, fConditions, fMap, fMonitor, mean, and sigma.

Member Function Documentation

◆ checkedFieldValue()

std::vector< Double_t > BmnSP41FieldMapCreator::checkedFieldValue ( Double_t bx,
Double_t by,
Double_t bz )
inlineprivate

Definition at line 145 of file BmnSP41FieldMapCreator.h.

References TMath::Abs(), max(), and min().

Referenced by CreateExtrapolatedMap().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateExtrapolatedMap()

void BmnSP41FieldMapCreator::CreateExtrapolatedMap ( )

Definition at line 448 of file BmnSP41FieldMapCreator.cxx.

References checkedFieldValue(), constant, TString::Contains(), factor, fConditions, fDebug, FieldExtrapolate(), fMap, mean, nameOutput, sigma, x, y, and z.

Referenced by Extrapolation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DoExtrapolationAlongX()

void BmnSP41FieldMapCreator::DoExtrapolationAlongX ( Int_t iPart,
Int_t iComp )
private

Definition at line 160 of file BmnSP41FieldMapCreator.cxx.

References constant, dimGrid, dimNhist, DrawProfileExtrapX(), f, fConditions, fDebug, TGraph::Fit(), fMap, fMonitor, i, mean, ROOT::Fit::FitResult::Parameters(), TF1::SetParameter(), TGraph::SetPoint(), sigma, WinYmin, winYstep, WinZmin, winZstep, x, y, and z.

Referenced by Extrapolation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DoExtrapolationAlongZ()

void BmnSP41FieldMapCreator::DoExtrapolationAlongZ ( Int_t iPart,
Int_t iComp )
private

Definition at line 262 of file BmnSP41FieldMapCreator.cxx.

References constant, dimGrid, dimNhist, DrawProfileExtrapZ(), f, fConditions, fDebug, TGraph::Fit(), fMap, fMonitor, i, mean, ROOT::Fit::FitResult::Parameters(), TF1::SetParameter(), TGraph::SetPoint(), sigma, WinXmin, winXstep, WinYmin, winYstep, x, y, and z.

Referenced by Extrapolation().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DrawProfileExtrapX()

void BmnSP41FieldMapCreator::DrawProfileExtrapX ( Int_t dim,
TGraph *** gr,
TF1 *** f,
TString name,
TString comp,
Double_t Ymin,
Double_t Zmin,
Double_t dy,
Double_t dz )
private

Definition at line 404 of file BmnSP41FieldMapCreator.cxx.

References TCanvas::cd(), dim, TPad::Divide(), TGraph::Draw(), f, fConditions, TGraph::GetXaxis(), TGraph::GetYaxis(), i, TPad::SaveAs(), TAttAxis::SetLabelSize(), TAxis::SetLimits(), TAttLine::SetLineWidth(), TAttAxis::SetNdivisions(), TGraph::SetTitle(), TNamed::SetTitle(), TAttAxis::SetTitleSize(), WinYmin, winYstep, WinZmin, and winZstep.

Referenced by DoExtrapolationAlongX().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DrawProfileExtrapZ()

void BmnSP41FieldMapCreator::DrawProfileExtrapZ ( Int_t dim,
TGraph *** gr,
TF1 *** f,
TString name,
TString comp,
Double_t Xmin,
Double_t Ymin,
Double_t dx,
Double_t dy )
private

Definition at line 364 of file BmnSP41FieldMapCreator.cxx.

References TCanvas::cd(), dim, TPad::Divide(), TGraph::Draw(), f, fConditions, TGraph::GetXaxis(), TGraph::GetYaxis(), i, TPad::SaveAs(), TAttAxis::SetLabelSize(), TAxis::SetLimits(), TGraph::SetTitle(), TNamed::SetTitle(), TAttAxis::SetTitleSize(), WinXmin, winXstep, WinYmin, and winYstep.

Referenced by DoExtrapolationAlongZ().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Extrapolation()

void BmnSP41FieldMapCreator::Extrapolation ( )

Definition at line 127 of file BmnSP41FieldMapCreator.cxx.

References TString::Contains(), CreateExtrapolatedMap(), DoExtrapolationAlongX(), DoExtrapolationAlongZ(), and fConditions.

Here is the call graph for this function:

◆ FieldExtrapolate()

Double_t BmnSP41FieldMapCreator::FieldExtrapolate ( Double_t x,
Double_t y,
Double_t z,
TGraph2D * c,
TGraph2D * m,
TGraph2D * s )
private

Definition at line 630 of file BmnSP41FieldMapCreator.cxx.

References TMath::Exp(), fConditions, TGraph2D::Interpolate(), m, TMath::Mean(), TMath::Sigma(), x, y, and z.

Referenced by CreateExtrapolatedMap().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Print()

void BmnSP41FieldMapCreator::Print ( BmnFieldMap * magField)
private

Definition at line 656 of file BmnSP41FieldMapCreator.cxx.

References BmnFieldMap::GetNx(), BmnFieldMap::GetNy(), BmnFieldMap::GetNz(), BmnFieldMap::GetXmin(), BmnFieldMap::GetXstep(), BmnFieldMap::GetYmin(), BmnFieldMap::GetYstep(), BmnFieldMap::GetZmin(), and BmnFieldMap::GetZstep().

Referenced by SmoothMap().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetDebug()

void BmnSP41FieldMapCreator::SetDebug ( Bool_t flag)
inline

Definition at line 90 of file BmnSP41FieldMapCreator.h.

References fDebug.

◆ SetExtrapolationAxis()

void BmnSP41FieldMapCreator::SetExtrapolationAxis ( TString axis)
inline

Definition at line 102 of file BmnSP41FieldMapCreator.h.

References fConditions.

◆ SetNewRanges()

void BmnSP41FieldMapCreator::SetNewRanges ( Double_t min,
Double_t max )
inline

Definition at line 96 of file BmnSP41FieldMapCreator.h.

References fConditions, max(), and min().

Here is the call graph for this function:

◆ SetNodeNumber()

void BmnSP41FieldMapCreator::SetNodeNumber ( Int_t nNodes)
inline

Definition at line 92 of file BmnSP41FieldMapCreator.h.

References dimGrid.

◆ SetOutParamFileName()

void BmnSP41FieldMapCreator::SetOutParamFileName ( TString name)
inline

Definition at line 88 of file BmnSP41FieldMapCreator.h.

References fParamFileName.

◆ SmoothMap()

void BmnSP41FieldMapCreator::SmoothMap ( TClonesArray * sValues)

Definition at line 554 of file BmnSP41FieldMapCreator.cxx.

References TMath::Abs(), factor, smoothedValues::fieldValue, fMap, TObjArray::GetEntriesFast(), nameOutput, Print(), TObject::TClonesArray, TObjArray::UncheckedAt(), v, smoothedValues::X, x, smoothedValues::Y, y, smoothedValues::Z, and z.

Referenced by smoothMap().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ constant

TGraph2D*** BmnSP41FieldMapCreator::constant
private

◆ dimGrid

Int_t BmnSP41FieldMapCreator::dimGrid
private

◆ dimNhist

Int_t BmnSP41FieldMapCreator::dimNhist
private

◆ factor

Double_t BmnSP41FieldMapCreator::factor
private

◆ fConditions

◆ fDebug

Bool_t BmnSP41FieldMapCreator::fDebug
private

◆ fMap

◆ fMonitor

fitParMonitor* BmnSP41FieldMapCreator::fMonitor
private

◆ fParamFileName

TString BmnSP41FieldMapCreator::fParamFileName
private

Definition at line 135 of file BmnSP41FieldMapCreator.h.

Referenced by SetOutParamFileName().

◆ mean

◆ nameOutput

TString BmnSP41FieldMapCreator::nameOutput
private

◆ sigma

◆ WinXmax

Double_t BmnSP41FieldMapCreator::WinXmax
private

Definition at line 122 of file BmnSP41FieldMapCreator.h.

Referenced by BmnSP41FieldMapCreator().

◆ WinXmin

Double_t BmnSP41FieldMapCreator::WinXmin
private

◆ winXstep

Double_t BmnSP41FieldMapCreator::winXstep
private

◆ WinYmax

Double_t BmnSP41FieldMapCreator::WinYmax
private

Definition at line 124 of file BmnSP41FieldMapCreator.h.

Referenced by BmnSP41FieldMapCreator().

◆ WinYmin

Double_t BmnSP41FieldMapCreator::WinYmin
private

◆ winYstep

Double_t BmnSP41FieldMapCreator::winYstep
private

◆ WinZmax

Double_t BmnSP41FieldMapCreator::WinZmax
private

Definition at line 126 of file BmnSP41FieldMapCreator.h.

Referenced by BmnSP41FieldMapCreator().

◆ WinZmin

Double_t BmnSP41FieldMapCreator::WinZmin
private

◆ winZstep

Double_t BmnSP41FieldMapCreator::winZstep
private

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