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

A QA-task for the V0-finding algorithm. More...

#include <KfpV0FinderQa.h>

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

Public Member Functions

 V0FinderQa (const std::unique_ptr< qa::Manager > &pManager, std::string_view name)
 Constructor.
 
 V0FinderQa (const V0FinderQa &)=delete
 Copy constructor.
 
 V0FinderQa (V0FinderQa &&)=delete
 Move constructor.
 
V0FinderQaoperator= (const V0FinderQa &)=delete
 Copy assignment operator.
 
V0FinderQaoperator= (V0FinderQa &&)=delete
 Move assignment operator.
 
void Exec (const RecoResults &recoEvent, const V0Finder &v0Finder)
 Executes the task, fills the histograms.
 
void Init ()
 Initialized the task.
 
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

qa::H1D * fvphMassLambdaCand {nullptr}
 Mass of Lambda-candidates.
 
qa::H1D * fvphMassAll {nullptr}
 Mass of all particles in the topology.
 
qa::H1D * fvphDcaAll {nullptr}
 DCA of particles to origin.
 
qa::H1D * fvphBetaAll {nullptr}
 Speed of all particles.
 
qa::H1D * fvphBetaPion {nullptr}
 Speed of pion-candidates.
 
qa::H1D * fvphBetaProton {nullptr}
 Speed of proton-candidates.
 
qa::H1D * fvphMomAll {nullptr}
 Speed of all particles.
 
qa::H1D * fvphMomPion {nullptr}
 Speed of pion-candidates.
 
qa::H1D * fvphMomProton {nullptr}
 Speed of proton-candidates.
 
std::string fsName {}
 Name of the task.
 
std::shared_ptr< DatafpData {nullptr}
 An instance of the QA data (shared between different tasks)
 

Static Private Attributes

static constexpr int kMassB = 50
 Lambda-candidate mass: number of bins.
 
static constexpr double kMassL = 1.08
 Lambda-candidate mass: lower bound [GeV/c2].
 
static constexpr double kMassU = 1.28
 Lambda-candidate mass: upper bound [GeV/c2].
 
static constexpr int kDcaB = 240
 DCA to origin: number of bins.
 
static constexpr double kDcaL = 0.
 DCA to origin: lower bound [cm].
 
static constexpr double kDcaU = 12.
 DCA to origin: upper bound [cm].
 
static constexpr int kBetaB = 240
 Speed of particle: number of bins.
 
static constexpr double kBetaL = 0.
 Speed of particle: lower bound [c].
 
static constexpr double kBetaU = 1.2
 Speed of particle: upper bound [c].
 

Detailed Description

A QA-task for the V0-finding algorithm.

Definition at line 35 of file KfpV0FinderQa.h.

Constructor & Destructor Documentation

◆ V0FinderQa() [1/3]

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

Constructor.

Parameters
pManagerPointer to the QA manager
nameName of the QA

Definition at line 40 of file KfpV0FinderQa.h.

◆ V0FinderQa() [2/3]

cbm::algo::kfp::V0FinderQa::V0FinderQa ( const V0FinderQa & )
delete

Copy constructor.

◆ V0FinderQa() [3/3]

cbm::algo::kfp::V0FinderQa::V0FinderQa ( V0FinderQa && )
delete

Move constructor.

Member Function Documentation

◆ AddCanvasConfig()

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

◆ Exec()

void V0FinderQa::Exec ( const RecoResults & recoEvent,
const V0Finder & v0Finder )

Executes the task, fills the histograms.

Parameters
recoEventA reconstructed event instance
v0FinderA V0-finder instance

Definition at line 51 of file KfpV0FinderQa.cxx.

◆ GetTaskName()

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

◆ Init()

void V0FinderQa::Init ( )

Initialized the task.

Definition at line 20 of file KfpV0FinderQa.cxx.

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

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

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

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

◆ operator=() [1/2]

V0FinderQa & cbm::algo::kfp::V0FinderQa::operator= ( const V0FinderQa & )
delete

Copy assignment operator.

◆ operator=() [2/2]

V0FinderQa & cbm::algo::kfp::V0FinderQa::operator= ( V0FinderQa && )
delete

Move assignment operator.

Member Data Documentation

◆ 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 AddCanvasConfig(), IsActive(), MakeObj(), and TaskHeader().

