CbmRoot
|
A QA module for the BMON hit-finder. More...
#include <TofHitfindQa.h>
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. | |
HitfindQa & | operator= (const HitfindQa &)=delete |
Copy assignment operator. | |
HitfindQa & | operator= (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]. | |
A QA module for the BMON hit-finder.
Definition at line 36 of file TofHitfindQa.h.
|
inline |
Constructor.
pManager | Pointer to the QA manager |
name | Name of the QA (directory) |
Definition at line 41 of file TofHitfindQa.h.
|
default |
Constructor from the configuration object.
|
delete |
Copy constructor.
|
delete |
Move constructor.
|
default |
Destructor.
|
inlineprotectedinherited |
Adds a canvas configuration.
canvas | A CanvasConfig object |
Definition at line 62 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().
void HitfindQa::Exec | ( | ) |
Executes the task, fills the histograms.
Definition at line 87 of file TofHitfindQa.cxx.
References fParameters, fpHits, fvphRpcHitOccupCh, fvphRpcHitOccupX, fvphRpcHitOccupY, CbmTofAddress::GetChannelId(), CbmTofAddress::GetModFullId(), hits, cbm::algo::qa::TaskHeader::IsActive(), L_, cbm::algo::tof::HitfindQaParameters::lookupMap, and CbmTofAddress::ToString().
|
inlineinherited |
Gets name of the task.
Definition at line 57 of file QaTaskHeader.h.
References cbm::algo::qa::TaskHeader::fsName.
Referenced by cbm::algo::bmon::HitfindQa::Init(), cbm::algo::ca::Qa::Init(), cbm::algo::evbuild::V0TriggerQa::Init(), and Init().
void HitfindQa::Init | ( | ) |
Initialized the task.
Definition at line 22 of file TofHitfindQa.cxx.
References cbm::algo::qa::TaskHeader::AddCanvasConfig(), fParameters, fvphRpcHitOccupCh, fvphRpcHitOccupX, fvphRpcHitOccupY, cbm::algo::qa::TaskHeader::GetTaskName(), cbm::algo::qa::TaskHeader::IsActive(), kHitOccupB, kHitOccupL, kHitOccupU, cbm::algo::qa::TaskHeader::MakeObj(), cbm::algo::tof::HitfindQaParameters::rpcs, and CbmTofAddress::ToString().
|
inline |
Initialisation of the parameters.
Definition at line 68 of file TofHitfindQa.h.
References fParameters.
|
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().
|
inlineprotectedinherited |
Creates a QA-object and returns the pointer to it.
Obj | A type of the histogram (H1D, H2D, Prof1D, Prof2D) |
Args... | A signature of the histogram constructor |
args | Parameters, 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().
Copy assignment operator.
|
inline |
Registers a sample of hits.
pHits | A pointer to a vector of hits |
Definition at line 72 of file TofHitfindQa.h.
References fpHits.
|
private |
Parameters of the hit finder QA.
Definition at line 81 of file TofHitfindQa.h.
Referenced by Exec(), Init(), and InitParameters().
|
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().
|
private |
Pointer to TOF hit sample.
Definition at line 84 of file TofHitfindQa.h.
Referenced by Exec(), and RegisterHits().
|
privateinherited |
Name of the task.
Definition at line 75 of file QaTaskHeader.h.
Referenced by cbm::algo::qa::TaskHeader::GetTaskName().
|
private |
Hit occupancy in RPC vs. channel.
Definition at line 89 of file TofHitfindQa.h.
|
private |
Hit occupancy in RPC vs. x.
Definition at line 87 of file TofHitfindQa.h.
|
private |
Hit occupancy in RPC vs. y.
Definition at line 88 of file TofHitfindQa.h.
|
staticconstexprprivate |
|
staticconstexprprivate |
Hit occupancy: lower bound [cm].
Definition at line 77 of file TofHitfindQa.h.
Referenced by Init().
|
staticconstexprprivate |
Hit occupancy: upper bound [cm].
Definition at line 78 of file TofHitfindQa.h.
Referenced by Init().