CbmRoot
Loading...
Searching...
No Matches
cbm::algo::qa::Manager Class Reference

A central class to manage the histogram storage and sending to the histogram server. More...

#include <QaManager.h>

Inheritance diagram for cbm::algo::qa::Manager:
[legend]
Collaboration diagram for cbm::algo::qa::Manager:
[legend]

Public Member Functions

 Manager (std::shared_ptr< HistogramSender > histoSender=nullptr)
 Constructor.
 
 Manager (const Manager &)=delete
 Copy constructor.
 
 Manager (Manager &&)=delete
 Move constructor.
 
 ~Manager ()=default
 Destructor.
 
Manageroperator= (const Manager &)=delete
 Copy assignment operator.
 
Manageroperator= (Manager &&)=delete
 Move assignment operator.
 
std::shared_ptr< DataGetData () const
 Gets an instance of QA data.
 
void Init ()
 Initializes the instance and sends the histogram and canvas configuration to the server.
 
void SendHistograms ()
 Sends a collection of histograms to the server.
 
void SetTimesliceId (uint64_t timesliceId)
 Sets a timeslice index.
 
const ChainContextGetContext ()
 
void SetContext (const ChainContext *ctx)
 
const OptionsOpts () const
 
const RecoParamsParams () const
 
bool HasMonitor () const
 
MonitorGetMonitor () const
 

Private Attributes

std::shared_ptr< HistogramSenderfpSender {nullptr}
 Histogram sender.
 
std::shared_ptr< DatafpData {std::make_shared<Data>()}
 Instance of QA Data.
 
const ChainContextfContext = nullptr
 

Detailed Description

A central class to manage the histogram storage and sending to the histogram server.

Definition at line 20 of file QaManager.h.

Constructor & Destructor Documentation

◆ Manager() [1/3]

Manager::Manager ( std::shared_ptr< HistogramSender > histoSender = nullptr)

Constructor.

Parameters
histoSenderA histogram sender instance

Definition at line 18 of file QaManager.cxx.

◆ Manager() [2/3]

cbm::algo::qa::Manager::Manager ( const Manager & )
delete

Copy constructor.

◆ Manager() [3/3]

cbm::algo::qa::Manager::Manager ( Manager && )
delete

Move constructor.

◆ ~Manager()

cbm::algo::qa::Manager::~Manager ( )
default

Destructor.

Member Function Documentation

◆ GetContext()

const ChainContext * cbm::algo::SubChain::GetContext ( )
inlineinherited

◆ GetData()

std::shared_ptr< Data > cbm::algo::qa::Manager::GetData ( ) const
inline

Gets an instance of QA data.

Definition at line 42 of file QaManager.h.

References fpData.

◆ GetMonitor()

◆ HasMonitor()

◆ Init()

void Manager::Init ( )

Initializes the instance and sends the histogram and canvas configuration to the server.

Definition at line 22 of file QaManager.cxx.

References fpData, and fpSender.

◆ operator=() [1/2]

Manager & cbm::algo::qa::Manager::operator= ( const Manager & )
delete

Copy assignment operator.

◆ operator=() [2/2]

Manager & cbm::algo::qa::Manager::operator= ( Manager && )
delete

Move assignment operator.

◆ Opts()

◆ Params()

const RecoParams & cbm::algo::SubChain::Params ( ) const
inlineinherited

Definition at line 21 of file SubChain.h.

References cbm::algo::SubChain::fContext.

Referenced by cbm::algo::Reco::Init(), and cbm::algo::Reco::Run().

◆ SendHistograms()

void Manager::SendHistograms ( )

Sends a collection of histograms to the server.

Note
Resets the histograms after sending them

Definition at line 26 of file QaManager.cxx.

References fpData, and fpSender.

◆ SetContext()

void cbm::algo::SubChain::SetContext ( const ChainContext * ctx)
inlineinherited

Definition at line 18 of file SubChain.h.

References cbm::algo::SubChain::fContext.

Referenced by cbm::algo::Reco::Init(), and cbm::algo::TrackingSetup::Init().

◆ SetTimesliceId()

void cbm::algo::qa::Manager::SetTimesliceId ( uint64_t timesliceId)
inline

Sets a timeslice index.

Parameters
timesliceIdA timeslice index

Definition at line 53 of file QaManager.h.

References fpData.

Member Data Documentation

◆ fContext

◆ fpData

std::shared_ptr<Data> cbm::algo::qa::Manager::fpData {std::make_shared<Data>()}
private

Instance of QA Data.

Definition at line 57 of file QaManager.h.

Referenced by GetData(), Init(), SendHistograms(), and SetTimesliceId().

◆ fpSender

std::shared_ptr<HistogramSender> cbm::algo::qa::Manager::fpSender {nullptr}
private

Histogram sender.

Definition at line 56 of file QaManager.h.

Referenced by Init(), and SendHistograms().


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