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

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

#include <QaManager.h>

Inheritance diagram for Manager:
[legend]
Collaboration diagram for 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.
 
void WriteHistograms (const std::string &filename, bool compress) const
 Writes histograms.
 
void SetTimesliceTimeInRun (uint64_t timesliceTime)
 Sets a timeslice start time relative to run start time.
 
const ChainContext * GetContext ()
 
void SetContext (const ChainContext *ctx)
 
const Options & Opts () const
 
const RecoParams & Params () 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 ChainContext * fContext = 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 20 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

Definition at line 16 of file SubChain.h.

References fContext.

◆ 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.

◆ GetMonitor()

◆ HasMonitor()

◆ Init()

void Manager::Init ( )

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

Definition at line 24 of file QaManager.cxx.

◆ 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

◆ SendHistograms()

void Manager::SendHistograms ( )

Sends a collection of histograms to the server.

Note
Resets the histograms after sending them

Definition at line 28 of file QaManager.cxx.

◆ SetContext()

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

Definition at line 18 of file SubChain.h.

References fContext.

Referenced by cbm::algo::Reco::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.

◆ SetTimesliceTimeInRun()

void cbm::algo::qa::Manager::SetTimesliceTimeInRun ( uint64_t timesliceTime)
inline

Sets a timeslice start time relative to run start time.

Parameters
timesliceTimeTimeslice start time relative to run start time, in seconds

Definition at line 65 of file QaManager.h.

◆ WriteHistograms()

void Manager::WriteHistograms ( const std::string & filename,
bool compress ) const

Writes histograms.

Parameters
filenameName of the output file
compressUse a compression
Note
Since the histogram container is reset every time when the histograms are sent to the histogram server, writing the histograms makes no sense with the latter is connected to the Reco. So, the storing of the histograms will be ignored in this case.

Definition at line 32 of file QaManager.cxx.

Member Data Documentation

◆ fContext

const ChainContext* cbm::algo::SubChain::fContext = nullptr
privateinherited

Definition at line 34 of file SubChain.h.

Referenced by GetContext(), GetMonitor(), HasMonitor(), Opts(), Params(), and SetContext().

◆ fpData

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

Instance of QA Data.

Definition at line 69 of file QaManager.h.

◆ fpSender

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

Histogram sender.

Definition at line 68 of file QaManager.h.


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