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

#include <CbmCaInputQaTrd.h>

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

Public Types

enum  EStoringMode
 
using ObjList_t
 

Public Member Functions

 CbmCaInputQaTrd (int verbose, bool isMCUsed)
 Constructor from parameters.
 
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.
 
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.
 
void SetStoringMode (EStoringMode mode)
 Set storing mode.
 

Protected Types

enum  EMonitorKey
 QA monitor counters. More...
 
using Point_t
 Point type for a given detector ID.
 
using Hit_t
 Hit type for a given detector ID.
 

Protected Member Functions

void Check () override
 Method to check, if the QA results are acceptable.
 
void CreateSummary () override
 Creates summary cavases, tables etc.
 
void DefineParameters () override
 Defines parameters of the task.
 
void DeInit () override
 De-initializes QA-task.
 
void FillHistogramsPerHit () override
 Fills histograms per hit.
 
void ExecQa () override
 Fills histograms per event or time-slice.
 
InitStatus InitQa () override
 Initializes QA.
 
virtual void FillHistogramsPerPoint ()
 Fills histograms per MC point.
 
std::pair< std::string, bool > CheckRangePull (TH1 *h) const
 Checks ranges for mean and standard deviation.
 
const cbm::ca::HitQaDataGetHitQaData () const
 Returns a pointer to current hit QA data object.
 
bool IsTrackSelected (const CbmMCTrack *track, const Point_t *point) const
 checks if the track at mc point passes the track selection cuts
 
bool IsHitAcceptable (const CbmPixelHit *pHit) const
 Checks, if the hit is acceptable (has reasonable parameters)
 
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.
 
bool CheckRange (std::string_view name, T var, T lo, T hi) const
 Checks range of variable.
 
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.
 
CbmEventGetCurrentEvent ()
 Gets pointer to current event.
 
void StoreCheckResult (const std::string &tag, bool result, const std::string &msg="")
 Stores check flag to the check-list.
 
void CheckProperty (T &&property, const char *name) const
 Function to check, if a property is defined.
 
std::optional< ConfigReadSpecificConfig () 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

cbm::algo::ca::Monitor< EMonitorKeyfMonitor
 Monitor for the input QA.
 
Config fConfig
 Task specific configuration parameters.
 
const cbm::algo::RecoSetupUnit_t< ToCbmModuleId(DetID)> * fpDetInterface
 Instance of detector interface.
 
CbmTimeSlicefpTimeSlice
 Pointer to current time-slice.
 
TClonesArray * fpHits
 Array of hits.
 
TClonesArray * fpClusters
 Array of hit clusters.
 
CbmMCDataManagerfpMCDataManager
 MC data manager.
 
CbmMCEventListfpMCEventList
 MC event list.
 
CbmMCDataArrayfpMCTracks
 Array of MC tracks.
 
CbmMCDataArrayfpMCPoints
 Array of MC points.
 
TClonesArray * fpHitMatches
 Array of hit matches.
 
int fNbins
 General number of bins.
 
int fNbinsZ
 Number of bins for z axis in overall views.
 
std::array< double, 2 > fRHitDx
 Range for hit x coordinate error [cm].
 
std::array< double, 2 > fRHitDy
 Range for hit y coordinate error [cm].
 
std::array< double, 2 > fRHitDu
 Range for hit u coordinate error [cm].
 
std::array< double, 2 > fRHitDv
 Range for hit v coordinate error [cm].
 
std::array< double, 2 > fRHitDt
 Range for hit time error [ns].
 
std::array< double, 2 > fRResX
 Range for residual of x coordinate [cm].
 
std::array< double, 2 > fRResY
 Range for residual of y coordinate [cm].
 
std::array< double, 2 > fRResU
 Range for residual of u coordinate [cm].
 
std::array< double, 2 > fRResV
 Range for residual of v coordinate [cm].
 
std::array< double, 2 > fRResT
 Range for residual of time [ns].
 
std::array< double, 2 > fRangeDzHitPoint
 Range for z-pos difference of the hit and point [cm].
 
std::vector< double > frXmin
 Range for hit x coordinate [cm].
 
std::vector< double > frXmax
 Range for hit x coordinate [cm].
 
std::vector< double > frYmin
 Range for hit y coordinate [cm].
 
std::vector< double > frYmax
 Range for hit y coordinate [cm].
 
std::vector< double > frZmin
 Range for hit z coordinate [cm].
 
std::vector< double > frZmax
 Range for hit z coordinate [cm].
 
std::vector< TH2F * > fvph_hit_xy
 hit y vs x in different stations
 
std::vector< TH2F * > fvph_hit_zx
 hit x vs z in different stations
 
std::vector< TH2F * > fvph_hit_zy
 hit y vs z in different stations
 
std::vector< TH1F * > fvph_hit_station_delta_z
 Difference between station and hit z positions [cm].
 
std::vector< TH1F * > fvph_hit_dx
 
std::vector< TH1F * > fvph_hit_dy
 
std::vector< TH1F * > fvph_hit_du
 
std::vector< TH1F * > fvph_hit_dv
 
std::vector< TH1F * > fvph_hit_kuv
 
std::vector< TH1F * > fvph_hit_dt
 
std::vector< TH1F * > fvph_n_points_per_hit
 number of points per one hit in different stations
 
std::vector< TH2F * > fvph_point_xy
 point y vs x in different stations
 
std::vector< TH2F * > fvph_point_zx
 point x vs z in different stations
 
