CbmRoot
|
QA-task for CA tracking output results. More...
#include <CbmCaOutputQa.h>
Classes | |
struct | DrawAtt |
Structure to keep drawing attributes of histograms. More... | |
Public Types | |
enum class | EStoringMode { kSAMEDIR , kSUBDIR } |
using | ObjList_t = std::vector<std::pair<TObject*, TString>> |
Public Member Functions | |
OutputQa (int verbose, bool isMCUsed, ECbmRecoMode recoMode=ECbmRecoMode::EventByEvent) | |
Constructor from parameters. | |
void | AddTrackType (ETrackType type, bool flag=true) |
Adds track type. | |
void | EnableDebugger (const char *filename) |
Enables debugger. | |
void | ReadParameters (const char *filename) |
Reads defined parameters object from file. | |
void | SetEventDisplay (bool bDrawEvents, int minNofPoints=2) |
Sets event display. | |
void | SetUseMvd (bool flag=true) |
Sets MVD use flag. | |
void | SetUseSts (bool flag=true) |
Sets STS use flag. | |
void | SetUseMuch (bool flag=true) |
Sets MuCh use flag. | |
void | SetUseTrd (bool flag=true) |
Sets TRD use flag. | |
void | SetUseTof (bool flag=true) |
Sets TOF use flag. | |
void | SetStsTrackingMode () |
Sets STS tracking mode. | |
void | SetMcbmTrackingMode () |
Sets mCBM global tracking mode. | |
void | SetPerformanceMode (int mode) |
Sets performance mode. | |
void | SetTrackTypeListForSummary (std::set< ETrackType > &&trackTypes) |
Set track type list for summary table. | |
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 | |
void | Check () override |
Method to check, if the QA results are acceptable. | |
void | CreateSummary () override |
Creates summary cavases, tables etc. | |
void | DeInit () override |
De-initializes histograms. | |
void | FillTrackTypeHistograms () |
Fills histograms for a given track types. | |
InitStatus | InitQa () override |
Initialises the QA-task. | |
void | ExecQa () override |
Fills histograms from time slice or event. | |
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. | |
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 Types | |
enum class | EMonitorKey { kEvent , kTrack , kHit , kMcTrack , kMcPoint , END } |
QA monitor counters. More... | |
template<typename T > | |
using | TTypeArr_t = std::array<T, ETrackType::END> |
Array for track type properties. | |
Private Member Functions | |
void | FillRecoTrack (ETrackType type, int iTrkReco) |
Fills reconstructed track by its index. | |
void | FillMCTrack (ETrackType type, int iTrkMC) |
Fills MC track by its index. | |
void | DrawEvent () |
Draws event. | |
template<class TObj > | |
void | DrawSetOf (const std::vector< ETrackType > &vTypes, std::function< TObj *(ETrackType)> GetObj) |
Utility function to draw a generic comparison of histograms from different track types. | |
void | InitDrawingAttributes () |
Defines drawing attributes for histograms of different track types. | |
ClassDefOverride (OutputQa, 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. | |
template<typename T , typename... Args> | |
T * | ConstructAndRegisterQaObject (TString name, Args... args) |
Creates and registers a ROOT object. | |
Private Attributes | |
bool | fbUseMvd = false |
is MVD used | |
bool | fbUseSts = false |
is STS used | |
bool | fbUseMuch = false |
is MuCh used | |
bool | fbUseTrd = false |
is TRD used | |
bool | fbUseTof = false |
is TOF used | |
bool | fbDrawEvents = false |
flag to draw events with the event display | |
int | fEvtDisplayMinNofPoints = 2 |
minimum number of MC points in the event display | |
int | fPerformanceMode = 1 |
Performance mode. | |
ECbmCaTrackingMode | fTrackingMode = ECbmCaTrackingMode::kSTS |
Tracking mode. | |
std::string | fsParametersFilename = "" |
std::unique_ptr< TimeSliceReader > | fpTSReader = nullptr |
Reader of the time slice. | |
std::shared_ptr< MCModule > | fpMCModule = nullptr |
MC module. | |
std::shared_ptr< ca::DataManager > | fpDataManager = nullptr |
Data manager. | |
std::shared_ptr< tools::Debugger > | fpDebugger = nullptr |
Debugger. | |
std::shared_ptr< ca::Parameters< float > > | fpParameters = nullptr |
Tracking parameters object. | |
ca::Vector< CbmL1HitId > | fvHitIds {"CbmCaOutputQa::fvHitIds"} |
ca::Vector< CbmL1HitDebugInfo > | fvHits {"CbmCaOutputQa::fvHits"} |
ca::Vector< CbmL1Track > | fvRecoTracks {"CbmCaOutputQa::fvRecoTracks"} |
tools::MCData | fMCData |
Input MC data (points and tracks) | |
ca::Monitor< EMonitorKey > | fMonitor {"Output tracking QA"} |
std::set< ETrackType > | fmSummaryTableEntries |
Which track types should be listed in the summary table. | |
TTypeArr_t< std::string > | fvsTrackTypeName |
Array of track type unique names. | |
TTypeArr_t< std::unique_ptr< TrackTypeQa > > | fvpTrackHistograms |
Histogrammers for different track types. | |
TTypeArr_t< bool > | fvbTrackTypeOn = {0} |
Usage flag for different track types. | |
TTypeArr_t< DrawAtt > | fvTrackDrawAtts |
Drawing attributes for track types. | |
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 bool | kEXPTRACKFILL = false |
static constexpr int | kCXSIZEPX = 600 |
Canvas size along x-axis [px]. | |
static constexpr int | kCYSIZEPX = 600 |
Canvas size along y-axis [px]. | |
QA-task for CA tracking output results.
Definition at line 97 of file CbmCaOutputQa.h.
|
inherited |
|
private |
Array for track type properties.
Definition at line 107 of file CbmCaOutputQa.h.
|
strongprivate |
QA monitor counters.
Enumerator | |
---|---|
kEvent | |
kTrack | |
kHit | |
kMcTrack | |
kMcPoint | |
END |
Definition at line 270 of file CbmCaOutputQa.h.
|
stronginherited |
OutputQa::OutputQa | ( | int | verbose, |
bool | isMCUsed, | ||
ECbmRecoMode | recoMode = ECbmRecoMode::EventByEvent ) |
Constructor from parameters.
verbose | Verbosity level |
isMCUsed | Flag, if MC information is available for this task |
recoMode | Reconstruction mode (see documentation for the CbmQaTask::SetRecoMode function) |
Definition at line 31 of file CbmCaOutputQa.cxx.
References AddTrackType(), fpTSReader, InitDrawingAttributes(), cbm::ca::kAll, cbm::ca::kGhost, cbm::ca::kPrim, cbm::ca::kPrimE, cbm::ca::kPrimFast, cbm::ca::kPrimK, cbm::ca::kPrimKM, cbm::ca::kPrimKP, cbm::ca::kPrimLong, cbm::ca::kPrimLongFast, cbm::ca::kPrimMU, cbm::ca::kPrimP, cbm::ca::kPrimPBAR, cbm::ca::kPrimPI, cbm::ca::kPrimPIM, cbm::ca::kPrimPIP, cbm::ca::kPrimPPBAR, cbm::ca::kSec, cbm::ca::kSecE, cbm::ca::kSecFast, cbm::ca::kSecK, cbm::ca::kSecKM, cbm::ca::kSecKP, cbm::ca::kSecMU, cbm::ca::kSecP, cbm::ca::kSecPBAR, cbm::ca::kSecPI, cbm::ca::kSecPIM, cbm::ca::kSecPIP, and cbm::ca::kSecPPBAR.
|
inline |
Adds track type.
type | Track type |
flag | Flag: true/false |
Adds a track type for building distributions. By default, only all, primary, secondary and ghost track distributions are booked.
Definition at line 128 of file CbmCaOutputQa.h.
References fvbTrackTypeOn.
Referenced by OutputQa().
|
overrideprotectedvirtual |
Method to check, if the QA results are acceptable.
Implements CbmQaTask.
Definition at line 83 of file CbmCaOutputQa.cxx.
References fMonitor, fmSummaryTableEntries, fpMCModule, fvbTrackTypeOn, fvpTrackHistograms, cbm::algo::ca::Monitor< ECounterKey, ETimerKey >::GetCounterValue(), CbmQaTask::GetEventNumber(), CbmQaTask::IsMCUsed(), cbm::ca::kAll, cbm::ca::kGhost, kTrack, CbmQaIO::MakeQaObject(), CbmQaTable::SetCell(), CbmQaTable::SetColWidth(), CbmQaTable::SetNamesOfCols(), CbmQaTable::SetRowName(), cbm::algo::ca::Monitor< ECounterKey, ETimerKey >::ToString(), and CbmQaTable::ToString().
|
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().
|
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 CbmQaTask::CheckRange().
Referenced by CbmQaTask::CheckRange(), and CbmQaTask::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 CbmQaTask::CheckRange().
|
private |
|
inherited |
Process ROOT objects comparison.
Definition at line 162 of file CbmQaTask.cxx.
References CbmQaTask::CompareTwoObjects(), CbmQaTask::ObjectComparisonConfig::fCanvOpt, CbmQaTask::ObjectComparisonConfig::fChi2NdfMax, CbmQaIO::fConfigNode, CbmQaTask::fpBenchmarkInput, CbmQaTask::ObjectComparisonConfig::fPoint, CbmQaIO::fpvObjList, CbmQaTask::ObjectComparisonConfig::fRatio, CbmQaTask::ObjectComparisonConfig::fRatioMax, CbmQaTask::ObjectComparisonConfig::fRatioMin, CbmQaIO::fsRootFolderName, and CbmQaTask::ObjectComparisonConfig::fStat.
|
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, CbmQaTask::fpBenchmarkOutput, CbmQaTask::ObjectComparisonConfig::fPoint, CbmQaTask::ObjectComparisonConfig::fRatio, CbmQaTask::ObjectComparisonConfig::fRatioMax, CbmQaTask::ObjectComparisonConfig::fRatioMin, CbmQaTask::fsDefaultTag, CbmQaTask::ObjectComparisonConfig::fStat, CbmQaTask::ObjectComparisonConfig::fStatOpt, and CbmQaTask::fsVersionTag.
Referenced by CbmQaTask::CompareQaObjects().
|
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().
|
overrideprotectedvirtual |
Creates summary cavases, tables etc.
Set of track types to compare
Function to draw generic canvas of histogram comparison
Function to draw generic canvas of efficiencies comparison
Reimplemented from CbmQaTask.
Definition at line 665 of file CbmCaOutputQa.cxx.
References DrawSetOf(), cbm::ca::END, fvbTrackTypeOn, fvpTrackHistograms, CbmQaTask::IsMCUsed(), cbm::ca::kAll, cbm::ca::kAllK, cbm::ca::kAllPI, cbm::ca::kAllPPBAR, kCXSIZEPX, kCYSIZEPX, cbm::ca::kPrim, cbm::ca::kPrimE, cbm::ca::kPrimK, cbm::ca::kPrimKM, cbm::ca::kPrimKP, cbm::ca::kPrimMU, cbm::ca::kPrimP, cbm::ca::kPrimPBAR, cbm::ca::kPrimPI, cbm::ca::kPrimPIM, cbm::ca::kPrimPIP, cbm::ca::kPrimPPBAR, cbm::ca::kSec, cbm::ca::kSecE, cbm::ca::kSecK, cbm::ca::kSecKM, cbm::ca::kSecKP, cbm::ca::kSecMU, cbm::ca::kSecP, cbm::ca::kSecPBAR, cbm::ca::kSecPI, cbm::ca::kSecPIM, cbm::ca::kSecPIP, cbm::ca::kSecPPBAR, and CbmQaIO::MakeQaObject().
|
inlineoverrideprotectedvirtual |
De-initializes histograms.
Reimplemented from CbmQaTask.
Definition at line 203 of file CbmCaOutputQa.h.
|
privateinherited |
De-initializes this task.
Definition at line 129 of file CbmQaTask.cxx.
References CbmQaTask::DeInit().
Referenced by CbmQaTask::Init().
|
inherited |
Disables event-by-event execution.
By default, if the branch
|
private |
Draws event.
Definition at line 135 of file CbmCaOutputQa.cxx.
References fMCData, fvHits, fvRecoTracks, CbmQaTask::GetEventNumber(), cbm::ca::tools::MCData::GetNofPoints(), cbm::ca::tools::MCData::GetNofTracks(), cbm::ca::tools::MCData::GetPoint(), cbm::ca::tools::MCData::GetTrack(), gr, CbmQaTask::IsMCUsed(), CbmQaIO::MakeQaObject(), and nMCTracks.
Referenced by ExecQa().
|
private |
Utility function to draw a generic comparison of histograms from different track types.
TObj | Type of ROOT object |
vTypes | Vector of types to draw |
GetObj | Function, returning an object of a given type |
Definition at line 313 of file CbmCaOutputQa.h.
References CbmQaCmpDrawer< Obj >::Clear(), CbmQaCmpDrawer< Obj >::Draw(), fvbTrackTypeOn, fvpTrackHistograms, CbmQaTask::IsMCUsed(), CbmQaCmpDrawer< Obj >::RegisterObject(), and CbmQaCmpDrawer< Obj >::SetMinimum().
Referenced by CreateSummary().
|
inline |
Enables debugger.
filename | Name of output ROOT file |
Creates a debugger and enables its usage inside a QA task
Definition at line 134 of file CbmCaOutputQa.h.
References fpDebugger.
|
finaloverrideprotectedinherited |
FairTask: Defines action of the task in the event/TS.
Definition at line 44 of file CbmQaTask.cxx.
References CbmQaTask::ExecQa(), CbmQaTask::fNofEvents, CbmQaTask::fpBrEvents, and CbmQaTask::fpCurrentEvent.
|
overrideprotectedvirtual |
Fills histograms from time slice or event.
Reimplemented from CbmQaTask.
Definition at line 410 of file CbmCaOutputQa.cxx.
References DrawEvent(), fbDrawEvents, fEvtDisplayMinNofPoints, FillMCTrack(), FillRecoTrack(), fMCData, fMonitor, fpMCModule, fpParameters, fpTSReader, fvHits, fvRecoTracks, CbmQaTask::GetCurrentEvent(), cbm::ca::tools::MCData::GetNofPoints(), cbm::ca::tools::MCData::GetNofTracks(), cbm::ca::tools::MCData::GetTrack(), cbm::algo::ca::Monitor< ECounterKey, ETimerKey >::IncrementCounter(), CbmQaTask::IsMCUsed(), cbm::ca::kAll, cbm::ca::kAllE, cbm::ca::kAllK, cbm::ca::kAllMU, cbm::ca::kAllPI, cbm::ca::kAllPPBAR, kEvent, cbm::ca::kGhost, kHit, kMcPoint, kMcTrack, cbm::ca::kPrim, cbm::ca::kPrimE, cbm::ca::kPrimEM, cbm::ca::kPrimEP, cbm::ca::kPrimFast, cbm::ca::kPrimK, cbm::ca::kPrimKM, cbm::ca::kPrimKP, cbm::ca::kPrimLong, cbm::ca::kPrimLongFast, cbm::ca::kPrimMU, cbm::ca::kPrimMUM, cbm::ca::kPrimMUP, cbm::ca::kPrimP, cbm::ca::kPrimPBAR, cbm::ca::kPrimPI, cbm::ca::kPrimPIM, cbm::ca::kPrimPIP, cbm::ca::kPrimPPBAR, cbm::ca::kSec, cbm::ca::kSecE, cbm::ca::kSecEM, cbm::ca::kSecEP, cbm::ca::kSecFast, cbm::ca::kSecK, cbm::ca::kSecKM, cbm::ca::kSecKP, cbm::ca::kSecMU, cbm::ca::kSecMUM, cbm::ca::kSecMUP, cbm::ca::kSecP, cbm::ca::kSecPBAR, cbm::ca::kSecPI, cbm::ca::kSecPIM, cbm::ca::kSecPIP, cbm::ca::kSecPPBAR, kTrack, CbmL1Constants::MinFastMom, and nMCTracks.
|
inlineprivate |
Fills MC track by its index.
type | Track type |
iTrkReco | Index of MC track |
Definition at line 334 of file CbmCaOutputQa.h.
Referenced by ExecQa().
|
inlineprivate |
Fills reconstructed track by its index.
type | Track type |
iTrkReco | Index of reconstructed track |
Definition at line 218 of file CbmCaOutputQa.h.
References fvbTrackTypeOn, and fvpTrackHistograms.
Referenced by ExecQa().
|
protected |
Fills histograms for a given track types.
|
finaloverrideprotectedinherited |
FairTask: Defines action of the task in the end of run.
Definition at line 64 of file CbmQaTask.cxx.
References CbmQaTask::CreateSummary(), CbmQaTask::fNofEvents, and CbmQaIO::WriteToFile().
|
inlineinherited |
|
inlineinherited |
|
inlineprotectedinherited |
Gets pointer to current event.
Definition at line 216 of file CbmQaTask.h.
References CbmQaTask::fpCurrentEvent.
Referenced by ExecQa().
|
inlineinherited |
|
inlineprotectedinherited |
Get current event number.
Definition at line 183 of file CbmQaTask.h.
References CbmQaTask::fNofEvents.
Referenced by Check(), and DrawEvent().
|
inlineinherited |
Gets name of the setup.
Definition at line 119 of file CbmQaTask.h.
References CbmQaTask::fsSetupName.
|
inlineinherited |
|
finaloverrideprotectedinherited |
FairTask: Task initialization in the beginning of the run.
Definition at line 88 of file CbmQaTask.cxx.
References CbmQaTask::DeInitBase(), EventByEvent, CbmQaTask::fNofEvents, CbmQaTask::fpBrEvents, CbmQaTask::fRecoMode, CbmQaTask::InitQa(), and Timeslice.
Referenced by CbmQaTask::ReInit().
|
private |
Defines drawing attributes for histograms of different track types.
Definition at line 972 of file CbmCaOutputQa.cxx.
References fvTrackDrawAtts, cbm::ca::kAll, cbm::ca::kAllE, cbm::ca::kAllK, cbm::ca::kAllMU, cbm::ca::kAllPI, cbm::ca::kAllPPBAR, cbm::ca::kGhost, cbm::ca::kPrim, cbm::ca::kPrimE, cbm::ca::kPrimEM, cbm::ca::kPrimEP, cbm::ca::kPrimK, cbm::ca::kPrimKM, cbm::ca::kPrimKP, cbm::ca::kPrimMU, cbm::ca::kPrimMUM, cbm::ca::kPrimMUP, cbm::ca::kPrimP, cbm::ca::kPrimPBAR, cbm::ca::kPrimPI, cbm::ca::kPrimPIM, cbm::ca::kPrimPIP, cbm::ca::kPrimPPBAR, cbm::ca::kSec, cbm::ca::kSecE, cbm::ca::kSecEM, cbm::ca::kSecEP, cbm::ca::kSecK, cbm::ca::kSecKM, cbm::ca::kSecKP, cbm::ca::kSecMU, cbm::ca::kSecMUM, cbm::ca::kSecMUP, cbm::ca::kSecP, cbm::ca::kSecPBAR, cbm::ca::kSecPI, cbm::ca::kSecPIM, cbm::ca::kSecPIP, and cbm::ca::kSecPPBAR.
Referenced by OutputQa().
|
overrideprotectedvirtual |
Initialises the QA-task.
Reimplemented from CbmQaTask.
Definition at line 787 of file CbmCaOutputQa.cxx.
References fbUseMuch, fbUseMvd, fbUseSts, fbUseTof, fbUseTrd, fMCData, fMonitor, fmSummaryTableEntries, fpDataManager, fPerformanceMode, fpMCModule, fpParameters, fpTSReader, CbmQaIO::fpvObjList, fsParametersFilename, CbmQaIO::fsPrefix, CbmQaIO::fsRootFolderName, fTrackingMode, fvbTrackTypeOn, fvHitIds, fvHits, fvpTrackHistograms, fvRecoTracks, fvsTrackTypeName, fvTrackDrawAtts, cbm::ca::ParametersHandler::Get(), cbm::ca::ParametersHandler::Instance(), CbmQaTask::IsMCUsed(), cbm::ca::kAll, cbm::ca::kAllE, cbm::ca::kAllK, cbm::ca::kAllMU, cbm::ca::kAllPI, cbm::ca::kAllPPBAR, kEvent, cbm::ca::kGhost, kHit, kMcPoint, kMcTrack, cbm::ca::kPrim, cbm::ca::kPrimE, cbm::ca::kPrimEM, cbm::ca::kPrimEP, cbm::ca::kPrimFast, cbm::ca::kPrimK, cbm::ca::kPrimKM, cbm::ca::kPrimKP, cbm::ca::kPrimLong, cbm::ca::kPrimLongFast, cbm::ca::kPrimMU, cbm::ca::kPrimMUM, cbm::ca::kPrimMUP, cbm::ca::kPrimP, cbm::ca::kPrimPBAR, cbm::ca::kPrimPI, cbm::ca::kPrimPIM, cbm::ca::kPrimPIP, cbm::ca::kPrimPPBAR, cbm::ca::kSec, cbm::ca::kSecE, cbm::ca::kSecEM, cbm::ca::kSecEP, cbm::ca::kSecFast, cbm::ca::kSecK, cbm::ca::kSecKM, cbm::ca::kSecKP, cbm::ca::kSecMU, cbm::ca::kSecMUM, cbm::ca::kSecMUP, cbm::ca::kSecP, cbm::ca::kSecPBAR, cbm::ca::kSecPI, cbm::ca::kSecPIM, cbm::ca::kSecPIP, cbm::ca::kSecPPBAR, kTrack, cbm::algo::ca::Monitor< ECounterKey, ETimerKey >::SetCounterName(), and cbm::algo::ca::Monitor< ECounterKey, ETimerKey >::SetRatioKeys().
|
inlineinherited |
Returns flag, whether MC information is used or not in the task.
Definition at line 126 of file CbmQaTask.h.
References CbmQaTask::fbUseMC.
Referenced by Check(), CbmCaInputQaSts::Check(), cbm::ca::InputQaSetup::CheckInit(), CreateSummary(), CbmCaInputQaSts::CreateSummary(), DrawEvent(), DrawSetOf(), ExecQa(), CbmCaInputQaTof::ExecQa(), cbm::ca::InputQaSetup::FillHistogramsDet(), CbmCaInputQaSts::FillHistogramsPerHit(), cbm::ca::InputQaSetup::InitQa(), InitQa(), and CbmCaInputQaSts::InitQa().
|
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 Check(), cbm::ca::TrackFitQa::CreatePullPlot(), cbm::ca::TrackFitQa::CreateResidualPlot(), cbm::ca::InputQaSetup::CreateSummary(), CreateSummary(), CbmCaInputQaSts::CreateSummary(), DrawEvent(), cbm::ca::TrackFitQa::Init(), cbm::ca::TrackTypeQa::Init(), cbm::ca::InputQaSetup::InitQa(), CbmCaInputQaSts::InitQa(), and CbmCaInputQaTof::InitQa().
|
protectedinherited |
Puts setup title on the canvas.
Definition at line 248 of file CbmQaTask.cxx.
References CbmQaTask::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 CbmQaTask::fmCheckList.
|
inline |
Reads defined parameters object from file.
filename | Name of parameter file |
Definition at line 144 of file CbmCaOutputQa.h.
References fsParametersFilename.
|
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().
|
finaloverrideprotectedinherited |
FairTask: Task reinitialization.
Definition at line 122 of file CbmQaTask.cxx.
References CbmQaTask::Init().
|
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().
|
inlineinherited |
Sets check-file.
pCheckFile | Shared pointer to the cross-check file |
Definition at line 134 of file CbmQaTask.h.
References CbmQaTask::fpBenchmarkInput.
|
inlineinherited |
Sets compare output file.
pCompareOutput | Shared pointer to the comparison output file |
Definition at line 138 of file CbmQaTask.h.
References CbmQaTask::fpBenchmarkOutput.
|
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 |
|
inline |
Sets event display.
flag | On/off |
minNofPoints | Minimum number of points to draw the event |
The event display draws xz- and yz-projection of the event snapshot, which includes MC and Reco tracks, hits and MC-points
Definition at line 152 of file CbmCaOutputQa.h.
References fbDrawEvents, and fEvtDisplayMinNofPoints.
|
inline |
Sets mCBM global tracking mode.
Definition at line 182 of file CbmCaOutputQa.h.
References fTrackingMode, and kMCBM.
|
inline |
Sets performance mode.
mode | Performance mode (1 is default: TODO - test) |
Definition at line 186 of file CbmCaOutputQa.h.
References fPerformanceMode.
|
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 CbmQaTask::fRecoMode.
|
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 |
Sets name of the setup.
Definition at line 155 of file CbmQaTask.h.
References CbmQaTask::fsSetupName.
|
inlineinherited |
Set storing mode.
Definition at line 112 of file CbmQaIO.h.
References CbmQaIO::fStoringMode.
Referenced by CbmCaInputQaBase< DetID >::CbmCaInputQaBase().
|
inline |
Sets STS tracking mode.
Definition at line 179 of file CbmCaOutputQa.h.
References fTrackingMode, and kSTS.
|
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().
|
inline |
Set track type list for summary table.
trackTypes | A of track type set |
Definition at line 190 of file CbmCaOutputQa.h.
References fmSummaryTableEntries.
|
inline |
Sets MuCh use flag.
flag | Boolean flag: true - detector subsystem is used, false - detector subsystem is ignored |
Definition at line 168 of file CbmCaOutputQa.h.
References fbUseMuch.
|
inline |
Sets MVD use flag.
flag | Boolean flag: true - detector subsystem is used, false - detector subsystem is ignored |
Definition at line 160 of file CbmCaOutputQa.h.
References fbUseMvd.
|
inline |
Sets STS use flag.
flag | Boolean flag: true - detector subsystem is used, false - detector subsystem is ignored |
Definition at line 164 of file CbmCaOutputQa.h.
References fbUseSts.
|
inline |
Sets TOF use flag.
flag | Boolean flag: true - detector subsystem is used, false - detector subsystem is ignored |
Definition at line 176 of file CbmCaOutputQa.h.
References fbUseTof.
|
inline |
Sets TRD use flag.
flag | Boolean flag: true - detector subsystem is used, false - detector subsystem is ignored |
Definition at line 172 of file CbmCaOutputQa.h.
References fbUseTrd.
|
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 CbmQaTask::fmCheckList.
Referenced by CbmCaInputQaSts::Check().
|
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().
|
private |
flag to draw events with the event display
Definition at line 250 of file CbmCaOutputQa.h.
Referenced by ExecQa(), and SetEventDisplay().
|
privateinherited |
Flag, if MC is used.
Definition at line 240 of file CbmQaTask.h.
Referenced by CbmQaTask::IsMCUsed().
|
private |
is MuCh used
Definition at line 247 of file CbmCaOutputQa.h.
Referenced by InitQa(), and SetUseMuch().
|
private |
is MVD used
Definition at line 245 of file CbmCaOutputQa.h.
Referenced by InitQa(), and SetUseMvd().
|
private |
is STS used
Definition at line 246 of file CbmCaOutputQa.h.
Referenced by InitQa(), and SetUseSts().
|
private |
is TOF used
Definition at line 249 of file CbmCaOutputQa.h.
Referenced by InitQa(), and SetUseTof().
|
private |
is TRD used
Definition at line 248 of file CbmCaOutputQa.h.
Referenced by InitQa(), and SetUseTrd().
|
protectedinherited |
Configuration node.
Definition at line 164 of file CbmQaIO.h.
Referenced by CbmQaTask::CompareQaObjects(), CbmQaIO::MakeQaObject(), CbmQaTask::ReadCheckListFromConfig(), CbmQaIO::ReadSpecificConfig(), and CbmQaIO::SetConfigName().
|
private |
minimum number of MC points in the event display
Definition at line 251 of file CbmCaOutputQa.h.
Referenced by ExecQa(), and SetEventDisplay().
|
private |
Input MC data (points and tracks)
Definition at line 266 of file CbmCaOutputQa.h.
Referenced by DrawEvent(), ExecQa(), and InitQa().
|
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 CbmQaTask::GetCheckList(), CbmQaTask::ReadCheckListFromConfig(), and CbmQaTask::StoreCheckResult().
|
private |
Definition at line 280 of file CbmCaOutputQa.h.
|
private |
Which track types should be listed in the summary table.
Definition at line 282 of file CbmCaOutputQa.h.
Referenced by Check(), InitQa(), and SetTrackTypeListForSummary().
|
privateinherited |
Number of processed events.
Definition at line 256 of file CbmQaTask.h.
Referenced by CbmQaTask::Exec(), CbmQaTask::Finish(), CbmQaTask::GetEventNumber(), and CbmQaTask::Init().
|
privateinherited |
A file with default ROOT objects used for the cross-check.
Definition at line 261 of file CbmQaTask.h.
Referenced by CbmQaTask::CompareQaObjects(), and CbmQaTask::SetCheckFile().
|
privateinherited |
An output file for histograms cross-check.
Definition at line 262 of file CbmQaTask.h.
Referenced by CbmQaTask::CompareTwoObjects(), and CbmQaTask::SetCompareOutput().
|
privateinherited |
Pointer to CbmEvent branch.
Definition at line 253 of file CbmQaTask.h.
Referenced by CbmQaTask::Exec(), and CbmQaTask::Init().
|
privateinherited |
Pointer to the current event.
Definition at line 254 of file CbmQaTask.h.
Referenced by CbmQaTask::Exec(), and CbmQaTask::GetCurrentEvent().
|
private |
|
private |
|
private |
Performance mode.
Definition at line 252 of file CbmCaOutputQa.h.
Referenced by InitQa(), and SetPerformanceMode().
|
private |
MC module.
Definition at line 258 of file CbmCaOutputQa.h.
|
private |
Tracking parameters object.
Definition at line 261 of file CbmCaOutputQa.h.
|
private |
Reader of the time slice.
Definition at line 257 of file CbmCaOutputQa.h.
Referenced by ExecQa(), InitQa(), and OutputQa().
|
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(), InitQa(), CbmQaIO::MakeQaDirectory(), and CbmQaIO::WriteToFile().
|
privateinherited |
Reconstruction mode.
Definition at line 242 of file CbmQaTask.h.
Referenced by CbmQaTask::Init(), and CbmQaTask::SetRecoMode().
|
protectedinherited |
Name of configuration file.
Definition at line 158 of file CbmQaIO.h.
Referenced by CbmQaIO::GetConfigName(), and CbmQaIO::SetConfigName().
|
privateinherited |
Default tag (git SHA etc.)
Definition at line 259 of file CbmQaTask.h.
Referenced by CbmQaTask::CompareTwoObjects(), CbmQaTask::GetDefaultTag(), and CbmQaTask::SetDefaultTag().
|
private |
Definition at line 256 of file CbmCaOutputQa.h.
Referenced by InitQa(), and ReadParameters().
|
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(), 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(), InitQa(), CbmQaIO::MakeQaDirectory(), and CbmQaIO::SetRootFolderName().
|
privateinherited |
Name of the setup (to draw on the canvases)
Definition at line 255 of file CbmQaTask.h.
Referenced by CbmQaTask::GetSetupName(), CbmQaTask::PutSetupNameOnPad(), and CbmQaTask::SetSetupName().
|
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().
|
privateinherited |
Version tag (git SHA etc.)
Definition at line 258 of file CbmQaTask.h.
Referenced by CbmQaTask::CompareTwoObjects(), CbmQaTask::GetVersionTag(), and CbmQaTask::SetVersionTag().
|
private |
Tracking mode.
Definition at line 254 of file CbmCaOutputQa.h.
Referenced by InitQa(), SetMcbmTrackingMode(), and SetStsTrackingMode().
|
private |
Usage flag for different track types.
Definition at line 290 of file CbmCaOutputQa.h.
Referenced by AddTrackType(), Check(), CreateSummary(), DrawSetOf(), FillRecoTrack(), and InitQa().
|
private |
Definition at line 263 of file CbmCaOutputQa.h.
Referenced by InitQa().
|
private |
Definition at line 264 of file CbmCaOutputQa.h.
Referenced by DrawEvent(), ExecQa(), and InitQa().
|
private |
Histogrammers for different track types.
Definition at line 289 of file CbmCaOutputQa.h.
Referenced by Check(), CreateSummary(), DrawSetOf(), FillRecoTrack(), and InitQa().
|
private |
Definition at line 265 of file CbmCaOutputQa.h.
Referenced by DrawEvent(), ExecQa(), and InitQa().
|
private |
Array of track type unique names.
Definition at line 288 of file CbmCaOutputQa.h.
Referenced by InitQa().
|
private |
Drawing attributes for track types.
Definition at line 291 of file CbmCaOutputQa.h.
Referenced by InitDrawingAttributes(), and InitQa().
|
staticconstexprprivate |
Canvas size along x-axis [px].
Definition at line 297 of file CbmCaOutputQa.h.
Referenced by CreateSummary().
|
staticconstexprprivate |
Canvas size along y-axis [px].
Definition at line 298 of file CbmCaOutputQa.h.
Referenced by CreateSummary().
|
staticconstexprprivate |
Definition at line 103 of file CbmCaOutputQa.h.