CbmRoot
Loading...
Searching...
No Matches
cbm::algo::tof::HitfindQa Class Reference

A QA module for the BMON hit-finder. More...

#include <TofHitfindQa.h>

Inheritance diagram for cbm::algo::tof::HitfindQa:
[legend]
Collaboration diagram for cbm::algo::tof::HitfindQa:
[legend]

Public Member Functions

 HitfindQa (const std::unique_ptr< qa::Manager > &pManager, std::string_view name)
 Constructor.
 
 HitfindQa ()=default
 Constructor from the configuration object.
 
 HitfindQa (const HitfindQa &)=delete
 Copy constructor.
 
 HitfindQa (HitfindQa &&)=delete
 Move constructor.
 
 ~HitfindQa ()=default
 Destructor.
 
HitfindQaoperator= (const HitfindQa &)=delete
 Copy assignment operator.
 
HitfindQaoperator= (HitfindQa &&)=delete
 Move assignment operator.
 
void Exec ()
 Executes the task, fills the histograms.
 
void Init ()
 Initialized the task.
 
void InitParameters (const HitfindSetup &hitSetup)
 Initialisation of the parameters.
 
void RegisterHits (const PartitionedVector< tof::Hit > *pHits)
 Registers a sample of hits.
 
bool IsActive () const
 Checks, if the task is active.
 
const std::string & GetTaskName ()
 Gets name of the task.
 

Protected Member Functions

void AddCanvasConfig (const CanvasConfig &canvas)
 Adds a canvas configuration.
 
template<class Obj , typename... Args>
Obj * MakeObj (Args... args)
 Creates a QA-object and returns the pointer to it.
 

Private Attributes

HitfindQaParameters fParameters
 Parameters of the hit finder QA.
 
const PartitionedVector< tof::Hit > * fpHits {nullptr}
 Pointer to TOF hit sample.
 
std::vector< qa::H1D * > fvphRpcHitOccupX
 Hit occupancy in RPC vs. x.
 
std::vector< qa::H1D * > fvphRpcHitOccupY
 Hit occupancy in RPC vs. y.
 
std::vector< qa::H1D * > fvphRpcHitOccupCh
 Hit occupancy in RPC vs. channel.
 
std::string fsName {}
 Name of the task.
 
std::shared_ptr< Data > fpData {nullptr}
 An instance of the QA data (shared between different tasks)
 

Static Private Attributes

static constexpr int kHitOccupB {200}
 Hit occupancy: n bins.
 
static constexpr double kHitOccupL {-100.}
 Hit occupancy: lower bound [cm].
 
static constexpr double kHitOccupU {+100.}
 Hit occupancy: upper bound [cm].
 

Detailed Description

A QA module for the BMON hit-finder.

Definition at line 36 of file TofHitfindQa.h.

Constructor & Destructor Documentation

◆ HitfindQa() [1/4]

cbm::algo::tof::HitfindQa::HitfindQa ( const std::unique_ptr< qa::Manager > & pManager,
std::string_view name )
inline

Constructor.

Parameters
pManagerPointer to the QA manager
nameName of the QA (directory)

Definition at line 41 of file TofHitfindQa.h.

◆ HitfindQa() [2/4]

cbm::algo::tof::HitfindQa::HitfindQa ( )
default

Constructor from the configuration object.

◆ HitfindQa() [3/4]

cbm::algo::tof::HitfindQa::HitfindQa ( const HitfindQa & )
delete

Copy constructor.

◆ HitfindQa() [4/4]

cbm::algo::tof::HitfindQa::HitfindQa ( HitfindQa && )
delete

Move constructor.

◆ ~HitfindQa()

cbm::algo::tof::HitfindQa::~HitfindQa ( )
default

Destructor.

Member Function Documentation

◆ AddCanvasConfig()

void cbm::algo::qa::TaskHeader::AddCanvasConfig ( const CanvasConfig & canvas)
inlineprotectedinherited

◆ Exec()

◆ GetTaskName()

const std::string & cbm::algo::qa::TaskHeader::GetTaskName ( )
inlineinherited

◆ Init()

◆ InitParameters()

void cbm::algo::tof::HitfindQa::InitParameters ( const HitfindSetup & hitSetup)
inline

Initialisation of the parameters.

Definition at line 68 of file TofHitfindQa.h.

References fParameters.

◆ IsActive()

bool cbm::algo::qa::TaskHeader::IsActive ( ) const
inlineinherited

Checks, if the task is active.

The task can be inactive, if a nullptr qa::Manager was passed to the constructor. If it is the case, the fpData instance is not defined, and no actions on the task should be performed

Definition at line 54 of file QaTaskHeader.h.