std::vector< TH2F * > fvph_point_zy
 point y vs z in different stations
 
std::vector< TH1F * > fvph_point_hit_delta_z
 difference between z of hit and MC point in different stations
 
std::vector< TH1F * > fvph_res_x
 residual for x coordinate in different stations
 
std::vector< TH1F * > fvph_res_y
 residual for y coordinate in different stations
 
std::vector< TH1F * > fvph_res_u
 residual for u coordinate in different stations
 
std::vector< TH1F * > fvph_res_v
 residual for v coordinate in different stations
 
std::vector< TH1F * > fvph_res_t
 residual for t coordinate in different stations
 
std::vector< TH2F * > fvph_res_x_vs_x
 residual for x coordinate in different stations
 
std::vector< TH2F * > fvph_res_y_vs_y
 residual for y coordinate in different stations
 
std::vector< TH2F * > fvph_res_u_vs_u
 residual for u coordinate in different stations
 
std::vector< TH2F * > fvph_res_v_vs_v
 residual for v coordinate in different stations
 
std::vector< TH2F * > fvph_res_t_vs_t
 residual for t coordinate in different stations
 
std::vector< TH1F * > fvph_pull_x
 pull for x coordinate in different stations
 
std::vector< TH1F * > fvph_pull_y
 pull for y coordinate in different stations
 
std::vector< TH1F * > fvph_pull_u
 pull for u coordinate in different stations
 
std::vector< TH1F * > fvph_pull_v
 pull for v coordinate in different stations
 
std::vector< TH1F * > fvph_pull_t
 pull for t coordinate in different stations
 
std::vector< TH2F * > fvph_pull_x_vs_x
 pull for x coordinate in different stations
 
std::vector< TH2F * > fvph_pull_y_vs_y
 pull for y coordinate in different stations
 
std::vector< TH2F * > fvph_pull_u_vs_u
 pull for u coordinate in different stations
 
std::vector< TH2F * > fvph_pull_v_vs_v
 pull for v coordinate in different stations
 
std::vector< TH2F * > fvph_pull_t_vs_t
 pull for t coordinate in different stations
 
std::vector< TProfile2D * > fvpe_reco_eff_vs_xy
 Efficiency of hit reconstruction vs. x and y coordinates of MC.
 
std::vector< TH1F * > fvph_reco_eff
 Distribution of hit reconstruction efficiency in bins of fvpe_reco_eff_vs_xy.
 
CbmDigiManagerfDigiManager
 Interface to digi branches.
 
cbm::ca::HitQaData fHitQaData
 Current hit QA data object.
 
TString fsRootFolderName
 Name of root folder.
 
TString fsConfigName
 Name of configuration file.
 
TString fsPrefix
 Unique prefix for all writeable root.
 
EStoringMode fStoringMode
 Objects storing mode.
 
std::shared_ptr< ObjList_tfpvObjList
 List of registered ROOT objects.
 
YAML::Node fConfigNode
 Configuration node.
 

Static Protected Attributes

static constexpr auto DetName
 
static constexpr double kNAN
 
static constexpr int kNbinsPull
 
static constexpr double kRPull [2]
 Range for pull histograms coordinate.
 

Private Member Functions

 ClassDefOverride (CbmCaInputQaTrd, 0)
 
void DeInitBase ()
 De-initializes this task.
 
bool CompareTwoObjects (const TObject *pObjL, const TObject *pObjR, const TString &objName, const ObjectComparisonConfig &cfg)
 Process object comparison.
 
T * ConstructAndRegisterQaObject (TString name, Args... args)
 Creates and registers a ROOT object.
 

Private Attributes

bool fbUseMC
 Flag, if MC is used.
 
ECbmRecoMode fRecoMode
 Reconstruction mode.
 
std::map< std::string, CheckFlagsfmCheckList
 A QA check-list map.
 
TClonesArray * fpBrEvents
 Pointer to CbmEvent branch.
 
CbmEventfpCurrentEvent
 Pointer to the current event.
 
std::string fsSetupName
 Name of the setup (to draw on the canvases)
 
TParameter< int > fNofEvents
 Number of processed events.
 
TString fsVersionTag
 Version tag (git SHA etc.)
 
TString fsDefaultTag
 Default tag (git SHA etc.)
 
std::shared_ptr< TFile > fpBenchmarkInput
 A file with default ROOT objects used for the cross-check.
 
std::shared_ptr< TFile > fpBenchmarkOutput
 An output file for histograms cross-check.
 

Detailed Description

A QA-task class, which provides assurance of TOF hits and geometry

Definition at line 17 of file CbmCaInputQaTrd.h.

Member Typedef Documentation

◆ Hit_t

using CbmCaInputQaBase< DetID >::Hit_t
protectedinherited

Hit type for a given detector ID.

Definition at line 58 of file CbmCaInputQaBase.h.

◆ ObjList_t

using CbmQaIO::ObjList_t
inherited

Definition at line 45 of file CbmQaIO.h.

◆ Point_t

using CbmCaInputQaBase< DetID >::Point_t
protectedinherited

Point type for a given detector ID.

Definition at line 57 of file CbmCaInputQaBase.h.

Member Enumeration Documentation

◆ EMonitorKey

enum CbmCaInputQaBase::EMonitorKey
strongprotectedinherited

QA monitor counters.

Definition at line 161 of file CbmCaInputQaBase.h.

◆ EStoringMode

enum CbmQaIO::EStoringMode
stronginherited

