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.
 
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 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 20 of file QaManager.cxx.

References fpSender.

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

◆ Manager() [2/3]

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

Copy constructor.

References Manager().

◆ Manager() [3/3]

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

Move constructor.

References Manager().

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

References fpData.

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

References fpData, and fpSender.

◆ operator=() [1/2]

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

Copy assignment operator.

References Manager().

◆ operator=() [2/2]

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

Move assignment operator.

References Manager().

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

References fpData, and fpSender.

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

References fpData.

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

References fpData.

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

References fpData, fpSender, and L_.

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.

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

◆ fpSender

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

Histogram sender.

Definition at line 68 of file QaManager.h.

Referenced by Init(), Manager(), SendHistograms(), and WriteHistograms().


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