◆ fsName

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

Name of the task.

Definition at line 75 of file QaTaskHeader.h.

Referenced by GetTaskName(), and TaskHeader().

◆ fvphBetaAll

qa::H1D* cbm::algo::kfp::V0FinderQa::fvphBetaAll {nullptr}
private

Speed of all particles.

Definition at line 78 of file KfpV0FinderQa.h.

◆ fvphBetaPion

qa::H1D* cbm::algo::kfp::V0FinderQa::fvphBetaPion {nullptr}
private

Speed of pion-candidates.

Definition at line 79 of file KfpV0FinderQa.h.

◆ fvphBetaProton

qa::H1D* cbm::algo::kfp::V0FinderQa::fvphBetaProton {nullptr}
private

Speed of proton-candidates.

Definition at line 80 of file KfpV0FinderQa.h.

◆ fvphDcaAll

qa::H1D* cbm::algo::kfp::V0FinderQa::fvphDcaAll {nullptr}
private

DCA of particles to origin.

Definition at line 77 of file KfpV0FinderQa.h.

◆ fvphMassAll

qa::H1D* cbm::algo::kfp::V0FinderQa::fvphMassAll {nullptr}
private

Mass of all particles in the topology.

Definition at line 76 of file KfpV0FinderQa.h.

◆ fvphMassLambdaCand

qa::H1D* cbm::algo::kfp::V0FinderQa::fvphMassLambdaCand {nullptr}
private

Mass of Lambda-candidates.

Definition at line 75 of file KfpV0FinderQa.h.

◆ fvphMomAll

qa::H1D* cbm::algo::kfp::V0FinderQa::fvphMomAll {nullptr}
private

Speed of all particles.

Definition at line 81 of file KfpV0FinderQa.h.

◆ fvphMomPion

qa::H1D* cbm::algo::kfp::V0FinderQa::fvphMomPion {nullptr}
private

Speed of pion-candidates.

Definition at line 82 of file KfpV0FinderQa.h.

◆ fvphMomProton

qa::H1D* cbm::algo::kfp::V0FinderQa::fvphMomProton {nullptr}
private

Speed of proton-candidates.

Definition at line 83 of file KfpV0FinderQa.h.

◆ kBetaB

int cbm::algo::kfp::V0FinderQa::kBetaB = 240
staticconstexprprivate

Speed of particle: number of bins.

Definition at line 70 of file KfpV0FinderQa.h.

◆ kBetaL

double cbm::algo::kfp::V0FinderQa::kBetaL = 0.
staticconstexprprivate

Speed of particle: lower bound [c].

Definition at line 71 of file KfpV0FinderQa.h.

◆ kBetaU

double cbm::algo::kfp::V0FinderQa::kBetaU = 1.2
staticconstexprprivate

Speed of particle: upper bound [c].

Definition at line 72 of file KfpV0FinderQa.h.

◆ kDcaB

int cbm::algo::kfp::V0FinderQa::kDcaB = 240
staticconstexprprivate

DCA to origin: number of bins.

Definition at line 67 of file KfpV0FinderQa.h.

◆ kDcaL

double cbm::algo::kfp::V0FinderQa::kDcaL = 0.
staticconstexprprivate

DCA to origin: lower bound [cm].

Definition at line 68 of file KfpV0FinderQa.h.

◆ kDcaU

double cbm::algo::kfp::V0FinderQa::kDcaU = 12.
staticconstexprprivate

DCA to origin: upper bound [cm].

Definition at line 69 of file KfpV0FinderQa.h.

◆ kMassB

int cbm::algo::kfp::V0FinderQa::kMassB = 50
staticconstexprprivate

Lambda-candidate mass: number of bins.

Definition at line 64 of file KfpV0FinderQa.h.

◆ kMassL

double cbm::algo::kfp::V0FinderQa::kMassL = 1.08
staticconstexprprivate

Lambda-candidate mass: lower bound [GeV/c2].

Definition at line 65 of file KfpV0FinderQa.h.

◆ kMassU

double cbm::algo::kfp::V0FinderQa::kMassU = 1.28
staticconstexprprivate

Lambda-candidate mass: upper bound [GeV/c2].

Definition at line 66 of file KfpV0FinderQa.h.


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