CbmRoot
|
QA task class for digi events produced by the event builder. More...
#include <CbmTaskDigiEventQa.h>
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. | |
CbmTaskDigiEventQa & | operator= (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::DigiEventQa > | fAlgo |
cbm::algo::evbuild::DigiEventQaConfig | fConfig |
std::map< ECbmModuleId, TH1D * > | fDigiTimeHistos = {} |
QA task class for digi events produced by the event builder.
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.
CbmTaskDigiEventQa::CbmTaskDigiEventQa | ( | ) |
Constructor.
Definition at line 30 of file CbmTaskDigiEventQa.cxx.
|
delete |
Copy constructor (disabled)
|
virtual |
Destructor.
Definition at line 35 of file CbmTaskDigiEventQa.cxx.
|
private |
void CbmTaskDigiEventQa::Config | ( | const cbm::algo::evbuild::Config & | config | ) |
Configuration.
config | Reconstruction 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().
|
virtual |
Task execution.
Definition at line 66 of file CbmTaskDigiEventQa.cxx.
References cbm::algo::evbuild::DigiEventQaData::fDigiTimeHistos, fDigiTimeHistos, fEvents, fExecTime, cbm::algo::evbuild::DigiEventQaData::fNumEvents, fNumEvents, fNumTs, cbm::algo::DigiEvent::FromCbmDigiEvents(), and ToTH1D().
|
virtual |
Finish timeslice.
Definition at line 103 of file CbmTaskDigiEventQa.cxx.
References fDigiTimeHistos, fExecTime, fNumEvents, fNumTs, and ToString().
|
privatevirtual |
Task initialisation.
Definition at line 123 of file CbmTaskDigiEventQa.cxx.
References fAlgo, fConfig, fDigiTimeHistos, and fEvents.
|
delete |
Assignment operator (disabled)
|
private |
Create a ROOT TH1D from a H1D object.
Source | histogram |
ROOT | histogram |
Definition at line 161 of file CbmTaskDigiEventQa.cxx.
References cbm::algo::qa::H1D::GetBinContent(), cbm::algo::qa::Histogram< Axes, Storage, TotalSums >::GetEntries(), cbm::algo::qa::Histogram< Axes, Storage, TotalSums >::GetMaxX(), cbm::algo::qa::Histogram< Axes, Storage, TotalSums >::GetMinX(), cbm::algo::qa::Histogram< Axes, Storage, TotalSums >::GetName(), and cbm::algo::qa::Histogram< Axes, Storage, TotalSums >::GetNbinsX().
Referenced by Exec().
|
private |
Definition at line 84 of file CbmTaskDigiEventQa.h.
Referenced by Init().
|
private |
Definition at line 85 of file CbmTaskDigiEventQa.h.
|
private |
|
private |
Definition at line 78 of file CbmTaskDigiEventQa.h.
|
private |
Execution time [s].
Definition at line 82 of file CbmTaskDigiEventQa.h.
|
private |
Number of analysed digis.
Definition at line 81 of file CbmTaskDigiEventQa.h.
|
private |
Number of analysed events.
Definition at line 80 of file CbmTaskDigiEventQa.h.
|
private |
Input data (events)
Number of processed timeslices
Definition at line 79 of file CbmTaskDigiEventQa.h.