Definition at line 47 of file CbmQaIO.h.

Constructor & Destructor Documentation

◆ CbmCaInputQaTrd()

CbmCaInputQaTrd::CbmCaInputQaTrd ( int verbose,
bool isMCUsed )

Constructor from parameters.

Parameters
verboseVerbose level
isMCUsedFlag, whether MC information is available for this task

Definition at line 16 of file CbmCaInputQaTrd.cxx.

References CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kTrd >::CbmCaInputQaBase(), and DefineParameters().

Referenced by ClassDefOverride().

Member Function Documentation

◆ Check()

void CbmCaInputQaTrd::Check ( )
inlineoverrideprotectedvirtual

Method to check, if the QA results are acceptable.

Reimplemented from CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kTrd >.

Definition at line 26 of file CbmCaInputQaTrd.h.

References CbmCaInputQaBase< DetID >::Check().

◆ CheckProperty()

void CbmQaIO::CheckProperty ( T && property,
const char * name ) const
protectedinherited

Function to check, if a property is defined.

Parameters
propertyA property to be tested
nameA name of property (used for logging)
Note
Throws an exception, if property is undefined

Definition at line 119 of file CbmQaIO.h.

◆ CheckRange() [1/3]

bool CbmQaTask::CheckRange ( std::string_view name,
T var,
T lo,
T hi ) const
protectedinherited

Checks range of variable.

Parameters
nameName of the variable
varVariable to check
loLower limit of the variable
hiUpper limit of the variable
Returns
False, if variable exits the range

Definition at line 196 of file CbmQaTask.h.

◆ CheckRange() [2/3]

bool CbmQaTask::CheckRange ( std::string_view name,
T var,
T varErr,
T lo,
T hi ) const
protectedinherited

Checks range of variable.

Parameters
nameName of the variable
varVariable to check
varErrStandard Error of the variable
loLower limit of the variable
hiUpper limit of the variable
Returns
False, if variable exits the range

Definition at line 206 of file CbmQaTask.h.

◆ CheckRange() [3/3]

bool CbmQaTask::CheckRange ( TH1 * h,
double meanMax,
double rmsMin,
double rmsMax )
protectedinherited

Checks ranges for mean and standard deviation.

Returns
False, if variable exits the range

Definition at line 210 of file CbmQaTask.cxx.

◆ CheckRangePull()

std::pair< std::string, bool > CbmCaInputQaBase< DetID >::CheckRangePull ( TH1 * h) const
protectedinherited

Checks ranges for mean and standard deviation.

Returns
String with an error message: empty string is equivalent to success

Definition at line 136 of file CbmCaInputQaBase.cxx.

◆ ClassDefOverride()

CbmCaInputQaTrd::ClassDefOverride ( CbmCaInputQaTrd ,
0  )
private

References CbmCaInputQaTrd().

◆ CompareQaObjects()

bool CbmQaTask::CompareQaObjects ( )
inherited

Process ROOT objects comparison.

Returns
true All the object are consistent
false Some of the objects are inconsistent

Definition at line 104 of file CbmQaTask.cxx.

◆ CompareTwoObjects()

bool CbmQaTask::CompareTwoObjects ( const TObject * pObjL,
const TObject * pObjR,
const TString & objName,
const ObjectComparisonConfig & cfg )
privateinherited

Process object comparison.

Template Parameters
ObjClass of the ROOT object
Parameters
pObjLFirst object (this)
pObjRSecond object (default)
objNameName of the object (contains full path to the object)
cfgComparison configuration entry
Returns
true Histograms are equal within selected method
false Histograms differ within one of the comparison methods

Definition at line 237 of file CbmQaTask.h.

◆ ConstructAndRegisterQaObject()

T * CbmQaIO::ConstructAndRegisterQaObject ( TString name,
Args... args )
privateinherited

Creates and registers a ROOT object.

Parameters
nameA name of the ROOT object, which can contain a sub-directory
argsOther arguments, passed to the ROOT object constructor

Definition at line 170 of file CbmQaIO.h.

◆ CreateSummary()

void CbmCaInputQaTrd::CreateSummary ( )
inlineoverrideprotectedvirtual

Creates summary cavases, tables etc.

Reimplemented from CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kTrd >.

Definition at line 29 of file CbmCaInputQaTrd.h.

References CbmCaInputQaBase< DetID >::CreateSummary().

◆ DefineParameters()

◆ DeInit()

void CbmCaInputQaTrd::DeInit ( )
inlineoverrideprotectedvirtual

De-initializes QA-task.

Reimplemented from CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kTrd >.

Definition at line 35 of file CbmCaInputQaTrd.h.

References CbmCaInputQaBase< DetID >::DeInit().

◆ DeInitBase()

void CbmQaTask::DeInitBase ( )
privateinherited

De-initializes this task.

Definition at line 226 of file CbmQaTask.cxx.

◆ DisableEventMode()

void CbmQaTask::DisableEventMode ( )
inherited

Disables event-by-event execution.

By default, if the branch

◆ Exec()

void CbmQaTask::Exec ( Option_t * )
finaloverrideprotectedinherited

FairTask: Defines action of the task in the event/TS.

Definition at line 162 of file CbmQaTask.cxx.

◆ ExecQa()

void CbmCaInputQaTrd::ExecQa ( )
inlineoverrideprotectedvirtual

Fills histograms per event or time-slice.

Reimplemented from CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kTrd >.

