![]() |
PandaRoot
|
Base class to tests reconstructed hits based on FairHits for the PANDA QA tasks This class calculates the difference in time and each spatial coordinate between a FairHit and its corresponding FairMCPoint. The result is stored in a dedicated histogram. At the end of the run the mean and RMS value are taken from the histogram and assigned to a measurement with boundaries. If the value is inside the boundaries this value passes the test otherwise it fails. The result is printed in a CDASH compatible format and the histograms are stored as a PNG and a root file. More...
#include <PndFairHitQATask.h>
Public Member Functions | |
PndFairHitQATask (std::string hitBranchName, std::string pointBranchName) | |
virtual | ~PndFairHitQATask () |
virtual void | SetParContainers () |
virtual InitStatus | Init () |
virtual void | Exec (Option_t *opt) |
virtual void | FinishTask () |
void | SetWorkdir (TString path) |
only needed to give cdash the path to the stored pictures More... | |
void | SetHitBranch (std::string hitBranch) |
void | SetPointBranch (std::string pointBranch) |
void | SetOutputPlotName (std::string val) |
![]() | |
PndPersistencyTask () | |
PndPersistencyTask (const char *name, Int_t iVerbose=1) | |
virtual | ~PndPersistencyTask () |
void | SetPersistency (Bool_t val=kTRUE) |
Bool_t | GetPersistency () |
Protected Member Functions | |
virtual void | InitHistos () |
Initialize the histograms containing the measurement data in the histogram map. More... | |
virtual void | SetAllBoundaries () |
Set the name and the boundaries for a measurement to pass. More... | |
virtual void | CalculateResolutions (FairHit *hit) |
Calculate the resolution of a FairHit based on the MC data from a FairMCPoint. More... | |
virtual void | FillHistos () |
Fill the output of CalculateResolutions into the corresponding histograms. More... | |
virtual void | AssignMeasurements () |
Extract the measurement values from the histograms like mean or RMS values and assign them to the measurement defined in SetAllBoundaries. More... | |
bool | Test () |
void | DrawHistos () |
void | SaveHistos () |
void | PrintDartMeasurement () |
ClassDef (PndFairHitQATask, 2) | |
Protected Attributes | |
std::string | fHitBranchName |
std::string | fPointBranchName |
std::string | fOutputPlotName {"ResolutionHistos.png"} |
TClonesArray * | fMcPoints = nullptr |
TClonesArray * | fHits = nullptr |
Bool_t | fProperDifference = false |
if method CalculateResolutions worked More... | |
TVector3 | fSpatialDifference |
double | fTimeDifference = -1.0 |
TString | fWorkdir |
PndMeasurementBoundaries | fBoundaries |
std::map< std::string, TH1 * > | fHistos |
Base class to tests reconstructed hits based on FairHits for the PANDA QA tasks This class calculates the difference in time and each spatial coordinate between a FairHit and its corresponding FairMCPoint. The result is stored in a dedicated histogram. At the end of the run the mean and RMS value are taken from the histogram and assigned to a measurement with boundaries. If the value is inside the boundaries this value passes the test otherwise it fails. The result is printed in a CDASH compatible format and the histograms are stored as a PNG and a root file.
This class is meant to be a base class and real tests have to be derived from this class. Especially the boundaries of the measurements have to be adopted to the actual use case.
Definition at line 36 of file PndFairHitQATask.h.
PndFairHitQATask::PndFairHitQATask | ( | std::string | hitBranchName, |
std::string | pointBranchName | ||
) |
Default constructor
|
virtual |
Destructor
|
protectedvirtual |
Extract the measurement values from the histograms like mean or RMS values and assign them to the measurement defined in SetAllBoundaries.
Reimplemented in PndFtofRecoQATask, PndGemRecoQATask, PndMvdPixelQATask, PndMvdStripQATask, and PndSciTRecoQATask.
Referenced by SetOutputPlotName().
|
protectedvirtual |
Calculate the resolution of a FairHit based on the MC data from a FairMCPoint.
Reimplemented in PndFtofRecoQATask, PndGemRecoQATask, PndMvdPixelQATask, PndMvdStripQATask, and PndSciTRecoQATask.
Referenced by SetOutputPlotName().
|
protected |
|
protected |
Referenced by SetOutputPlotName().
|
virtual |
Virtual method Exec
|
protectedvirtual |
Fill the output of CalculateResolutions into the corresponding histograms.
Reimplemented in PndFtofRecoQATask, PndGemRecoQATask, PndMvdPixelQATask, PndMvdStripQATask, and PndSciTRecoQATask.
Referenced by SetOutputPlotName().
|
virtual |
|
virtual |
|
protectedvirtual |
Initialize the histograms containing the measurement data in the histogram map.
Reimplemented in PndFtofRecoQATask, PndGemRecoQATask, PndMvdPixelQATask, PndMvdStripQATask, and PndSciTRecoQATask.
Referenced by SetOutputPlotName().
|
protected |
Referenced by SetOutputPlotName().
|
protected |
Referenced by SetOutputPlotName().
|
protectedvirtual |
Set the name and the boundaries for a measurement to pass.
Reimplemented in PndFtofRecoQATask, PndGemRecoQATask, PndMvdPixelQATask, PndMvdStripQATask, and PndSciTRecoQATask.
Referenced by SetOutputPlotName().
|
inline |
|
inline |
Definition at line 55 of file PndFairHitQATask.h.
References AssignMeasurements(), CalculateResolutions(), DrawHistos(), FillHistos(), fOutputPlotName, InitHistos(), PrintDartMeasurement(), SaveHistos(), SetAllBoundaries(), and Test().
|
virtual |
Virtual method Init
Reimplemented in PndMvdPixelQATask, PndMvdStripQATask, and PndSciTRecoQATask.
|
inline |
|
inline |
only needed to give cdash the path to the stored pictures
Definition at line 51 of file PndFairHitQATask.h.
References fWorkdir.
|
protected |
Referenced by SetOutputPlotName().
|
protected |
Definition at line 102 of file PndFairHitQATask.h.
|
protected |
Definition at line 104 of file PndFairHitQATask.h.
|
protected |
Definition at line 91 of file PndFairHitQATask.h.
Referenced by SetHitBranch().
|
protected |
Definition at line 96 of file PndFairHitQATask.h.
|
protected |
Definition at line 95 of file PndFairHitQATask.h.
|
protected |
Definition at line 93 of file PndFairHitQATask.h.
Referenced by SetOutputPlotName().
|
protected |
Definition at line 92 of file PndFairHitQATask.h.
Referenced by SetPointBranch().
|
protected |
if method CalculateResolutions worked
Definition at line 97 of file PndFairHitQATask.h.
|
protected |
Definition at line 98 of file PndFairHitQATask.h.
|
protected |
Definition at line 99 of file PndFairHitQATask.h.
|
protected |
Definition at line 100 of file PndFairHitQATask.h.
Referenced by SetWorkdir().