References cbm::algo::qa::TaskHeader::fpData.

Referenced by cbm::algo::bmon::HitfindQa::Exec(), cbm::algo::ca::Qa::Exec(), Exec(), cbm::algo::bmon::HitfindQa::Init(), cbm::algo::ca::Qa::Init(), Init(), cbm::algo::TrackingChain::Init(), and cbm::algo::TrackingChain::PrepareOutput().

◆ MakeObj()

template<class Obj , typename... Args>
Obj * cbm::algo::qa::TaskHeader::MakeObj ( Args... args)
inlineprotectedinherited

Creates a QA-object and returns the pointer to it.

Template Parameters
ObjA type of the histogram (H1D, H2D, Prof1D, Prof2D)
Args...A signature of the histogram constructor
Parameters
argsParameters, passed to a histogram constructor

Definition at line 69 of file QaTaskHeader.h.

References cbm::algo::qa::TaskHeader::fpData.

Referenced by cbm::algo::bmon::HitfindQa::Init(), cbm::algo::ca::Qa::Init(), cbm::algo::evbuild::V0TriggerQa::Init(), cbm::algo::kfp::V0FinderQa::Init(), and Init().

◆ operator=() [1/2]

HitfindQa & cbm::algo::tof::HitfindQa::operator= ( const HitfindQa & )
delete

Copy assignment operator.

◆ operator=() [2/2]

HitfindQa & cbm::algo::tof::HitfindQa::operator= ( HitfindQa && )
delete

Move assignment operator.

◆ RegisterHits()

void cbm::algo::tof::HitfindQa::RegisterHits ( const PartitionedVector< tof::Hit > * pHits)
inline

Registers a sample of hits.

Parameters
pHitsA pointer to a vector of hits

Definition at line 72 of file TofHitfindQa.h.

References fpHits.

Member Data Documentation

◆ fParameters

HitfindQaParameters cbm::algo::tof::HitfindQa::fParameters
private

Parameters of the hit finder QA.

Definition at line 81 of file TofHitfindQa.h.

Referenced by Exec(), Init(), and InitParameters().

◆ fpData

std::shared_ptr<Data> cbm::algo::qa::TaskHeader::fpData {nullptr}
privateinherited

An instance of the QA data (shared between different tasks)

Definition at line 76 of file QaTaskHeader.h.

Referenced by cbm::algo::qa::TaskHeader::AddCanvasConfig(), cbm::algo::qa::TaskHeader::IsActive(), cbm::algo::qa::TaskHeader::MakeObj(), and cbm::algo::qa::TaskHeader::TaskHeader().

◆ fpHits

const PartitionedVector<tof::Hit>* cbm::algo::tof::HitfindQa::fpHits {nullptr}
private

Pointer to TOF hit sample.

Definition at line 84 of file TofHitfindQa.h.

Referenced by Exec(), and RegisterHits().

◆ fsName

std::string cbm::algo::qa::TaskHeader::fsName {}
privateinherited

Name of the task.

Definition at line 75 of file QaTaskHeader.h.

Referenced by cbm::algo::qa::TaskHeader::GetTaskName().

◆ fvphRpcHitOccupCh

std::vector<qa::H1D*> cbm::algo::tof::HitfindQa::fvphRpcHitOccupCh
private

Hit occupancy in RPC vs. channel.

Definition at line 89 of file TofHitfindQa.h.

Referenced by Exec(), and Init().

◆ fvphRpcHitOccupX

std::vector<qa::H1D*> cbm::algo::tof::HitfindQa::fvphRpcHitOccupX
private

Hit occupancy in RPC vs. x.

Definition at line 87 of file TofHitfindQa.h.

Referenced by Exec(), and Init().

◆ fvphRpcHitOccupY

std::vector<qa::H1D*> cbm::algo::tof::HitfindQa::fvphRpcHitOccupY
private

Hit occupancy in RPC vs. y.

Definition at line 88 of file TofHitfindQa.h.

Referenced by Exec(), and Init().

◆ kHitOccupB

int cbm::algo::tof::HitfindQa::kHitOccupB {200}
staticconstexprprivate

Hit occupancy: n bins.

Definition at line 76 of file TofHitfindQa.h.

Referenced by Init().

◆ kHitOccupL

double cbm::algo::tof::HitfindQa::kHitOccupL {-100.}
staticconstexprprivate

Hit occupancy: lower bound [cm].

Definition at line 77 of file TofHitfindQa.h.

Referenced by Init().

◆ kHitOccupU

double cbm::algo::tof::HitfindQa::kHitOccupU {+100.}
staticconstexprprivate

Hit occupancy: upper bound [cm].

Definition at line 78 of file TofHitfindQa.h.

Referenced by Init().


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