BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnFunctionAna Class Reference

Class with static common functions to simplify experiment code. More...

#include <BmnFunctionAna.h>

Static Public Member Functions

static FairField * GetDSTField (TString fileName, Double_t &fieldScale, Int_t &fieldType, TString *beam=nullptr, TString *target=nullptr, Double_t *beam_energy=nullptr, Int_t *beam_a=nullptr, Int_t *beam_z=nullptr, Int_t *target_a=nullptr, Int_t *target_z=nullptr)
static int ConvertRecoToTxt (TString input_list_file, TString output_file="reco_tracks.txt", TString configFileName="recotxt_config.json")
static FairField * GetDSTField (TString fileName, Double_t &fieldScale, Int_t &fieldType, TString *beam=nullptr, TString *target=nullptr, Double_t *beam_energy=nullptr, Int_t *beam_a=nullptr, Int_t *beam_z=nullptr, Int_t *target_a=nullptr, Int_t *target_z=nullptr)
static int ConvertRecoToTxt (TString input_list_file, TString output_file="reco_tracks.txt", TString configFileName="recotxt_config.json")

Private Member Functions

 BmnFunctionAna ()
 ~BmnFunctionAna ()
 BmnFunctionAna ()
 ~BmnFunctionAna ()

Detailed Description

Definition at line 8 of file BmnFunctionAna.h.

Constructor & Destructor Documentation

◆ BmnFunctionAna() [1/2]

BmnFunctionAna::BmnFunctionAna ( )
inlineprivate

Definition at line 45 of file BmnFunctionAna.h.

◆ ~BmnFunctionAna() [1/2]

BmnFunctionAna::~BmnFunctionAna ( )
inlineprivate

Definition at line 46 of file BmnFunctionAna.h.

◆ BmnFunctionAna() [2/2]

BmnFunctionAna::BmnFunctionAna ( )
inlineprivate

Definition at line 45 of file BmnFunctionAna.h.

◆ ~BmnFunctionAna() [2/2]

BmnFunctionAna::~BmnFunctionAna ( )
inlineprivate

Definition at line 46 of file BmnFunctionAna.h.

Member Function Documentation

◆ ConvertRecoToTxt() [1/2]

int BmnFunctionAna::ConvertRecoToTxt ( TString input_list_file,
TString output_file = "reco_tracks.txt",
TString configFileName = "recotxt_config.json" )
static

◆ ConvertRecoToTxt() [2/2]

int BmnFunctionAna::ConvertRecoToTxt ( TString input_list_file,
TString output_file = "reco_tracks.txt",
TString configFileName = "recotxt_config.json" )
static

◆ GetDSTField() [1/2]

FairField * BmnFunctionAna::GetDSTField ( TString fileName,
Double_t & fieldScale,
Int_t & fieldType,
TString * beam = nullptr,
TString * target = nullptr,
Double_t * beam_energy = nullptr,
Int_t * beam_a = nullptr,
Int_t * beam_z = nullptr,
Int_t * target_a = nullptr,
Int_t * target_z = nullptr )
static

Definition at line 37 of file BmnFunctionAna.cxx.

References TFile::Close(), TString::Data(), TDirectoryFile::Get(), DstRunHeader::GetBeam(), DstRunHeader::GetBeamA(), DstRunHeader::GetBeamEnergy(), DstRunHeader::GetBeamZ(), DstRunHeader::GetFieldName(), DstRunHeader::GetFieldScale(), DstRunHeader::GetFieldType(), DstRunHeader::GetTarget(), DstRunHeader::GetTargetA(), DstRunHeader::GetTargetZ(), TObject::IsZombie(), and TFile::Open().

Referenced by PairCreation(), readDst(), run_ana_bmn(), run_ana_bmn(), and run_qa_exp().

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

◆ GetDSTField() [2/2]

FairField * BmnFunctionAna::GetDSTField ( TString fileName,
Double_t & fieldScale,
Int_t & fieldType,
TString * beam = nullptr,
TString * target = nullptr,
Double_t * beam_energy = nullptr,
Int_t * beam_a = nullptr,
Int_t * beam_z = nullptr,
Int_t * target_a = nullptr,
Int_t * target_z = nullptr )
static

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