Definition at line 41 of file CbmCaInputQaTrd.h.

References CbmCaInputQaBase< DetID >::ExecQa().

◆ FillHistogramsPerHit()

void CbmCaInputQaTrd::FillHistogramsPerHit ( )
inlineoverrideprotectedvirtual

Fills histograms per hit.

Reimplemented from CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kTrd >.

Definition at line 38 of file CbmCaInputQaTrd.h.

◆ FillHistogramsPerPoint()

virtual void CbmCaInputQaBase< DetID >::FillHistogramsPerPoint ( )
inlineprotectedvirtualinherited

Fills histograms per MC point.

Definition at line 120 of file CbmCaInputQaBase.h.

◆ Finish()

void CbmQaTask::Finish ( )
finaloverrideprotectedinherited

FairTask: Defines action of the task in the end of run.

Definition at line 165 of file CbmQaTask.cxx.

◆ GetCheckList()

const std::map< std::string, CheckFlags > & CbmQaTask::GetCheckList ( ) const
inlineinherited

Gets check-list.

Definition at line 113 of file CbmQaTask.h.

◆ GetConfigName()

const char * CbmQaIO::GetConfigName ( ) const
inlineinherited

Gets config name.

Definition at line 75 of file CbmQaIO.h.

◆ GetCurrentEvent()

CbmEvent * CbmQaTask::GetCurrentEvent ( )
inlineprotectedinherited

Gets pointer to current event.

Definition at line 216 of file CbmQaTask.h.

◆ GetDefaultTag()

const TString & CbmQaTask::GetDefaultTag ( ) const
inlineinherited

Gets default tag.

Definition at line 116 of file CbmQaTask.h.

◆ GetEventNumber()

int CbmQaTask::GetEventNumber ( ) const
inlineprotectedinherited

Get current event number.

Definition at line 183 of file CbmQaTask.h.

◆ GetHitQaData()

const cbm::ca::HitQaData & CbmCaInputQaBase< DetID >::GetHitQaData ( ) const
inlineprotectedinherited

Returns a pointer to current hit QA data object.

The hit QA data object is filled on each step for hit reconstruction and available inside functions FillHit() and FillMCPoint()

Definition at line 142 of file CbmCaInputQaBase.h.

◆ GetSetupName()

const std::string & CbmQaTask::GetSetupName ( ) const
inlineinherited

Gets name of the setup.

Definition at line 119 of file CbmQaTask.h.

◆ GetVersionTag()

const TString & CbmQaTask::GetVersionTag ( ) const
inlineinherited

Gets version tag.

Definition at line 122 of file CbmQaTask.h.

◆ Init()

InitStatus CbmQaTask::Init ( )
finaloverrideprotectedinherited

FairTask: Task initialization in the beginning of the run.

Definition at line 168 of file CbmQaTask.cxx.

◆ InitQa()

InitStatus CbmCaInputQaTrd::InitQa ( )
overrideprotectedvirtual

Initializes QA.

Reimplemented from CbmCaInputQaBase< cbm::algo::ca::EDetectorID::kTrd >.

Definition at line 46 of file CbmCaInputQaTrd.cxx.

References CbmCaInputQaBase< DetID >::InitQa().

◆ IsHitAcceptable()

bool CbmCaInputQaBase< DetID >::IsHitAcceptable ( const CbmPixelHit * pHit) const
protectedinherited

Checks, if the hit is acceptable (has reasonable parameters)

◆ IsMCUsed()

bool CbmQaTask::IsMCUsed ( ) const
inlineinherited

Returns flag, whether MC information is used or not in the task.

Definition at line 126 of file CbmQaTask.h.

◆ IsTrackSelected()

bool CbmCaInputQaBase< DetID >::IsTrackSelected ( const CbmMCTrack * track,
const Point_t * point ) const
protectedinherited

checks if the track at mc point passes the track selection cuts

Returns
true when selected

Definition at line 146 of file CbmCaInputQaBase.cxx.

◆ MakeQaDirectory()

void CbmQaIO::MakeQaDirectory ( TString sName)
inherited

Definition at line 99 of file CbmQaIO.cxx.

◆ MakeQaObject()

T * CbmQaIO::MakeQaObject ( TString sName,
TString sTitle,
Args... args )
inherited

Definition at line 90 of file CbmQaIO.h.

◆ PutSetupNameOnPad()

void CbmQaTask::PutSetupNameOnPad ( double xMin,
double yMin,
double xMax,
double yMax )
protectedinherited

Puts setup title on the canvas.

Definition at line 213 of file CbmQaTask.cxx.

◆ ReadCheckListFromConfig()

void CbmQaTask::ReadCheckListFromConfig ( )
inherited

Reads check-list from the configuration file.

Definition at line 129 of file CbmQaTask.cxx.

◆ ReadSpecificConfig()

std::optional< Config > CbmQaIO::ReadSpecificConfig ( ) const
inlineprotectedinherited

Reads the specific configuration structure from the YAML node.

Template Parameters
ConfigType 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.

◆ ReInit()

InitStatus CbmQaTask::ReInit ( )
finaloverrideprotectedinherited

FairTask: Task reinitialization.

Definition at line 171 of file CbmQaTask.cxx.

◆ SetCanvasProperties()

void CbmQaIO::SetCanvasProperties ( TCanvas * pCanv) const
protectedvirtualinherited

Applies properties on the canvas created with the MakeQaObject funciton.

Parameters
pCanvPointer to the canvas

