|
CbmRoot
|
A simple QA for the V0 finder. More...
#include <CbmKFV0FinderQa.h>
Classes | |
| struct | RefHistograms |
| A collection of reference histograms for different analysis stage. More... | |
| struct | RefHistogramsPrt |
| A collection of reference histograms for a particle (specific or all) More... | |
| struct | RefHistogramsV0 |
| A collection of reference histograms for V0 candidates. More... | |
Public Types | |
| using | Cutter_t = typename V0FinderTask::Cutter_t |
| using | XVector4_t = ROOT::Math::XYZTVector |
| using | PVector4_t = ROOT::Math::PxPyPzEVector |
| using | Vector3_t = ROOT::Math::XYZVector |
| enum class | EStoringMode { kSAMEDIR , kSUBDIR } |
| using | ObjList_t = std::vector<std::pair<TObject*, TString>> |
Public Member Functions | |
| V0FinderQa (int verbose, bool bUseMc, ECbmRecoMode recoMode=ECbmRecoMode::Timeslice) | |
| Constructor from parameters. | |
| ~V0FinderQa ()=default | |
| Destructor. | |
| V0FinderQa (const V0FinderQa &)=delete | |
| V0FinderQa (V0FinderQa &&)=delete | |
| V0FinderQa & | operator= (const V0FinderQa &)=delete |
| V0FinderQa & | operator= (V0FinderQa &&)=delete |
| void | Check () |
| Checks QA. | |
| void | ExecQa () |
| Executes QA. | |
| InitStatus | InitQa () |
| Initializes QA. | |
| void | SetFrom (const V0FinderTask *pFinder) |
| Sets data branches from V0FinderTask. | |
| void | InitHistograms () |
| Initializes histograms. | |
| void | WriteHistograms (const TString &) |
| Writes histograms into file. | |
| template<bool IsMixedEvent> | |
| void | FillV0Candidates (const KFParticle &v0cand) |
| bool | CompareQaObjects () |
| Process ROOT objects comparison. | |
| void | DisableEventMode () |
| Disables event-by-event execution. | |
| const std::map< std::string, CheckFlags > & | GetCheckList () const |
| Gets check-list. | |
| const TString & | GetDefaultTag () const |
| Gets default tag. | |
| const std::string & | GetSetupName () const |
| Gets name of the setup. | |
| const TString & | GetVersionTag () const |
| Gets version tag. | |
| bool | IsMCUsed () const |
| Returns flag, whether MC information is used or not in the task. | |
| void | ReadCheckListFromConfig () |
| Reads check-list from the configuration file. | |
| void | SetCheckFile (const std::shared_ptr< TFile > &pCheckFile) |
| Sets check-file. | |
| void | SetCompareOutput (const std::shared_ptr< TFile > &pCompareOutput) |
| Sets compare output file. | |
| void | SetVersionTag (const TString &tag) |
| Sets version tag. | |
| void | SetDefaultTag (const TString &tag) |
| Sets default tag. | |
| void | SetRecoMode (ECbmRecoMode recoMode) |
| Sets data processing (reconstruction) mode. | |
| void | SetSetupName (const char *setup) |
| Sets name of the setup. | |
| 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. | |
Protected Member Functions | |
| virtual void | DeInit () |
| De-initialize the task. | |
| void | Exec (Option_t *) override final |
| FairTask: Defines action of the task in the event/TS. | |
| void | Finish () override final |
| FairTask: Defines action of the task in the end of run. | |
| InitStatus | Init () override final |
| FairTask: Task initialization in the beginning of the run. | |
| InitStatus | ReInit () override final |
| FairTask: Task reinitialization. | |
| virtual void | CreateSummary () |
| Initializes QA-task summary: canvases, tables etc. | |
| int | GetEventNumber () const |
| Get current event number. | |
| template<typename T> | |
| bool | CheckRange (std::string_view name, T var, T lo, T hi) const |
| Checks range of variable. | |
| template<typename T> | |
| bool | CheckRange (std::string_view name, T var, T varErr, T lo, T hi) const |
| Checks range of variable. | |
| bool | CheckRange (TH1 *h, double meanMax, double rmsMin, double rmsMax) |
| Checks ranges for mean and standard deviation. | |
| void | PutSetupNameOnPad (double xMin, double yMin, double xMax, double yMax) |
| Puts setup title on the canvas. | |
| CbmEvent * | GetCurrentEvent () |
| Gets pointer to current event. | |
| void | StoreCheckResult (const std::string &tag, bool result, const std::string &msg="") |
| Stores check flag to the check-list. | |
| 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 | |
| void | FillParticles () |
| Fill particles. | |
| void | FillTracks () |
| Fills track distributions. | |
| template<bool IsMixedEvent> | |
| void | FillV0Candidates (const KFParticle &v0cand) |
| Fills v0 distributions. | |
| void | FillSecondary (RefHistogramsPrt &h, const KFParticle &prt, const V0FinderTask::ParticleInfo &prtInfo) |
| Fills secondary distributions. | |
| void | Refit (const XVector4_t &aX, const XVector4_t &bX, XVector4_t &mX, PVector4_t &aP, PVector4_t &bP, PVector4_t &mP) |
| Refits 4-momenta of daughters. | |
| ClassDef (V0FinderQa, 0) | |
| void | DeInitBase () |
| De-initializes this task. | |
| template<class Obj> | |
| bool | CompareTwoObjects (const TObject *pObjL, const TObject *pObjR, const TString &objName, const ObjectComparisonConfig &cfg) |
| Process object comparison. | |
| ClassDefOverride (CbmQaTask, 0) | |
| template<typename T, typename... Args> | |
| T * | ConstructAndRegisterQaObject (TString name, Args... args) |
| Creates and registers a ROOT object. | |
Private Attributes | |
| bool | fbDataBranchesInitialized {false} |
| bool | fbUseMc {false} |
| std::shared_ptr< const KFParticleTopoReconstructor > | fpTopoReconstructor {nullptr} |
| std::shared_ptr< const Cutter_t > | fpCutter {nullptr} |
| const std::vector< V0FinderTask::TrackInfo > * | fpTrackInfo {nullptr} |
| const std::vector< V0FinderTask::ParticleInfo > * | fpParticleInfo {nullptr} |
| TClonesArray * | fpBrRecoEvents {nullptr} |
| TClonesArray * | fpBrGlobalTracks {nullptr} |
| RefHistograms | fhRefTracksBefore |
| Track distributions before track selection. | |
| RefHistograms | fhRefTracksAfter |
| Track distributions after track selection. | |
| RefHistograms | fhRefSecondaryStored |
| Stored secondary particles. | |
| RefHistograms | fhRefSecondaryUnused |
| Secondary particles, which were not attached to any v0. | |
| RefHistograms | fhRefDaughtersBefore |
| Daughter particle distribution before cuts on v0. | |
| RefHistograms | fhRefDaughtersAfter |
| Daughter particle distribution after cuts on v0. | |
| RefHistogramsV0 | fhRefV0Before |
| V0 distributions before cuts. | |
| RefHistogramsV0 | fhRefV0After |
| V0 distributions after cuts. | |
| RefHistogramsV0 | fhRefMeBefore |
| Mixed-event distributions before cuts. | |
| RefHistogramsV0 | fhRefMeAfter |
| Mixed-event distributions after cuts. | |
| bool | fbUseMC = false |
| Flag, if MC is used. | |
| ECbmRecoMode | fRecoMode = ECbmRecoMode::Timeslice |
| Reconstruction mode. | |
| std::map< std::string, CheckFlags > | fmCheckList |
| A QA check-list map. | |
| TClonesArray * | fpBrEvents = nullptr |
| Pointer to CbmEvent branch. | |
| CbmEvent * | fpCurrentEvent = nullptr |
| Pointer to the current event. | |
| std::string | fsSetupName = "" |
| Name of the setup (to draw on the canvases) | |
| TParameter< int > | fNofEvents {"nEvents", 0} |
| Number of processed events. | |
| TString | fsVersionTag = "" |
| Version tag (git SHA etc.) | |
| TString | fsDefaultTag = "" |
| Default tag (git SHA etc.) | |
| std::shared_ptr< TFile > | fpBenchmarkInput = nullptr |
| A file with default ROOT objects used for the cross-check. | |
| std::shared_ptr< TFile > | fpBenchmarkOutput = nullptr |
| An output file for histograms cross-check. | |
Static Private Attributes | |
| static constexpr int | kBbeta {200} |
| beta: number of bins | |
| static constexpr double | kLbeta {-0.5} |
| beta: lower bound [c] | |
| static constexpr double | kUbeta {+1.5} |
| beta: upper bound [c] | |
| static constexpr int | kBdca_rt_origin {100} |
| DCA rel. to origin: number of bins. | |
| static constexpr double | kLdca_rt_origin {+0.0} |
| DCA rel. to origin: lower bound [cm]. | |
| static constexpr double | kUdca_rt_origin {+10.} |
| DCA rel. to origin: upper bound [cm]. | |
| static constexpr int | kBp {80} |
| abs. momentum : number of bins | |
| static constexpr double | kLp {+0.0} |
| abs. momentum : lower bound [GeV/c] | |
| static constexpr double | kUp {+4.0} |
| abs. momentum : upper bound [GeV/c] | |
| static constexpr int | kBpt {80} |
| transverse momentum : number of bins | |
| static constexpr double | kLpt {+0.0} |
| transverse momentum : lower bound [GeV/c] | |
| static constexpr double | kUpt {+4.0} |
| transverse momentum : upper bound [GeV/c] | |
| static constexpr int | kBopening_angle {150} |
| opening angle: number of bins | |
| static constexpr double | kLopening_angle {+0.0} |
| opening angle: lower bound [radians] | |
| static constexpr double | kUopening_angle {+1.5} |
| opening angle: upper bound [radians] | |
| static constexpr int | kBdca_rt_pv {100} |
| DCA rel. to prim. vertex: number of bins. | |
| static constexpr double | kLdca_rt_pv {+0.0} |
| DCA rel. to prim. vertex: lower bound [cm]. | |
| static constexpr double | kUdca_rt_pv {+1.0} |
| DCA rel. to prim. vertex: upper bound [cm]. | |
| static constexpr int | kBdca_daughters {100} |
| DCA between daughters: number of bins. | |
| static constexpr double | kLdca_daughters {+0.0} |
| DCA between daughters: lower bound [cm]. | |
| static constexpr double | kUdca_daughters {+1.0} |
| DCA between daughters: upper bound [cm]. | |
| static constexpr int | kBdecay_length {100} |
| Decay length: number of bins. | |
| static constexpr double | kLdecay_length {0.0} |
| Decay length: lower bound [cm]. | |
| static constexpr double | kUdecay_length {30.} |
| Decay length: upper bound [cm]. | |
| static constexpr int | kBdecay_vtx_x {200} |
| Decay vertex x-coordinate: number of bins. | |
| static constexpr double | kLdecay_vtx_x {-25.} |
| Decay vertex x-coordinate: lower bound [cm]. | |
| static constexpr double | kUdecay_vtx_x {+25.} |
| Decay vertex x-coordinate: upper bound [cm]. | |
| static constexpr int | kBdecay_vtx_y {200} |
| Decay vertex y-coordinate: number of bins. | |
| static constexpr double | kLdecay_vtx_y {-25.} |
| Decay vertex y-coordinate: lower bound [cm]. | |
| static constexpr double | kUdecay_vtx_y {+25.} |
| Decay vertex y-coordinate: upper bound [cm]. | |
| static constexpr int | kBdecay_vtx_z {200} |
| Decay vertex z-coordinate: number of bins. | |
| static constexpr double | kLdecay_vtx_z {0.0} |
| Decay vertex z-coordinate: lower bound [cm]. | |
| static constexpr double | kUdecay_vtx_z {50.} |
| Decay vertex z-coordinate: upper bound [cm]. | |
| static constexpr int | kBchi2ndf_topo {50} |
| chi2/NDF topology: number of bins | |
| static constexpr double | kLchi2ndf_topo {0.0} |
| chi2/NDF topology: lower bound | |
| static constexpr double | kUchi2ndf_topo {500.} |
| chi2/NDF topology: upper bound | |
| static constexpr int | kBchi2ndf_geo {50} |
| chi2/NDF geometry: number of bins | |
| static constexpr double | kLchi2ndf_geo {0.0} |
| chi2/NDF geometry: lower bound | |
| static constexpr double | kUchi2ndf_geo {50.} |
| chi2/NDF geometry: upper bound | |
| static constexpr int | kBmass {100} |
| Invariant mass: number of bins. | |
| static constexpr double | kLmass {1.08} |
| Invariant mass: lower bound [GeV/c2]. | |
| static constexpr double | kUmass {1.28} |
| Invariant mass: upper bound [GeV/c2]. | |
A simple QA for the V0 finder.
Definition at line 36 of file CbmKFV0FinderQa.h.
| using cbm::kfp::V0FinderQa::Cutter_t = typename V0FinderTask::Cutter_t |
Definition at line 38 of file CbmKFV0FinderQa.h.
|
inherited |
| using cbm::kfp::V0FinderQa::PVector4_t = ROOT::Math::PxPyPzEVector |
Definition at line 40 of file CbmKFV0FinderQa.h.
| using cbm::kfp::V0FinderQa::Vector3_t = ROOT::Math::XYZVector |
Definition at line 41 of file CbmKFV0FinderQa.h.
| using cbm::kfp::V0FinderQa::XVector4_t = ROOT::Math::XYZTVector |
Definition at line 39 of file CbmKFV0FinderQa.h.
|
stronginherited |
|
inline |
Constructor from parameters.
| verbose | Verbosity level |
| bUseMc | If MC truth should be use |
| recoMove | Reconstruction mode |
Definition at line 47 of file CbmKFV0FinderQa.h.
References CbmQaTask::CbmQaTask(), and Timeslice.
Referenced by ClassDef(), operator=(), operator=(), V0FinderQa(), and V0FinderQa().
|
default |
Destructor.
|
delete |
References V0FinderQa().
|
delete |
References V0FinderQa().
|
inlinevirtual |
|
protectedinherited |
Function to check, if a property is defined.
Definition at line 177 of file CbmQaIO.h.
Referenced by MakeQaObject().
|
protectedinherited |
Checks range of variable.
| name | Name of the variable |
| var | Variable to check |
| lo | Lower limit of the variable |
| hi | Upper limit of the variable |
Definition at line 275 of file CbmQaTask.h.
References CheckRange().
Referenced by CheckRange(), and CheckRange().
|
protectedinherited |
Checks range of variable.
| name | Name of the variable |
| var | Variable to check |
| varErr | Standard Error of the variable |
| lo | Lower limit of the variable |
| hi | Upper limit of the variable |
Definition at line 283 of file CbmQaTask.h.
|
protectedinherited |
Checks ranges for mean and standard deviation.
Definition at line 141 of file CbmQaTask.cxx.
References CheckRange().
|
private |
References V0FinderQa().
|
privateinherited |
References CbmQaTask().
|
inherited |
Process ROOT objects comparison.
Definition at line 162 of file CbmQaTask.cxx.
References CbmQaIO::fConfigNode.
|
privateinherited |
Process object comparison.
| Obj | Class of the ROOT object |
| pObjL | First object (this) |
| pObjR | Second object (default) |
| objName | Name of the object (contains full path to the object) |
| cfg | Comparison configuration entry |
Definition at line 306 of file CbmQaTask.h.
References CbmQaTask::ObjectComparisonConfig::fCanvOpt, CbmQaTask::ObjectComparisonConfig::fChi2NdfMax, fpBenchmarkOutput, CbmQaTask::ObjectComparisonConfig::fPoint, CbmQaTask::ObjectComparisonConfig::fRatio, CbmQaTask::ObjectComparisonConfig::fRatioMax, CbmQaTask::ObjectComparisonConfig::fRatioMin, fsDefaultTag, CbmQaTask::ObjectComparisonConfig::fStat, CbmQaTask::ObjectComparisonConfig::fStatOpt, and fsVersionTag.
|
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 197 of file CbmQaIO.h.
References fpvObjList, fsRootFolderName, fStoringMode, kSUBDIR, SetCanvasProperties(), SetTH1Properties(), SetTH2Properties(), and SetTProfile2DProperties().
Referenced by MakeQaObject().
|
inlineprotectedvirtualinherited |
Initializes QA-task summary: canvases, tables etc.
Reimplemented in cbm::ca::InputQaSetup, cbm::ca::OutputQa, cbm::mvd::CbmMvdMcQaTask, CbmCaInputQaBase< DetID >, CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kMuch >, CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kMvd >, CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kSts >, CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kTof >, CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kTrd >, CbmCaInputQaMuch, CbmCaInputQaMvd, CbmCaInputQaSts, CbmCaInputQaTof, CbmCaInputQaTrd, CbmMvdMcQaTask, CbmRichRingRecoQa, InputQaSetup, and OutputQa.
Definition at line 177 of file CbmQaTask.h.
Referenced by Finish().
|
inlineprotectedvirtualinherited |
De-initialize the task.
Reimplemented in cbm::ca::OutputQa, CbmCaInputQaBase< DetID >, CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kMuch >, CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kMvd >, CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kSts >, CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kTof >, CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kTrd >, CbmCaInputQaMuch, CbmCaInputQaMvd, CbmCaInputQaSts, CbmCaInputQaTof, CbmCaInputQaTrd, and OutputQa.
Definition at line 159 of file CbmQaTask.h.
Referenced by DeInitBase().
|
privateinherited |
De-initializes this task.
Definition at line 129 of file CbmQaTask.cxx.
References DeInit().
Referenced by Init().
|
inherited |
Disables event-by-event execution.
By default, if the branch
|
finaloverrideprotectedinherited |
FairTask: Defines action of the task in the event/TS.
Definition at line 44 of file CbmQaTask.cxx.
References ExecQa(), fNofEvents, fpBrEvents, and fpCurrentEvent.
|
virtual |
Executes QA.
Reimplemented from CbmQaTask.
Definition at line 29 of file CbmKFV0FinderQa.cxx.
References ExecQa(), FillParticles(), and FillTracks().
Referenced by ExecQa().
|
private |
Fill particles.
Definition at line 173 of file CbmKFV0FinderQa.cxx.
References fhRefSecondaryStored, fhRefSecondaryUnused, FillParticles(), FillSecondary(), FillV0Candidates(), and fpTopoReconstructor.
Referenced by ExecQa(), and FillParticles().
|
private |
Fills secondary distributions.
Definition at line 163 of file CbmKFV0FinderQa.cxx.
References cbm::kfp::V0FinderTask::ParticleInfo::beta, cbm::kfp::V0FinderTask::ParticleInfo::dca, and FillSecondary().
Referenced by FillParticles(), FillSecondary(), and FillV0Candidates().
|
private |
Fills track distributions.
Definition at line 248 of file CbmKFV0FinderQa.cxx.
References fhRefTracksAfter, fhRefTracksBefore, FillTracks(), fpBrGlobalTracks, fpCutter, CbmGlobalTrack::GetParamFirst(), cbm::algo::kfp::P, cbm::algo::kfp::Pim, and cbm::algo::kfp::Undef.
Referenced by ExecQa(), and FillTracks().
| void cbm::kfp::V0FinderQa::FillV0Candidates | ( | const KFParticle & | v0cand | ) |
Definition at line 40 of file CbmKFV0FinderQa.cxx.
References cbm::kfp::V0FinderQa::RefHistogramsPrt::beta, fhRefDaughtersAfter, fhRefDaughtersBefore, fhRefMeAfter, fhRefMeBefore, fhRefV0After, fhRefV0Before, FillSecondary(), FillV0Candidates(), fpCutter, fpTopoReconstructor, and cbm::kfp::V0FinderTask::kSpeedOfLight.
|
private |
Fills v0 distributions.
| IsMixedEvent | If filled in mixed-event analysis |
| v0cand | V0-candidate |
References FillSecondary(), and Refit().
Referenced by FillParticles(), and FillV0Candidates().
|
finaloverrideprotectedinherited |
FairTask: Defines action of the task in the end of run.
Definition at line 64 of file CbmQaTask.cxx.
References CreateSummary(), fNofEvents, and CbmQaIO::WriteToFile().
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedinherited |
Gets pointer to current event.
Definition at line 216 of file CbmQaTask.h.
References fpCurrentEvent.
Referenced by cbm::ca::OutputQa::ExecQa(), and CbmRichRingRecoQa::ExecQa().
|
inlineinherited |
|
inlineprotectedinherited |
Get current event number.
Definition at line 183 of file CbmQaTask.h.
References fNofEvents.
Referenced by cbm::ca::OutputQa::Check(), and cbm::ca::OutputQa::DrawEvent().
|
inlineinherited |
|
inlineinherited |
|
finaloverrideprotectedinherited |
FairTask: Task initialization in the beginning of the run.
Definition at line 88 of file CbmQaTask.cxx.
References DeInitBase(), EventByEvent, fpBrEvents, fRecoMode, and InitQa().
Referenced by ReInit().
| void V0FinderQa::InitHistograms | ( | ) |
Initializes histograms.
Definition at line 338 of file CbmKFV0FinderQa.cxx.
References fhRefDaughtersAfter, fhRefDaughtersBefore, fhRefMeAfter, fhRefMeBefore, fhRefSecondaryStored, fhRefSecondaryUnused, fhRefTracksAfter, fhRefTracksBefore, fhRefV0After, fhRefV0Before, InitHistograms(), kBbeta, kBchi2ndf_geo, kBchi2ndf_topo, kBdca_daughters, kBdca_rt_origin, kBdca_rt_pv, kBdecay_length, kBdecay_vtx_x, kBdecay_vtx_y, kBdecay_vtx_z, kBmass, kBopening_angle, kBp, kBpt, kLbeta, kLchi2ndf_geo, kLchi2ndf_topo, kLdca_daughters, kLdca_rt_origin, kLdca_rt_pv, kLdecay_length, kLdecay_vtx_x, kLdecay_vtx_y, kLdecay_vtx_z, kLmass, kLopening_angle, kLp, kLpt, kUbeta, kUchi2ndf_geo, kUchi2ndf_topo, kUdca_daughters, kUdca_rt_origin, kUdca_rt_pv, kUdecay_length, kUdecay_vtx_x, kUdecay_vtx_y, kUdecay_vtx_z, kUmass, kUopening_angle, kUp, kUpt, and CbmQaIO::MakeQaObject().
Referenced by InitHistograms(), and InitQa().
|
virtual |
Initializes QA.
Reimplemented from CbmQaTask.
Definition at line 302 of file CbmKFV0FinderQa.cxx.
References fbDataBranchesInitialized, fpBrGlobalTracks, InitHistograms(), and InitQa().
Referenced by InitQa().
|
inlineinherited |
Returns flag, whether MC information is used or not in the task.
Definition at line 126 of file CbmQaTask.h.
References fbUseMC.
Referenced by cbm::ca::OutputQa::Check(), cbm::mvd::CbmMvdMcQaTask::Check(), CbmCaInputQaBase< DetID >::Check(), CbmRichRingRecoQa::Check(), cbm::ca::InputQaSetup::CheckInit(), cbm::ca::OutputQa::CreateFitQaPointSet(), cbm::ca::OutputQa::CreateSummary(), CbmCaInputQaBase< DetID >::CreateSummary(), cbm::ca::OutputQa::DrawEvent(), cbm::ca::OutputQa::DrawSetOf(), cbm::ca::OutputQa::ExecQa(), cbm::mvd::CbmMvdMcQaTask::ExecQa(), CbmCaInputQaBase< DetID >::ExecQa(), CbmRichRingRecoQa::ExecQa(), cbm::ca::InputQaSetup::FillHistogramsDet(), CbmRichRingRecoQa::InitHistograms(), cbm::ca::InputQaSetup::InitQa(), cbm::ca::OutputQa::InitQa(), cbm::mvd::CbmMvdMcQaTask::InitQa(), CbmCaInputQaBase< DetID >::InitQa(), and CbmRichRingRecoQa::InitQa().
|
inherited |
Definition at line 132 of file CbmQaIO.cxx.
References fsRootFolderName.
Referenced by cbm::ca::InputQaSetup::InitQa(), and CbmCaInputQaBase< DetID >::InitQa().
|
inherited |
Definition at line 260 of file CbmQaIO.h.
References CheckProperty(), ConstructAndRegisterQaObject(), and fConfigNode.
Referenced by cbm::mvd::CbmMvdMcQaTask::BookHists_(), cbm::ca::OutputQa::Check(), CbmRichRingRecoQa::Check(), cbm::ca::TrackFitQa::CreatePullPlot(), cbm::ca::TrackFitQa::CreateResidualPlot(), cbm::ca::InputQaSetup::CreateSummary(), cbm::ca::OutputQa::CreateSummary(), CbmCaInputQaBase< DetID >::CreateSummary(), cbm::ca::OutputQa::DrawEvent(), cbm::ca::TrackFitQa::Init(), cbm::ca::TrackTypeQa::Init(), cbm::kfp::V0FinderQa::InitHistograms(), CbmRichRingRecoQa::InitHistograms(), cbm::ca::InputQaSetup::InitQa(), and CbmCaInputQaBase< DetID >::InitQa().
|
delete |
References V0FinderQa().
|
delete |
References V0FinderQa().
|
protectedinherited |
Puts setup title on the canvas.
Definition at line 248 of file CbmQaTask.cxx.
References fsSetupName.
Referenced by cbm::ca::InputQaSetup::CreateSummary().
|
inherited |
Reads check-list from the configuration file.
Definition at line 263 of file CbmQaTask.cxx.
References CbmQaIO::fConfigNode, and fmCheckList.
|
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 126 of file CbmQaIO.h.
References fConfigNode, and cbm::util::yaml::Read().
Referenced by CbmCaInputQaBase< DetID >::InitQa().
|
private |
Refits 4-momenta of daughters.
| [in] | aX | 4-position of daughter A |
| [in] | bX | 4-position of daughter B |
| [in,out] | mX | 4-position of V0 |
| [in,out] | aP | 4-momentum of daughter A |
| [in,out] | bP | 4-momentum of daughter B |
| [in,out] | mP | 4-momentum of V0 |
Definition at line 426 of file CbmKFV0FinderQa.cxx.
References cbm::kfp::V0FinderTask::kSpeedOfLight, cbm::algo::kfp::P, and Refit().
Referenced by FillV0Candidates(), and Refit().
|
finaloverrideprotectedinherited |
|
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 ConstructAndRegisterQaObject().
|
inlineinherited |
Sets check-file.
| pCheckFile | Shared pointer to the cross-check file |
Definition at line 134 of file CbmQaTask.h.
References fpBenchmarkInput.
|
inlineinherited |
Sets compare output file.
| pCompareOutput | Shared pointer to the comparison output file |
Definition at line 138 of file CbmQaTask.h.
References fpBenchmarkOutput.
|
inherited |
Creates a ROOT object.
Sets config name
| name | A path to the config |
Definition at line 95 of file CbmQaIO.cxx.
References fsConfigName.
|
inlineinherited |
| void V0FinderQa::SetFrom | ( | const V0FinderTask * | pFinder | ) |
Sets data branches from V0FinderTask.
| pFinder | Instance of the V0FinderTask |
Definition at line 465 of file CbmKFV0FinderQa.cxx.
References fbDataBranchesInitialized, fpCutter, fpParticleInfo, fpTopoReconstructor, fpTrackInfo, cbm::kfp::V0FinderTask::GetCutter(), cbm::kfp::V0FinderTask::GetParticleInfo(), cbm::kfp::V0FinderTask::GetTopoReconstructor(), cbm::kfp::V0FinderTask::GetTrackInfo(), and SetFrom().
Referenced by SetFrom().
|
inlineinherited |
Sets data processing (reconstruction) mode.
The reconstruction mode can be either ECbmRecoMode::Timeslice or ECbmRecoMode::EventByEvent. The first variant implies, that the data are processed within entire time-slice (in the event-by-event simulation within the entire event). For the second variant the data are processed within a loop of CbmEvent objects, if the branch of latter is accessible. By default the ECbmRecoMode::Timeslice is used.
Definition at line 152 of file CbmQaTask.h.
References fRecoMode.
|
inlineinherited |
Sets a common root path to the objects in the output file.
| path | A path to the object |
Definition at line 108 of file CbmQaIO.h.
References fsRootFolderName.
Referenced by CbmQaTask::CbmQaTask().
|
inlineinherited |
|
inlineinherited |
Set storing mode.
Definition at line 111 of file CbmQaIO.h.
References 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, and TrackTypeQa.
Definition at line 36 of file CbmQaIO.cxx.
References cbm::qa::util::GetHistStats().
Referenced by 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 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 ConstructAndRegisterQaObject().
|
inlineinherited |
|
protectedinherited |
Stores check flag to the check-list.
| tag | The flag name |
| result | Check result |
| msg | Supporting message (optional) |
Definition at line 311 of file CbmQaTask.cxx.
References fmCheckList.
Referenced by CbmRichRingRecoQa::Check().
| void cbm::kfp::V0FinderQa::WriteHistograms | ( | const TString & | ) |
Writes histograms into file.
|
protectedinherited |
Writes objects into file.
| pOutFile | Pointer to output ROOT file |
Definition at line 116 of file CbmQaIO.cxx.
References fpvObjList.
Referenced by CbmQaTask::Finish().
|
private |
Definition at line 142 of file CbmKFV0FinderQa.h.
|
privateinherited |
Flag, if MC is used.
Definition at line 240 of file CbmQaTask.h.
Referenced by CbmQaTask(), and IsMCUsed().
|
private |
Definition at line 143 of file CbmKFV0FinderQa.h.
|
protectedinherited |
Configuration node.
Definition at line 163 of file CbmQaIO.h.
Referenced by CbmQaTask::CompareQaObjects(), MakeQaObject(), CbmQaTask::ReadCheckListFromConfig(), and ReadSpecificConfig().
|
private |
Daughter particle distribution after cuts on v0.
Definition at line 204 of file CbmKFV0FinderQa.h.
Referenced by FillV0Candidates(), and InitHistograms().
|
private |
Daughter particle distribution before cuts on v0.
Definition at line 203 of file CbmKFV0FinderQa.h.
Referenced by FillV0Candidates(), and InitHistograms().
|
private |
Mixed-event distributions after cuts.
Definition at line 208 of file CbmKFV0FinderQa.h.
Referenced by FillV0Candidates(), and InitHistograms().
|
private |
Mixed-event distributions before cuts.
Definition at line 207 of file CbmKFV0FinderQa.h.
Referenced by FillV0Candidates(), and InitHistograms().
|
private |
Stored secondary particles.
Definition at line 201 of file CbmKFV0FinderQa.h.
Referenced by FillParticles(), and InitHistograms().
|
private |
Secondary particles, which were not attached to any v0.
Definition at line 202 of file CbmKFV0FinderQa.h.
Referenced by FillParticles(), and InitHistograms().
|
private |
Track distributions after track selection.
Definition at line 200 of file CbmKFV0FinderQa.h.
Referenced by FillTracks(), and InitHistograms().
|
private |
Track distributions before track selection.
Definition at line 199 of file CbmKFV0FinderQa.h.
Referenced by FillTracks(), and InitHistograms().
|
private |
V0 distributions after cuts.
Definition at line 206 of file CbmKFV0FinderQa.h.
Referenced by FillV0Candidates(), and InitHistograms().
|
private |
V0 distributions before cuts.
Definition at line 205 of file CbmKFV0FinderQa.h.
Referenced by FillV0Candidates(), and InitHistograms().
|
privateinherited |
A QA check-list map.
The check list is updated with new entries with the StoreCheckResult(tag, result) function, which is to be called from the Check() function. The result is stored to CheckFlags::fResult field, while the CheckFlags::fStatus stays uninitialized. Than, when the ReadCheckListFromConfig() function is called, the fStatus is updated according to the check list entries in the qa_tasks_config_mcbm.yaml/qa_tasks_config_cbm.yaml. If the fStatus is false (default), the check is ignored in the final verdict making.
Definition at line 251 of file CbmQaTask.h.
Referenced by GetCheckList(), ReadCheckListFromConfig(), and StoreCheckResult().
|
privateinherited |
Number of processed events.
Definition at line 256 of file CbmQaTask.h.
Referenced by Exec(), Finish(), and GetEventNumber().
|
privateinherited |
A file with default ROOT objects used for the cross-check.
Definition at line 261 of file CbmQaTask.h.
Referenced by SetCheckFile().
|
privateinherited |
An output file for histograms cross-check.
Definition at line 262 of file CbmQaTask.h.
Referenced by CompareTwoObjects(), and SetCompareOutput().
|
privateinherited |
Pointer to CbmEvent branch.
Definition at line 253 of file CbmQaTask.h.
|
private |
Definition at line 151 of file CbmKFV0FinderQa.h.
Referenced by FillTracks(), and InitQa().
|
private |
Definition at line 150 of file CbmKFV0FinderQa.h.
|
privateinherited |
Pointer to the current event.
Definition at line 254 of file CbmQaTask.h.
Referenced by Exec(), and GetCurrentEvent().
|
private |
Definition at line 147 of file CbmKFV0FinderQa.h.
Referenced by FillTracks(), FillV0Candidates(), and SetFrom().
|
private |
Definition at line 149 of file CbmKFV0FinderQa.h.
Referenced by SetFrom().
|
private |
Definition at line 146 of file CbmKFV0FinderQa.h.
Referenced by FillParticles(), FillV0Candidates(), and SetFrom().
|
private |
Definition at line 148 of file CbmKFV0FinderQa.h.
Referenced by SetFrom().
|
protectedinherited |
List of registered ROOT objects.
Definition at line 161 of file CbmQaIO.h.
Referenced by CbmQaIO(), ConstructAndRegisterQaObject(), cbm::ca::TrackTypeQa::Init(), cbm::ca::OutputQa::InitQa(), and WriteToFile().
|
privateinherited |
Reconstruction mode.
Definition at line 242 of file CbmQaTask.h.
Referenced by CbmQaTask(), Init(), and SetRecoMode().
|
protectedinherited |
Name of configuration file.
Definition at line 157 of file CbmQaIO.h.
Referenced by GetConfigName(), and SetConfigName().
|
privateinherited |
Default tag (git SHA etc.)
Definition at line 259 of file CbmQaTask.h.
Referenced by CompareTwoObjects(), GetDefaultTag(), and SetDefaultTag().
|
protectedinherited |
Unique prefix for all writeable root.
Definition at line 158 of file CbmQaIO.h.
Referenced by CbmQaIO(), cbm::ca::TrackFitQa::CreatePullPlot(), cbm::ca::TrackTypeQa::Init(), and cbm::ca::OutputQa::InitQa().
|
protectedinherited |
Name of root folder.
Definition at line 156 of file CbmQaIO.h.
Referenced by ConstructAndRegisterQaObject(), cbm::ca::TrackTypeQa::Init(), cbm::ca::OutputQa::InitQa(), MakeQaDirectory(), and SetRootFolderName().
|
privateinherited |
Name of the setup (to draw on the canvases)
Definition at line 255 of file CbmQaTask.h.
Referenced by GetSetupName(), PutSetupNameOnPad(), and SetSetupName().
|
protectedinherited |
Objects storing mode.
Definition at line 160 of file CbmQaIO.h.
Referenced by CbmQaTask::CbmQaTask(), ConstructAndRegisterQaObject(), SetStoringMode(), cbm::ca::TrackFitQa::TrackFitQa(), and cbm::ca::TrackTypeQa::TrackTypeQa().
|
privateinherited |
Version tag (git SHA etc.)
Definition at line 258 of file CbmQaTask.h.
Referenced by CompareTwoObjects(), GetVersionTag(), and SetVersionTag().
|
staticconstexprprivate |
beta: number of bins
Definition at line 154 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
chi2/NDF geometry: number of bins
Definition at line 191 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
chi2/NDF topology: number of bins
Definition at line 188 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
DCA between daughters: number of bins.
Definition at line 173 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
DCA rel. to origin: number of bins.
Definition at line 157 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
DCA rel. to prim. vertex: number of bins.
Definition at line 170 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Decay length: number of bins.
Definition at line 176 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Decay vertex x-coordinate: number of bins.
Definition at line 179 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Decay vertex y-coordinate: number of bins.
Definition at line 182 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Decay vertex z-coordinate: number of bins.
Definition at line 185 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Invariant mass: number of bins.
Definition at line 194 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
opening angle: number of bins
Definition at line 167 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
abs. momentum : number of bins
Definition at line 160 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
transverse momentum : number of bins
Definition at line 163 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
beta: lower bound [c]
Definition at line 155 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
chi2/NDF geometry: lower bound
Definition at line 192 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
chi2/NDF topology: lower bound
Definition at line 189 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
DCA between daughters: lower bound [cm].
Definition at line 174 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
DCA rel. to origin: lower bound [cm].
Definition at line 158 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
DCA rel. to prim. vertex: lower bound [cm].
Definition at line 171 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Decay length: lower bound [cm].
Definition at line 177 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Decay vertex x-coordinate: lower bound [cm].
Definition at line 180 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Decay vertex y-coordinate: lower bound [cm].
Definition at line 183 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Decay vertex z-coordinate: lower bound [cm].
Definition at line 186 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Invariant mass: lower bound [GeV/c2].
Definition at line 195 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
opening angle: lower bound [radians]
Definition at line 168 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
abs. momentum : lower bound [GeV/c]
Definition at line 161 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
transverse momentum : lower bound [GeV/c]
Definition at line 164 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
beta: upper bound [c]
Definition at line 156 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
chi2/NDF geometry: upper bound
Definition at line 193 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
chi2/NDF topology: upper bound
Definition at line 190 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
DCA between daughters: upper bound [cm].
Definition at line 175 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
DCA rel. to origin: upper bound [cm].
Definition at line 159 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
DCA rel. to prim. vertex: upper bound [cm].
Definition at line 172 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Decay length: upper bound [cm].
Definition at line 178 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Decay vertex x-coordinate: upper bound [cm].
Definition at line 181 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Decay vertex y-coordinate: upper bound [cm].
Definition at line 184 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Decay vertex z-coordinate: upper bound [cm].
Definition at line 187 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
Invariant mass: upper bound [GeV/c2].
Definition at line 196 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
opening angle: upper bound [radians]
Definition at line 169 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
abs. momentum : upper bound [GeV/c]
Definition at line 162 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().
|
staticconstexprprivate |
transverse momentum : upper bound [GeV/c]
Definition at line 165 of file CbmKFV0FinderQa.h.
Referenced by InitHistograms().