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

#include <BmnCustomQa.h>

Inheritance diagram for BmnCustomQa:
Collaboration diagram for BmnCustomQa:

Public Member Functions

 BmnCustomQa ()
 Constructor.
 BmnCustomQa (string name, string padConfFile)
 Constructor.
virtual ~BmnCustomQa ()
 Destructor.
virtual InitStatus Init ()
 Derived from FairTask.
virtual void Exec (Option_t *opt)
 Derived from FairTask.
virtual void Finish ()
 Derived from FairTask.
void SetOutputDir (const std::string &dir)
void ResetPadTree ()
void SaveConfig (string str)
TObjString * LoadDefaultConfig ()
TObjString * FetchConfig ()
 BmnCustomQa ()
 Constructor.
 BmnCustomQa (string name, string padConfFile)
 Constructor.
virtual ~BmnCustomQa ()
 Destructor.
virtual InitStatus Init ()
 Derived from FairTask.
virtual void Exec (Option_t *opt)
 Derived from FairTask.
virtual void Finish ()
 Derived from FairTask.
void SetOutputDir (const std::string &dir)
void ResetPadTree ()
void SaveConfig (string str)
TObjString * LoadDefaultConfig ()
TObjString * FetchConfig ()
Public Member Functions inherited from BmnQaBase
 BmnQaBase ()
 Constructor.
 BmnQaBase (const char *name, Int_t iVerbose)
 Constructor.
virtual ~BmnQaBase ()
 Destructor.
void SetOutputDir (const std::string &dir)
void SetMonitorMode (const Bool_t mm)
Bool_t GetMonitorMode () const
void SetObjServer (THttpServer *s)
THttpServer * GetObjServer () const
 BmnQaBase ()
 Constructor.
 BmnQaBase (const char *name, Int_t iVerbose)
 Constructor.
virtual ~BmnQaBase ()
 Destructor.
void SetOutputDir (const std::string &dir)
void SetMonitorMode (const Bool_t mm)
Bool_t GetMonitorMode () const
void SetObjServer (THttpServer *s)
THttpServer * GetObjServer () const

Private Member Functions

void Redraw ()
void ReadDataBranches ()
 Read data branches from input data files.
void CreateHistograms ()
void RecreateHistTree ()
void ProcessGlobal ()
void ReloadConf ()
 BmnCustomQa (const BmnCustomQa &)=delete
BmnCustomQa & operator= (const BmnCustomQa &)=delete
void Redraw ()
void ReadDataBranches ()
 Read data branches from input data files.
void CreateHistograms ()
void RecreateHistTree ()
void ProcessGlobal ()
void ReloadConf ()
 BmnCustomQa (const BmnCustomQa &)=delete
BmnCustomQa & operator= (const BmnCustomQa &)=delete

Private Attributes

string fPadConfDirWeb
string fPadConfDir
string fPadConfFileNameDefault
string fPadConfFileName
string fPadConfText
BmnPadGenerator * fPadGenerator
BmnPadBranch * fPadTree
TTree * fTreeTemp
TCanvas * can
std::mutex mtx_can
TObjString fCurConfig

Additional Inherited Members

Protected Member Functions inherited from BmnQaBase
virtual void ReadEventHeader ()
void CreateH1 (const string &name, const string &xTitle, const string &yTitle, Int_t nofBins, Double_t minBin, Double_t maxBin)
void CreateH2 (const string &name, const string &xTitle, const string &yTitle, const string &zTitle, Int_t nofBinsX, Double_t minBinX, Double_t maxBinX, Int_t nofBinsY, Double_t minBinY, Double_t maxBinY)
template<typename SST>
void CreateStripDigiHists (SST &ss, DetectorId detId)
void FillStripDigiHists (DetectorId detId, TClonesArray *hits)
template<typename SST>
void CreateStripHits (SST &ss, DetectorId detId)
void FillStripHits (DetectorId detId, TClonesArray *hits)
 BmnQaBase (const BmnQaBase &)=delete