Definition at line 150 of file CbmQaIO.cxx.

◆ SetCheckFile()

void CbmQaTask::SetCheckFile ( const std::shared_ptr< TFile > & pCheckFile)
inlineinherited

Sets check-file.

Parameters
pCheckFileShared pointer to the cross-check file

Definition at line 134 of file CbmQaTask.h.

◆ SetCompareOutput()

void CbmQaTask::SetCompareOutput ( const std::shared_ptr< TFile > & pCompareOutput)
inlineinherited

Sets compare output file.

Parameters
pCompareOutputShared pointer to the comparison output file

Definition at line 138 of file CbmQaTask.h.

◆ SetConfigName()

void CbmQaIO::SetConfigName ( const char * path)
inherited

Creates a ROOT object.

Sets config name

Parameters
nameA path to the config

Definition at line 104 of file CbmQaIO.cxx.

◆ SetDefaultTag()

void CbmQaTask::SetDefaultTag ( const TString & tag)
inlineinherited

Sets default tag.

Definition at line 144 of file CbmQaTask.h.

◆ SetRecoMode()

void CbmQaTask::SetRecoMode ( ECbmRecoMode recoMode)
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.

◆ SetRootFolderName()

void CbmQaIO::SetRootFolderName ( const TString & path)
inlineinherited

Sets a common root path to the objects in the output file.

Parameters
pathA path to the object

Definition at line 108 of file CbmQaIO.h.

◆ SetSetupName()

void CbmQaTask::SetSetupName ( const char * setup)
inlineinherited

Sets name of the setup.

Definition at line 155 of file CbmQaTask.h.

◆ SetStoringMode() [1/2]

void CbmQaIO::SetStoringMode ( EStoringMode mode)
inlineinherited

Set storing mode.

Definition at line 111 of file CbmQaIO.h.

◆ SetStoringMode() [2/2]

void CbmQaIO::SetStoringMode ( EStoringMode mode)
inlineinherited

Set storing mode.

Examples
/tmp/builds/computing/cbmroot/core/qa/CbmQaIO.h.

Definition at line 111 of file CbmQaIO.h.

References fStoringMode.

Referenced by CbmCaInputQaBase< DetID >::CbmCaInputQaBase().

◆ SetTH1Properties()

void CbmQaIO::SetTH1Properties ( TH1 * pHist) const
protectedvirtualinherited

Applies properties on the histogram created with the MakeQaObject function.

Parameters
pHistPointer to the histogram

Definition at line 138 of file CbmQaIO.cxx.

◆ SetTH2Properties()

void CbmQaIO::SetTH2Properties ( TH2 * pHist) const
protectedvirtualinherited

Applies properties on the histogram created with the MakeQaObject function.

Parameters
pHistPointer to the histogram

Definition at line 142 of file CbmQaIO.cxx.

◆ SetTProfile2DProperties()

void CbmQaIO::SetTProfile2DProperties ( TProfile2D * pHist) const
protectedvirtualinherited

Applies properties on the profile 2D created with the MakeQaObject function.

Parameters
pHistPointer to the profile

Definition at line 146 of file CbmQaIO.cxx.

◆ SetVersionTag()

void CbmQaTask::SetVersionTag ( const TString & tag)
inlineinherited

Sets version tag.

Definition at line 141 of file CbmQaTask.h.

◆ StoreCheckResult()

void CbmQaTask::StoreCheckResult ( const std::string & tag,
bool result,
const std::string & msg = "" )
protectedinherited

Stores check flag to the check-list.

Parameters
tagThe flag name
resultCheck result
msgSupporting message (optional)

Definition at line 222 of file CbmQaTask.cxx.

◆ WriteToFile()

void CbmQaIO::WriteToFile ( TFile * pOutFile) const
protectedinherited

Writes objects into file.

Parameters
pOutFilePointer to output ROOT file

Definition at line 154 of file CbmQaIO.cxx.

Member Data Documentation

◆ DetName

auto CbmCaInputQaBase< DetID >::DetName
staticconstexprprotectedinherited

Definition at line 179 of file CbmCaInputQaBase.h.

◆ fbUseMC

bool CbmQaTask::fbUseMC
privateinherited

Flag, if MC is used.

Definition at line 240 of file CbmQaTask.h.

◆ fConfig

Config CbmCaInputQaBase< DetID >::fConfig
protectedinherited

Task specific configuration parameters.

Definition at line 172 of file CbmCaInputQaBase.h.

◆ fConfigNode

YAML::Node CbmQaIO::fConfigNode
protectedinherited

Configuration node.

Definition at line 163 of file CbmQaIO.h.

◆ fDigiManager

CbmDigiManager* CbmCaInputQaBase< DetID >::fDigiManager
protectedinherited

Interface to digi branches.

Definition at line 287 of file CbmCaInputQaBase.h.

◆ fHitQaData

cbm::ca::HitQaData CbmCaInputQaBase< DetID >::fHitQaData
protectedinherited

Current hit QA data object.

Definition at line 291 of file CbmCaInputQaBase.h.

◆ fmCheckList

std::map<std::string, CheckFlags> CbmQaTask::fmCheckList
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.

◆ fMonitor

cbm::algo::ca::Monitor<EMonitorKey> CbmCaInputQaBase< DetID >::fMonitor
protectedinherited

Monitor for the input QA.

Definition at line 170 of file CbmCaInputQaBase.h.

◆ fNbins

