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

QA task class for digi events produced by the event builder. More...

#include <CbmTaskDigiEventQa.h>

Inheritance diagram for CbmTaskDigiEventQa:
[legend]
Collaboration diagram for CbmTaskDigiEventQa:
[legend]

Public Member Functions

 CbmTaskDigiEventQa ()
 Constructor.
 
 CbmTaskDigiEventQa (const CbmTaskDigiEventQa &)=delete
 Copy constructor (disabled)
 
virtual ~CbmTaskDigiEventQa ()
 Destructor.
 
void Config (const cbm::algo::evbuild::Config &config)
 Configuration.
 
virtual void Exec (Option_t *opt)
 Task execution.
 
virtual void Finish ()
 Finish timeslice.
 
CbmTaskDigiEventQaoperator= (const CbmTaskDigiEventQa &)=delete
 Assignment operator (disabled)
 

Private Member Functions

virtual InitStatus Init ()
 Task initialisation.
 
TH1D * ToTH1D (const cbm::algo::qa::H1D &source)
 Create a ROOT TH1D from a H1D object.
 
 ClassDef (CbmTaskDigiEventQa, 1)
 

Private Attributes

const std::vector< CbmDigiEvent > * fEvents = nullptr
 
size_t fNumTs = 0
 Input data (events)
 
size_t fNumEvents = 0
 Number of analysed events.
 
size_t fNumDigis = 0
 Number of analysed digis.
 
double fExecTime = 0.
 Execution time [s].
 
std::unique_ptr< cbm::algo::evbuild::DigiEventQafAlgo
 
cbm::algo::evbuild::DigiEventQaConfig fConfig
 
std::map< ECbmModuleId, TH1D * > fDigiTimeHistos = {}
 

Detailed Description

QA task class for digi events produced by the event builder.

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
15.03.2022

Currently implemented functionality: histogram the digi time within each event. To be expanded for more QA figures. The histograms are published to the THttpServer.

Definition at line 30 of file CbmTaskDigiEventQa.h.

Constructor & Destructor Documentation

◆ CbmTaskDigiEventQa() [1/2]

CbmTaskDigiEventQa::CbmTaskDigiEventQa ( )

Constructor.

Definition at line 30 of file CbmTaskDigiEventQa.cxx.

◆ CbmTaskDigiEventQa() [2/2]

CbmTaskDigiEventQa::CbmTaskDigiEventQa ( const CbmTaskDigiEventQa & )
delete

Copy constructor (disabled)

◆ ~CbmTaskDigiEventQa()

CbmTaskDigiEventQa::~CbmTaskDigiEventQa ( )
virtual

Destructor.

Definition at line 35 of file CbmTaskDigiEventQa.cxx.

Member Function Documentation

◆ ClassDef()

CbmTaskDigiEventQa::ClassDef ( CbmTaskDigiEventQa ,
1  )
private

◆ Config()

void CbmTaskDigiEventQa::Config ( const cbm::algo::evbuild::Config & config)

Configuration.

Parameters
configReconstruction configuration

Histograms are created with limits adjusted to the windows use by the event builder.

Definition at line 40 of file CbmTaskDigiEventQa.cxx.

References BORDER, cbm::algo::evbuild::Config::fBuilder, fConfig, cbm::algo::evbuild::DigiEventQaConfig::fData, fDigiTimeHistos, cbm::algo::evbuild::EventBuilderConfig::fWindows, NUM_BINS, and ToString().

◆ Exec()

◆ Finish()

void CbmTaskDigiEventQa::Finish ( )
virtual

Finish timeslice.

Definition at line 103 of file CbmTaskDigiEventQa.cxx.

References fDigiTimeHistos, fExecTime, fNumEvents, fNumTs, and ToString().

◆ Init()

InitStatus CbmTaskDigiEventQa::Init ( )
privatevirtual

Task initialisation.

Definition at line 123 of file CbmTaskDigiEventQa.cxx.

References fAlgo, fConfig, fDigiTimeHistos, and fEvents.

◆ operator=()

CbmTaskDigiEventQa & CbmTaskDigiEventQa::operator= ( const CbmTaskDigiEventQa & )
delete

Assignment operator (disabled)

◆ ToTH1D()

Member Data Documentation

◆ fAlgo

std::unique_ptr<cbm::algo::evbuild::DigiEventQa> CbmTaskDigiEventQa::fAlgo
private

Definition at line 84 of file CbmTaskDigiEventQa.h.

Referenced by Init().

◆ fConfig

cbm::algo::evbuild::DigiEventQaConfig CbmTaskDigiEventQa::fConfig
private

Definition at line 85 of file CbmTaskDigiEventQa.h.

Referenced by Config(), and Init().

◆ fDigiTimeHistos

std::map<ECbmModuleId, TH1D*> CbmTaskDigiEventQa::fDigiTimeHistos = {}
private

Definition at line 88 of file CbmTaskDigiEventQa.h.

Referenced by Config(), Exec(), Finish(), and Init().

◆ fEvents

const std::vector<CbmDigiEvent>* CbmTaskDigiEventQa::fEvents = nullptr
private

Definition at line 78 of file CbmTaskDigiEventQa.h.

Referenced by Exec(), and Init().

◆ fExecTime

double CbmTaskDigiEventQa::fExecTime = 0.
private

Execution time [s].

Definition at line 82 of file CbmTaskDigiEventQa.h.

Referenced by Exec(), and Finish().

◆ fNumDigis

size_t CbmTaskDigiEventQa::fNumDigis = 0
private

Number of analysed digis.

Definition at line 81 of file CbmTaskDigiEventQa.h.

◆ fNumEvents

size_t CbmTaskDigiEventQa::fNumEvents = 0
private

Number of analysed events.

Definition at line 80 of file CbmTaskDigiEventQa.h.

Referenced by Exec(), and Finish().

◆ fNumTs

size_t CbmTaskDigiEventQa::fNumTs = 0
private

Input data (events)

Number of processed timeslices

Definition at line 79 of file CbmTaskDigiEventQa.h.

Referenced by Exec(), and Finish().


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