BmnQaBase & operator= (const BmnQaBase &)=delete
virtual void ReadEventHeader ()
void CreateH1 (const string &name, const string &xTitle, const string &yTitle, Int_t nofBins, Double_t minBin, Double_t maxBin)
void CreateH2 (const string &name, const string &xTitle, const string &yTitle, const string &zTitle, Int_t nofBinsX, Double_t minBinX, Double_t maxBinX, Int_t nofBinsY, Double_t minBinY, Double_t maxBinY)
template<typename SST>
void CreateStripDigiHists (SST &ss, DetectorId detId)
void FillStripDigiHists (DetectorId detId, TClonesArray *hits)
template<typename SST>
void CreateStripHits (SST &ss, DetectorId detId)
void FillStripHits (DetectorId detId, TClonesArray *hits)
 BmnQaBase (const BmnQaBase &)=delete
BmnQaBase & operator= (const BmnQaBase &)=delete
Protected Attributes inherited from BmnQaBase
THttpServer * fServer
TString fOutName
BmnHistManager * fHM
string fOutputDir
BmnSimulationReport * fReport
Bool_t fMonitorMode
UInt_t fRunId
UInt_t fPrevRunId
Int_t fEventNo
Int_t fEventId
const Int_t fNItersToUpdate = 500
const chrono::seconds fTimeToUpdate = chrono::seconds(5)
Int_t fNItersSinceUpdate
 redraw each timeout seconds
chrono::time_point< chrono::system_clock > fTicksLastUpdate

Detailed Description

Definition at line 21 of file BmnCustomQa.h.

Constructor & Destructor Documentation

◆ BmnCustomQa() [1/6]

BmnCustomQa::BmnCustomQa ( )
inline

Definition at line 27 of file BmnCustomQa.h.

Referenced by BmnCustomQa(), and operator=().

Here is the caller graph for this function:

◆ BmnCustomQa() [2/6]

BmnCustomQa::BmnCustomQa ( string name,
string padConfFile )

Definition at line 27 of file BmnCustomQa.cxx.

References BmnQaBase::BmnQaBase(), can, fPadConfDir, fPadConfDirWeb, fPadConfFileName, fPadConfFileNameDefault, fPadGenerator, fPadTree, and fTreeTemp.

Here is the call graph for this function:

◆ ~BmnCustomQa() [1/2]

BmnCustomQa::~BmnCustomQa ( )
virtual

Definition at line 52 of file BmnCustomQa.cxx.

◆ BmnCustomQa() [3/6]

BmnCustomQa::BmnCustomQa ( const BmnCustomQa & )
privatedelete

References BmnCustomQa().

Here is the call graph for this function:

◆ BmnCustomQa() [4/6]

BmnCustomQa::BmnCustomQa ( )
inline

Definition at line 27 of file BmnCustomQa.h.

◆ BmnCustomQa() [5/6]

BmnCustomQa::BmnCustomQa ( string name,
string padConfFile )

◆ ~BmnCustomQa() [2/2]

virtual BmnCustomQa::~BmnCustomQa ( )
virtual

◆ BmnCustomQa() [6/6]

BmnCustomQa::BmnCustomQa ( const BmnCustomQa & )
privatedelete

References BmnCustomQa().

Here is the call graph for this function:

Member Function Documentation

◆ CreateHistograms() [1/2]

void BmnCustomQa::CreateHistograms ( )
privatevirtual

Implements BmnQaBase.

Definition at line 178 of file BmnCustomQa.cxx.

References can, and RecreateHistTree().

Referenced by Init().

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

◆ CreateHistograms() [2/2]

void BmnCustomQa::CreateHistograms ( )
privatevirtual

Implements BmnQaBase.

◆ Exec() [1/2]

void BmnCustomQa::Exec ( Option_t * opt)
virtual

Reimplemented from BmnQaBase.

Definition at line 87 of file BmnCustomQa.cxx.

References BmnQaBase::fEventNo, BmnQaBase::fMonitorMode, BmnQaBase::fNItersSinceUpdate, BmnQaBase::fNItersToUpdate, BmnQaBase::fServer, BmnQaBase::fTicksLastUpdate, BmnQaBase::fTimeToUpdate, ProcessGlobal(), and Redraw().

Here is the call graph for this function:

◆ Exec() [2/2]

virtual void BmnCustomQa::Exec ( Option_t * opt)
virtual

Reimplemented from BmnQaBase.

◆ FetchConfig() [1/2]

TObjString * BmnCustomQa::FetchConfig ( )

Definition at line 266 of file BmnCustomQa.cxx.

References fCurConfig.

◆ FetchConfig() [2/2]

TObjString * BmnCustomQa::FetchConfig ( )

◆ Finish() [1/2]

void BmnCustomQa::Finish ( )
virtual

Reimplemented from BmnQaBase.

Definition at line 103 of file BmnCustomQa.cxx.

References can, DBG, BmnQaBase::fHM, and Redraw().

Here is the call graph for this function:

◆ Finish() [2/2]

virtual void BmnCustomQa::Finish ( )
virtual

Reimplemented from BmnQaBase.

◆ Init() [1/2]

InitStatus BmnCustomQa::Init ( )
virtual

Reimplemented from BmnQaBase.

Definition at line 57 of file BmnCustomQa.cxx.

References can, CreateHistograms(), TString::Data(), BmnQaBase::fHM, BmnQaBase::fMonitorMode, fPadConfDir, fPadConfDirWeb, BmnQaBase::fServer, and ReadDataBranches().

Here is the call graph for this function:

◆ Init() [2/2]

virtual InitStatus BmnCustomQa::Init ( )
virtual

Reimplemented from BmnQaBase.

◆ LoadDefaultConfig() [1/2]

TObjString * BmnCustomQa::LoadDefaultConfig ( )

Definition at line 252 of file BmnCustomQa.cxx.

References fCurConfig, fPadConfFileName, fPadConfFileNameDefault, and RecreateHistTree().

Here is the call graph for this function:

◆ LoadDefaultConfig() [2/2]

TObjString * BmnCustomQa::LoadDefaultConfig ( )

◆ operator=() [1/2]

BmnCustomQa & BmnCustomQa::operator= ( const BmnCustomQa & )
privatedelete

References BmnCustomQa().

Here is the call graph for this function:

◆ operator=() [2/2]

BmnCustomQa & BmnCustomQa::operator= ( const BmnCustomQa & )
privatedelete

References BmnCustomQa().

Here is the call graph for this function:

◆ ProcessGlobal() [1/2]

void BmnCustomQa::ProcessGlobal ( )
privatevirtual

Implements BmnQaBase.

Definition at line 207 of file BmnCustomQa.cxx.

References fTreeTemp.

Referenced by Exec().

Here is the caller graph for this function:

◆ ProcessGlobal() [2/2]

void BmnCustomQa::ProcessGlobal ( )
privatevirtual

Implements BmnQaBase.

◆ ReadDataBranches() [1/2]

void BmnCustomQa::ReadDataBranches ( )
privatevirtual

Implements BmnQaBase.

Definition at line 139 of file BmnCustomQa.cxx.

References TList::At(), TClonesArray::Class(), TFolder::Class(), TObject::ClassName(), fTreeTemp, TClass::GetClass(), TCollection::GetEntries(), TNamed::GetName(), TObjString::GetString(), TNamed::GetTitle(), and i.

Referenced by Init().

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

◆ ReadDataBranches() [2/2]

void BmnCustomQa::ReadDataBranches ( )
privatevirtual

Implements BmnQaBase.

◆ RecreateHistTree() [1/2]

void BmnCustomQa::RecreateHistTree ( )
private

Definition at line 185 of file BmnCustomQa.cxx.

References can, fPadTree, BmnPadGenerator::PadTree2Canvas(), and ReloadConf().

Referenced by CreateHistograms(), LoadDefaultConfig(), and SaveConfig().

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

◆ RecreateHistTree() [2/2]

void BmnCustomQa::RecreateHistTree ( )
private

◆ Redraw() [1/2]

void BmnCustomQa::Redraw ( )
private

Definition at line 118 of file BmnCustomQa.cxx.

References BmnHist::DrawPadFromTree(), BmnHist::FillPadFromTree(), BmnQaBase::fNItersSinceUpdate, fPadTree, BmnQaBase::fTicksLastUpdate, and fTreeTemp.