int CbmCaInputQaBase< DetID >::fNbins
protectedinherited

General number of bins.

Definition at line 200 of file CbmCaInputQaBase.h.

◆ fNbinsZ

int CbmCaInputQaBase< DetID >::fNbinsZ
protectedinherited

Number of bins for z axis in overall views.

Definition at line 201 of file CbmCaInputQaBase.h.

◆ fNofEvents

TParameter<int> CbmQaTask::fNofEvents
privateinherited

Number of processed events.

Definition at line 256 of file CbmQaTask.h.

◆ fpBenchmarkInput

std::shared_ptr<TFile> CbmQaTask::fpBenchmarkInput
privateinherited

A file with default ROOT objects used for the cross-check.

Definition at line 261 of file CbmQaTask.h.

◆ fpBenchmarkOutput

std::shared_ptr<TFile> CbmQaTask::fpBenchmarkOutput
privateinherited

An output file for histograms cross-check.

Definition at line 262 of file CbmQaTask.h.

◆ fpBrEvents

TClonesArray* CbmQaTask::fpBrEvents
privateinherited

Pointer to CbmEvent branch.

Definition at line 253 of file CbmQaTask.h.

◆ fpClusters

TClonesArray* CbmCaInputQaBase< DetID >::fpClusters
protectedinherited

Array of hit clusters.

Definition at line 184 of file CbmCaInputQaBase.h.

◆ fpCurrentEvent

CbmEvent* CbmQaTask::fpCurrentEvent
privateinherited

Pointer to the current event.

Definition at line 254 of file CbmQaTask.h.

◆ fpDetInterface

const cbm::algo::RecoSetupUnit_t<ToCbmModuleId(DetID)>* CbmCaInputQaBase< DetID >::fpDetInterface
protectedinherited

Instance of detector interface.

Definition at line 177 of file CbmCaInputQaBase.h.

◆ fpHitMatches

TClonesArray* CbmCaInputQaBase< DetID >::fpHitMatches
protectedinherited

Array of hit matches.

Definition at line 191 of file CbmCaInputQaBase.h.

◆ fpHits

TClonesArray* CbmCaInputQaBase< DetID >::fpHits
protectedinherited

Array of hits.

Definition at line 183 of file CbmCaInputQaBase.h.

◆ fpMCDataManager

CbmMCDataManager* CbmCaInputQaBase< DetID >::fpMCDataManager
protectedinherited

MC data manager.

Definition at line 186 of file CbmCaInputQaBase.h.

◆ fpMCEventList

CbmMCEventList* CbmCaInputQaBase< DetID >::fpMCEventList
protectedinherited

MC event list.

Definition at line 187 of file CbmCaInputQaBase.h.

◆ fpMCPoints

CbmMCDataArray* CbmCaInputQaBase< DetID >::fpMCPoints
protectedinherited

Array of MC points.

Definition at line 189 of file CbmCaInputQaBase.h.

◆ fpMCTracks

CbmMCDataArray* CbmCaInputQaBase< DetID >::fpMCTracks
protectedinherited

Array of MC tracks.

Definition at line 188 of file CbmCaInputQaBase.h.

◆ fpTimeSlice

CbmTimeSlice* CbmCaInputQaBase< DetID >::fpTimeSlice
protectedinherited

Pointer to current time-slice.

Definition at line 181 of file CbmCaInputQaBase.h.

◆ fpvObjList

std::shared_ptr<ObjList_t> CbmQaIO::fpvObjList
protectedinherited

List of registered ROOT objects.

Definition at line 161 of file CbmQaIO.h.

◆ fRangeDzHitPoint

std::array<double, 2> CbmCaInputQaBase< DetID >::fRangeDzHitPoint
protectedinherited

Range for z-pos difference of the hit and point [cm].

Definition at line 215 of file CbmCaInputQaBase.h.

◆ fRecoMode

ECbmRecoMode CbmQaTask::fRecoMode
privateinherited

Reconstruction mode.

Definition at line 242 of file CbmQaTask.h.

◆ fRHitDt

std::array<double, 2> CbmCaInputQaBase< DetID >::fRHitDt
protectedinherited

Range for hit time error [ns].

Definition at line 207 of file CbmCaInputQaBase.h.

Referenced by CbmCaInputQaTrd::DefineParameters().

◆ fRHitDu

std::array<double, 2> CbmCaInputQaBase< DetID >::fRHitDu
protectedinherited

Range for hit u coordinate error [cm].

Definition at line 205 of file CbmCaInputQaBase.h.

Referenced by CbmCaInputQaTrd::DefineParameters().

◆ fRHitDv

std::array<double, 2> CbmCaInputQaBase< DetID >::fRHitDv
protectedinherited

Range for hit v coordinate error [cm].

Definition at line 206 of file CbmCaInputQaBase.h.

Referenced by CbmCaInputQaTrd::DefineParameters().

◆ fRHitDx

std::array<double, 2> CbmCaInputQaBase< DetID >::fRHitDx
protectedinherited

Range for hit x coordinate error [cm].

Definition at line 203 of file CbmCaInputQaBase.h.

Referenced by CbmCaInputQaTrd::DefineParameters().

◆ fRHitDy

std::array<double, 2> CbmCaInputQaBase< DetID >::fRHitDy
protectedinherited

Range for hit y coordinate error [cm].

Definition at line 204 of file CbmCaInputQaBase.h.

Referenced by CbmCaInputQaTrd::DefineParameters().

