CbmRoot
|
A simple QA for the V0 finder. More...
#include <CbmKFV0FinderQa.h>
Public Types | |
enum class | EStoringMode { kSAMEDIR , kSUBDIR } |
using | ObjList_t = std::vector<std::pair<TObject*, TString>> |
Public Member Functions | |
V0FinderQa (bool bUseMc) | |
Constructor from parameters. | |
~V0FinderQa ()=default | |
Destructor. | |
V0FinderQa (const V0FinderQa &)=delete | |
V0FinderQa (V0FinderQa &&)=delete | |
V0FinderQa & | operator= (const V0FinderQa &)=delete |
V0FinderQa & | operator= (V0FinderQa &&)=delete |
void | InitHistograms () |
Initializes histograms. | |
void | WriteHistograms (const TString &) |
Writes histograms into file. | |
const char * | GetConfigName () const |
Gets config name. | |
template<typename T , typename... Args> | |
T * | MakeQaObject (TString sName, TString sTitle, Args... args) |
void | MakeQaDirectory (TString sName) |
void | SetConfigName (const char *path) |
Creates a ROOT object. | |
void | SetRootFolderName (const TString &path) |
Sets a common root path to the objects in the output file. | |
void | SetStoringMode (EStoringMode mode) |
Set storing mode. | |
Public Attributes | |
TH1D * | fph_tof_lst_hit_time {nullptr} |
Time of tof hits, used for track momentum estimation. | |
TH1D * | fph_beta_all {nullptr} |
Beta of tracks. | |
TH1D * | fph_dca {nullptr} |
Track DCA to origin. | |
TH2D * | fph_dca2D {nullptr} |
Track DCA to origin (2D) | |
TH1D * | fph_dca_projectionX {nullptr} |
Track DCA to origin (x-component) | |
TH1D * | fph_dca_projectionY {nullptr} |
Track DCA to origin (y-component) | |
TH2D * | fph_track_rapidity_vs_pt_all {nullptr} |
Phase space of all accepted tracks. | |
TH2D * | fph_track_rapidity_vs_pt_pion {nullptr} |
Phase space of pion candidates. | |
TH2D * | fph_track_rapidity_vs_pt_proton {nullptr} |
Phase space of proton candidates. | |
TH1D * | fph_lambda_cand_mass {nullptr} |
Mass of lambda candidates. | |
Protected Member Functions | |
template<typename T > | |
void | CheckProperty (T &&property, const char *name) const |
Function to check, if a property is defined. | |
template<class Config > | |
std::optional< Config > | ReadSpecificConfig () const |
Reads the specific configuration structure from the YAML node. | |
virtual void | SetTH1Properties (TH1 *pHist) const |
Applies properties on the histogram created with the MakeQaObject function. | |
virtual void | SetTH2Properties (TH2 *pHist) const |
Applies properties on the histogram created with the MakeQaObject function. | |
virtual void | SetTProfile2DProperties (TProfile2D *pHist) const |
Applies properties on the profile 2D created with the MakeQaObject function. | |
virtual void | SetCanvasProperties (TCanvas *pCanv) const |
Applies properties on the canvas created with the MakeQaObject funciton. | |
void | WriteToFile (TFile *pOutFile) const |
Writes objects into file. | |
Protected Attributes | |
TString | fsRootFolderName = "" |
Name of root folder. | |
TString | fsConfigName = "" |
Name of configuration file. | |
TString | fsPrefix = "" |
Unique prefix for all writeable root. | |
EStoringMode | fStoringMode = EStoringMode::kSUBDIR |
Objects storing mode. | |
std::shared_ptr< ObjList_t > | fpvObjList = nullptr |
List of registered ROOT objects. | |
YAML::Node | fConfigNode {} |
Configuration node. | |
Private Member Functions | |
ClassDef (V0FinderQa, 0) | |
template<typename T , typename... Args> | |
T * | ConstructAndRegisterQaObject (TString name, Args... args) |
Creates and registers a ROOT object. | |
Private Attributes | |
bool | fbUseMc {false} |
A simple QA for the V0 finder.
Definition at line 29 of file CbmKFV0FinderQa.h.
|
inherited |
|
stronginherited |
|
inline |
Constructor from parameters.
bUseMc | If MC truth should be used |
Definition at line 33 of file CbmKFV0FinderQa.h.
|
default |
Destructor.
|
delete |
|
delete |
|
protectedinherited |
Function to check, if a property is defined.
property | A property to be tested |
name | A name of property (used for logging) |
Definition at line 178 of file CbmQaIO.h.
Referenced by CbmQaIO::MakeQaObject().
|
private |
|
privateinherited |
Creates and registers a ROOT object.
name | A name of the ROOT object, which can contain a sub-directory |
args | Other arguments, passed to the ROOT object constructor |
Definition at line 198 of file CbmQaIO.h.
References CbmQaIO::fpvObjList, CbmQaIO::fsRootFolderName, CbmQaIO::fStoringMode, CbmQaIO::kSUBDIR, CbmQaIO::SetCanvasProperties(), CbmQaIO::SetTH1Properties(), CbmQaIO::SetTH2Properties(), and CbmQaIO::SetTProfile2DProperties().
Referenced by CbmQaIO::MakeQaObject().
|
inlineinherited |
void V0FinderQa::InitHistograms | ( | ) |
Initializes histograms.
Definition at line 20 of file CbmKFV0FinderQa.cxx.
References fph_beta_all, fph_dca, fph_dca2D, fph_dca_projectionX, fph_dca_projectionY, fph_lambda_cand_mass, fph_tof_lst_hit_time, and CbmQaIO::MakeQaObject().
|
inherited |
Definition at line 132 of file CbmQaIO.cxx.
References CbmQaIO::fpvObjList, and CbmQaIO::fsRootFolderName.
Referenced by cbm::ca::InputQaSetup::InitQa(), and CbmCaInputQaTof::InitQa().
|
inherited |
Definition at line 261 of file CbmQaIO.h.
References CbmQaIO::CheckProperty(), CbmQaIO::ConstructAndRegisterQaObject(), and CbmQaIO::fConfigNode.
Referenced by cbm::ca::OutputQa::Check(), cbm::ca::TrackFitQa::CreatePullPlot(), cbm::ca::TrackFitQa::CreateResidualPlot(), cbm::ca::InputQaSetup::CreateSummary(), cbm::ca::OutputQa::CreateSummary(), CbmCaInputQaSts::CreateSummary(), cbm::ca::OutputQa::DrawEvent(), cbm::ca::TrackFitQa::Init(), cbm::ca::TrackTypeQa::Init(), InitHistograms(), cbm::ca::InputQaSetup::InitQa(), CbmCaInputQaSts::InitQa(), and CbmCaInputQaTof::InitQa().
|
delete |
|
delete |
|
inlineprotectedinherited |
Reads the specific configuration structure from the YAML node.
Config | Type of the configuration class |
The function is to be called in the user-defined class method InitDataBranches
Definition at line 127 of file CbmQaIO.h.
References CbmQaIO::fConfigNode, and cbm::algo::yaml::Read().
|
protectedvirtualinherited |
Applies properties on the canvas created with the MakeQaObject funciton.
pCanv | Pointer to the canvas |
Definition at line 84 of file CbmQaIO.cxx.
Referenced by CbmQaIO::ConstructAndRegisterQaObject().
|
inherited |
Creates a ROOT object.
Sets config name
name | A path to the config |
Definition at line 95 of file CbmQaIO.cxx.
References CbmQaIO::fConfigNode, CbmQaIO::fsConfigName, and CbmQaIO::fsPrefix.
|
inlineinherited |
Sets a common root path to the objects in the output file.
path | A path to the object |
Definition at line 109 of file CbmQaIO.h.
References CbmQaIO::fsRootFolderName.
Referenced by CbmQaTask::CbmQaTask().
|
inlineinherited |
Set storing mode.
Definition at line 112 of file CbmQaIO.h.
References CbmQaIO::fStoringMode.
Referenced by CbmCaInputQaBase< DetID >::CbmCaInputQaBase().
|
protectedvirtualinherited |
Applies properties on the histogram created with the MakeQaObject function.
pHist | Pointer to the histogram |
Reimplemented in cbm::ca::TrackTypeQa.
Definition at line 36 of file CbmQaIO.cxx.
References cbm::qa::util::GetHistStats().
Referenced by CbmQaIO::ConstructAndRegisterQaObject().
|
protectedvirtualinherited |
Applies properties on the histogram created with the MakeQaObject function.
pHist | Pointer to the histogram |
Definition at line 50 of file CbmQaIO.cxx.
Referenced by CbmQaIO::ConstructAndRegisterQaObject().
|
protectedvirtualinherited |
Applies properties on the profile 2D created with the MakeQaObject function.
pHist | Pointer to the profile |
Definition at line 67 of file CbmQaIO.cxx.
Referenced by CbmQaIO::ConstructAndRegisterQaObject().
void V0FinderQa::WriteHistograms | ( | const TString & | fileName | ) |
Writes histograms into file.
Definition at line 59 of file CbmKFV0FinderQa.cxx.
References CbmQaIO::WriteToFile().
|
protectedinherited |
Writes objects into file.
pOutFile | Pointer to output ROOT file |
Definition at line 116 of file CbmQaIO.cxx.
References CbmQaIO::fpvObjList.
Referenced by CbmQaTask::Finish(), and WriteHistograms().
|
private |
Definition at line 62 of file CbmKFV0FinderQa.h.
|
protectedinherited |
Configuration node.
Definition at line 164 of file CbmQaIO.h.
Referenced by CbmQaTask::CompareQaObjects(), CbmQaIO::MakeQaObject(), CbmQaTask::ReadCheckListFromConfig(), CbmQaIO::ReadSpecificConfig(), and CbmQaIO::SetConfigName().
TH1D* cbm::kfp::V0FinderQa::fph_beta_all {nullptr} |
TH1D* cbm::kfp::V0FinderQa::fph_dca {nullptr} |
Track DCA to origin.
Definition at line 52 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
TH2D* cbm::kfp::V0FinderQa::fph_dca2D {nullptr} |
Track DCA to origin (2D)
Definition at line 53 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
TH1D* cbm::kfp::V0FinderQa::fph_dca_projectionX {nullptr} |
Track DCA to origin (x-component)
Definition at line 54 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
TH1D* cbm::kfp::V0FinderQa::fph_dca_projectionY {nullptr} |
Track DCA to origin (y-component)
Definition at line 55 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
TH1D* cbm::kfp::V0FinderQa::fph_lambda_cand_mass {nullptr} |
Mass of lambda candidates.
Definition at line 59 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
TH1D* cbm::kfp::V0FinderQa::fph_tof_lst_hit_time {nullptr} |
Time of tof hits, used for track momentum estimation.
Definition at line 50 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
TH2D* cbm::kfp::V0FinderQa::fph_track_rapidity_vs_pt_all {nullptr} |
Phase space of all accepted tracks.
Definition at line 56 of file CbmKFV0FinderQa.h.
TH2D* cbm::kfp::V0FinderQa::fph_track_rapidity_vs_pt_pion {nullptr} |
Phase space of pion candidates.
Definition at line 57 of file CbmKFV0FinderQa.h.
TH2D* cbm::kfp::V0FinderQa::fph_track_rapidity_vs_pt_proton {nullptr} |
Phase space of proton candidates.
Definition at line 58 of file CbmKFV0FinderQa.h.
|
protectedinherited |
List of registered ROOT objects.
Definition at line 162 of file CbmQaIO.h.
Referenced by CbmQaIO::CbmQaIO(), CbmQaTask::CompareQaObjects(), CbmQaIO::ConstructAndRegisterQaObject(), cbm::ca::TrackTypeQa::Init(), cbm::ca::OutputQa::InitQa(), CbmQaIO::MakeQaDirectory(), and CbmQaIO::WriteToFile().
|
protectedinherited |
Name of configuration file.
Definition at line 158 of file CbmQaIO.h.
Referenced by CbmQaIO::GetConfigName(), and CbmQaIO::SetConfigName().
|
protectedinherited |
Unique prefix for all writeable root.
Definition at line 159 of file CbmQaIO.h.
Referenced by CbmQaIO::CbmQaIO(), cbm::ca::TrackFitQa::CreatePullPlot(), cbm::ca::TrackTypeQa::Init(), cbm::ca::OutputQa::InitQa(), and CbmQaIO::SetConfigName().
|
protectedinherited |
Name of root folder.
Definition at line 157 of file CbmQaIO.h.
Referenced by CbmQaTask::CompareQaObjects(), CbmQaIO::ConstructAndRegisterQaObject(), cbm::ca::TrackTypeQa::Init(), cbm::ca::OutputQa::InitQa(), CbmQaIO::MakeQaDirectory(), and CbmQaIO::SetRootFolderName().
|
protectedinherited |
Objects storing mode.
Definition at line 161 of file CbmQaIO.h.
Referenced by CbmQaTask::CbmQaTask(), CbmQaIO::ConstructAndRegisterQaObject(), CbmQaIO::SetStoringMode(), cbm::ca::TrackFitQa::TrackFitQa(), and cbm::ca::TrackTypeQa::TrackTypeQa().