Referenced by Exec(), and Finish().

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

◆ Redraw() [2/2]

void BmnCustomQa::Redraw ( )
private

◆ ReloadConf() [1/2]

void BmnCustomQa::ReloadConf ( )
private

Definition at line 219 of file BmnCustomQa.cxx.

References fCurConfig, fPadConfFileName, fPadGenerator, and fPadTree.

Referenced by RecreateHistTree().

Here is the caller graph for this function:

◆ ReloadConf() [2/2]

◆ ResetPadTree() [1/2]

void BmnCustomQa::ResetPadTree ( )

Definition at line 213 of file BmnCustomQa.cxx.

References fPadTree, and BmnHist::ResetPadTree().

Here is the call graph for this function:

◆ ResetPadTree() [2/2]

void BmnCustomQa::ResetPadTree ( )

◆ SaveConfig() [1/2]

void BmnCustomQa::SaveConfig ( string str)

Definition at line 235 of file BmnCustomQa.cxx.

References fPadConfFileName, and RecreateHistTree().

Here is the call graph for this function:

◆ SaveConfig() [2/2]

void BmnCustomQa::SaveConfig ( string str)

◆ SetOutputDir() [1/2]

void BmnCustomQa::SetOutputDir ( const std::string & dir)
inline

Definition at line 54 of file BmnCustomQa.h.

References BmnQaBase::fOutputDir.

◆ SetOutputDir() [2/2]

void BmnCustomQa::SetOutputDir ( const std::string & dir)
inline

Definition at line 54 of file BmnCustomQa.h.

References BmnQaBase::fOutputDir.

Member Data Documentation

◆ can

TCanvas * BmnCustomQa::can
private

Definition at line 104 of file BmnCustomQa.h.

Referenced by BmnCustomQa(), CreateHistograms(), Finish(), Init(), RecreateHistTree(), and ReloadConf().

◆ fCurConfig

TObjString BmnCustomQa::fCurConfig
private

Definition at line 107 of file BmnCustomQa.h.

Referenced by FetchConfig(), LoadDefaultConfig(), and ReloadConf().

◆ fPadConfDir

string BmnCustomQa::fPadConfDir
private

Definition at line 93 of file BmnCustomQa.h.

Referenced by BmnCustomQa(), Init(), and ReloadConf().

◆ fPadConfDirWeb

string BmnCustomQa::fPadConfDirWeb
private

Definition at line 92 of file BmnCustomQa.h.

Referenced by BmnCustomQa(), Init(), and ReloadConf().

◆ fPadConfFileName

string BmnCustomQa::fPadConfFileName
private

Definition at line 95 of file BmnCustomQa.h.

Referenced by BmnCustomQa(), LoadDefaultConfig(), ReloadConf(), and SaveConfig().

◆ fPadConfFileNameDefault

string BmnCustomQa::fPadConfFileNameDefault
private

Definition at line 94 of file BmnCustomQa.h.

Referenced by BmnCustomQa(), LoadDefaultConfig(), and ReloadConf().

◆ fPadConfText

string BmnCustomQa::fPadConfText
private

Definition at line 96 of file BmnCustomQa.h.

Referenced by ReloadConf().

◆ fPadGenerator

BmnPadGenerator * BmnCustomQa::fPadGenerator
private

Definition at line 97 of file BmnCustomQa.h.

Referenced by BmnCustomQa(), and ReloadConf().

◆ fPadTree

BmnPadBranch * BmnCustomQa::fPadTree
private

Definition at line 98 of file BmnCustomQa.h.

Referenced by BmnCustomQa(), RecreateHistTree(), Redraw(), ReloadConf(), and ResetPadTree().

◆ fTreeTemp

TTree * BmnCustomQa::fTreeTemp
private

Definition at line 100 of file BmnCustomQa.h.

Referenced by BmnCustomQa(), ProcessGlobal(), ReadDataBranches(), Redraw(), and ReloadConf().

◆ mtx_can

std::mutex BmnCustomQa::mtx_can
private

Definition at line 105 of file BmnCustomQa.h.

Referenced by ReloadConf().


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