◆ fRResT

std::array<double, 2> CbmCaInputQaBase< DetID >::fRResT
protectedinherited

Range for residual of time [ns].

Definition at line 213 of file CbmCaInputQaBase.h.

Referenced by CbmCaInputQaTrd::DefineParameters().

◆ fRResU

std::array<double, 2> CbmCaInputQaBase< DetID >::fRResU
protectedinherited

Range for residual of u coordinate [cm].

Definition at line 211 of file CbmCaInputQaBase.h.

Referenced by CbmCaInputQaTrd::DefineParameters().

◆ fRResV

std::array<double, 2> CbmCaInputQaBase< DetID >::fRResV
protectedinherited

Range for residual of v coordinate [cm].

Definition at line 212 of file CbmCaInputQaBase.h.

Referenced by CbmCaInputQaTrd::DefineParameters().

◆ fRResX

std::array<double, 2> CbmCaInputQaBase< DetID >::fRResX
protectedinherited

Range for residual of x coordinate [cm].

Definition at line 209 of file CbmCaInputQaBase.h.

Referenced by CbmCaInputQaTrd::DefineParameters().

◆ fRResY

std::array<double, 2> CbmCaInputQaBase< DetID >::fRResY
protectedinherited

Range for residual of y coordinate [cm].

Definition at line 210 of file CbmCaInputQaBase.h.

Referenced by CbmCaInputQaTrd::DefineParameters().

◆ frXmax

std::vector<double> CbmCaInputQaBase< DetID >::frXmax
protectedinherited

Range for hit x coordinate [cm].

Definition at line 224 of file CbmCaInputQaBase.h.

◆ frXmin

std::vector<double> CbmCaInputQaBase< DetID >::frXmin
protectedinherited

Range for hit x coordinate [cm].

Definition at line 223 of file CbmCaInputQaBase.h.

◆ frYmax

std::vector<double> CbmCaInputQaBase< DetID >::frYmax
protectedinherited

Range for hit y coordinate [cm].

Definition at line 226 of file CbmCaInputQaBase.h.

◆ frYmin

std::vector<double> CbmCaInputQaBase< DetID >::frYmin
protectedinherited

Range for hit y coordinate [cm].

Definition at line 225 of file CbmCaInputQaBase.h.

◆ frZmax

std::vector<double> CbmCaInputQaBase< DetID >::frZmax
protectedinherited

Range for hit z coordinate [cm].

Definition at line 228 of file CbmCaInputQaBase.h.

◆ frZmin

std::vector<double> CbmCaInputQaBase< DetID >::frZmin
protectedinherited

Range for hit z coordinate [cm].

Definition at line 227 of file CbmCaInputQaBase.h.

◆ fsConfigName

TString CbmQaIO::fsConfigName
protectedinherited

Name of configuration file.

Definition at line 157 of file CbmQaIO.h.

◆ fsDefaultTag

TString CbmQaTask::fsDefaultTag
privateinherited

Default tag (git SHA etc.)

Definition at line 259 of file CbmQaTask.h.

◆ fsPrefix

TString CbmQaIO::fsPrefix
protectedinherited

Unique prefix for all writeable root.

Definition at line 158 of file CbmQaIO.h.

◆ fsRootFolderName

TString CbmQaIO::fsRootFolderName
protectedinherited

Name of root folder.

Definition at line 156 of file CbmQaIO.h.

◆ fsSetupName

std::string CbmQaTask::fsSetupName
privateinherited

Name of the setup (to draw on the canvases)

Definition at line 255 of file CbmQaTask.h.

◆ fStoringMode

EStoringMode CbmQaIO::fStoringMode
protectedinherited

Objects storing mode.

Definition at line 160 of file CbmQaIO.h.

◆ fsVersionTag

TString CbmQaTask::fsVersionTag
privateinherited

Version tag (git SHA etc.)

Definition at line 258 of file CbmQaTask.h.

◆ fvpe_reco_eff_vs_xy

std::vector<TProfile2D*> CbmCaInputQaBase< DetID >::fvpe_reco_eff_vs_xy
protectedinherited

Efficiency of hit reconstruction vs. x and y coordinates of MC.

Definition at line 284 of file CbmCaInputQaBase.h.

◆ fvph_hit_dt

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_hit_dt
protectedinherited

Definition at line 246 of file CbmCaInputQaBase.h.

◆ fvph_hit_du

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_hit_du
protectedinherited

Definition at line 243 of file CbmCaInputQaBase.h.

◆ fvph_hit_dv

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_hit_dv
protectedinherited

Definition at line 244 of file CbmCaInputQaBase.h.

◆ fvph_hit_dx

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_hit_dx
protectedinherited

Definition at line 241 of file CbmCaInputQaBase.h.

◆ fvph_hit_dy

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_hit_dy
protectedinherited

Definition at line 242 of file CbmCaInputQaBase.h.

◆ fvph_hit_kuv

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_hit_kuv
protectedinherited

Definition at line 245 of file CbmCaInputQaBase.h.

◆ fvph_hit_station_delta_z

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_hit_station_delta_z
protectedinherited

Difference between station and hit z positions [cm].

Definition at line 238 of file CbmCaInputQaBase.h.

◆ fvph_hit_xy

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_hit_xy
protectedinherited

hit y vs x in different stations

Definition at line 234 of file CbmCaInputQaBase.h.

◆ fvph_hit_zx

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_hit_zx
protectedinherited

hit x vs z in different stations

Definition at line 235 of file CbmCaInputQaBase.h.

◆ fvph_hit_zy

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_hit_zy
protectedinherited

hit y vs z in different stations

Definition at line 236 of file CbmCaInputQaBase.h.

◆ fvph_n_points_per_hit

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_n_points_per_hit
protectedinherited

number of points per one hit in different stations

Definition at line 249 of file CbmCaInputQaBase.h.

◆ fvph_point_hit_delta_z

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_point_hit_delta_z
protectedinherited

difference between z of hit and MC point in different stations

Definition at line 255 of file CbmCaInputQaBase.h.

◆ fvph_point_xy

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_point_xy
protectedinherited

point y vs x in different stations

Definition at line 251 of file CbmCaInputQaBase.h.

◆ fvph_point_zx

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_point_zx
protectedinherited

point x vs z in different stations

Definition at line 252 of file CbmCaInputQaBase.h.

◆ fvph_point_zy

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_point_zy
protectedinherited

point y vs z in different stations

Definition at line 253 of file CbmCaInputQaBase.h.

◆ fvph_pull_t

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_pull_t
protectedinherited

pull for t coordinate in different stations

Definition at line 275 of file CbmCaInputQaBase.h.

◆ fvph_pull_t_vs_t

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_pull_t_vs_t
protectedinherited

pull for t coordinate in different stations

Definition at line 281 of file CbmCaInputQaBase.h.

◆ fvph_pull_u

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_pull_u
protectedinherited

pull for u coordinate in different stations

Definition at line 273 of file CbmCaInputQaBase.h.

◆ fvph_pull_u_vs_u

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_pull_u_vs_u
protectedinherited

pull for u coordinate in different stations

Definition at line 279 of file CbmCaInputQaBase.h.

◆ fvph_pull_v

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_pull_v
protectedinherited

pull for v coordinate in different stations

Definition at line 274 of file CbmCaInputQaBase.h.

◆ fvph_pull_v_vs_v

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_pull_v_vs_v
protectedinherited

pull for v coordinate in different stations

Definition at line 280 of file CbmCaInputQaBase.h.

◆ fvph_pull_x

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_pull_x
protectedinherited

pull for x coordinate in different stations

Definition at line 271 of file CbmCaInputQaBase.h.

◆ fvph_pull_x_vs_x

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_pull_x_vs_x
protectedinherited

pull for x coordinate in different stations

Definition at line 277 of file CbmCaInputQaBase.h.

◆ fvph_pull_y

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_pull_y
protectedinherited

pull for y coordinate in different stations

Definition at line 272 of file CbmCaInputQaBase.h.

◆ fvph_pull_y_vs_y

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_pull_y_vs_y
protectedinherited

pull for y coordinate in different stations

Definition at line 278 of file CbmCaInputQaBase.h.

◆ fvph_reco_eff

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_reco_eff
protectedinherited

Distribution of hit reconstruction efficiency in bins of fvpe_reco_eff_vs_xy.

Definition at line 285 of file CbmCaInputQaBase.h.

◆ fvph_res_t

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_res_t
protectedinherited

residual for t coordinate in different stations

Definition at line 262 of file CbmCaInputQaBase.h.

◆ fvph_res_t_vs_t

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_res_t_vs_t
protectedinherited

residual for t coordinate in different stations

Definition at line 268 of file CbmCaInputQaBase.h.

◆ fvph_res_u

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_res_u
protectedinherited

residual for u coordinate in different stations

Definition at line 260 of file CbmCaInputQaBase.h.

◆ fvph_res_u_vs_u

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_res_u_vs_u
protectedinherited

residual for u coordinate in different stations

Definition at line 266 of file CbmCaInputQaBase.h.

◆ fvph_res_v

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_res_v
protectedinherited

residual for v coordinate in different stations

Definition at line 261 of file CbmCaInputQaBase.h.

◆ fvph_res_v_vs_v

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_res_v_vs_v
protectedinherited

residual for v coordinate in different stations

Definition at line 267 of file CbmCaInputQaBase.h.

◆ fvph_res_x

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_res_x
protectedinherited

residual for x coordinate in different stations

Definition at line 258 of file CbmCaInputQaBase.h.

◆ fvph_res_x_vs_x

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_res_x_vs_x
protectedinherited

residual for x coordinate in different stations

Definition at line 264 of file CbmCaInputQaBase.h.

◆ fvph_res_y

std::vector<TH1F*> CbmCaInputQaBase< DetID >::fvph_res_y
protectedinherited

residual for y coordinate in different stations

Definition at line 259 of file CbmCaInputQaBase.h.

◆ fvph_res_y_vs_y

std::vector<TH2F*> CbmCaInputQaBase< DetID >::fvph_res_y_vs_y
protectedinherited

residual for y coordinate in different stations

Definition at line 265 of file CbmCaInputQaBase.h.

◆ kNAN

double CbmCaInputQaBase< DetID >::kNAN
staticconstexprprotectedinherited

Definition at line 197 of file CbmCaInputQaBase.h.

◆ kNbinsPull

int CbmCaInputQaBase< DetID >::kNbinsPull
staticconstexprprotectedinherited

Definition at line 220 of file CbmCaInputQaBase.h.

◆ kRPull

double CbmCaInputQaBase< DetID >::kRPull[2]
staticconstexprprotectedinherited

Range for pull histograms coordinate.

Definition at line 221 of file CbmCaInputQaBase.h.


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