|
CbmRoot
|
#include <CbmRecoQaTask.h>
Public Member Functions | |
| View ()=default | |
| View (const char *n, const char *p, std::vector< int > set) | |
| virtual | ~View ()=default |
| bool | SetProjection (eProjectionType prj, float range, const char *unit) |
| template<class Hit> | |
| bool | HasAddress (const CbmHit *h, double &x, double &y, double &dx, double &dy) const |
| template<class Hit> | |
| bool | Load (const CbmHit *h, const FairMCPoint *point, const CbmEvent *ev) |
| bool | Load (const Trajectory::Node *n, const FairMCPoint *point, const int dinfo=0xab00) |
| Add tracking information to the plots. If available also MC info from points and extra debug info can be provided. For the debug info check the function GetDebugInfo() | |
| bool | Load (TVector3 *p, TVector3 *pe=nullptr) |
| std::string | ToString () const |
| void | SetSetup (CbmRecoQaTask::eSetup setup) |
| void | SetType (CbmRecoQaTask::eViewType type) |
| template<> | |
| bool | HasAddress (const CbmHit *h, double &x, double &y, double &dx, double &dy) const |
Static Public Member Functions | |
| static std::string | ToString (eProjectionType prj) |
Public Attributes | |
| std::string | name = "" |
| std::string | path = "" |
| name describing the module | |
| double | size [3] = {0.} |
| path to the geo volume describing the module | |
| double | pos [3] = {0.} |
| detection element geometrical dx dy dz dimmensions | |
| std::vector< int > | fSelector = {} |
| detection element center x0 y0 z0 | |
| std::map< eProjectionType, std::tuple< int, float, TH1 * > > | fProjection |
| defining subset of the address set for this view | |
| int | fMult = 0 |
| eSetup | fSetup = eSetup::kMcbm22 |
| multiplicity between 2 reset signals | |
| eViewType | fType = eViewType::kDetUnit |
Protected Member Functions | |
| bool | AddProjection (eProjectionType prj, float range=-1, const char *unit="cm") |
| bool | HasDebug () const |
| bool | Init (const char *dname, bool mc=false) |
| Define all type of QA histo known to the class. In case of detector view type, convert geo address into pointer to geometry. By the time of the call the geometry has to be available in memory. Failing to identify the named physical node will rezult in error. | |
| uint | Register (TDirectoryFile *f) |
| build directory structure for all projections of current view. | |
| std::string | makeTrange (const int scale, float &range) |
| helper functions to estimate the representation (y) axis | |
| std::string | makeYrange (const int scale, float &range) |
| ClassDef (CbmRecoQaTask::View, 1) | |
Friends | |
| struct | Detector |
| class | CbmRecoQaTask |
Definition at line 116 of file CbmRecoQaTask.h.
|
default |
|
inline |
Definition at line 121 of file CbmRecoQaTask.h.
|
protected |
Definition at line 1978 of file CbmRecoQaTask.cxx.
References fProjection, and ToString().
Referenced by SetProjection().
|
protected |
| bool CbmRecoQaTask::View::HasAddress< CbmTofHit > | ( | const CbmHit * | h, |
| double & | x, | ||
| double & | y, | ||
| double & | dx, | ||
| double & | dy ) const |
STS specialization
Definition at line 545 of file CbmRecoQaTask.cxx.
References fSelector, fSetup, CbmPixelHit::GetDx(), CbmPixelHit::GetDy(), CbmRecoQaTask::GetHitDetectorId(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmRecoQaTask::kDefault, name, x, and y.
| bool CbmRecoQaTask::View::HasAddress | ( | const CbmHit * | h, |
| double & | x, | ||
| double & | y, | ||
| double & | dx, | ||
| double & | dy ) const |
Hit classification on system and view
Definition at line 340 of file CbmRecoQaTask.cxx.
References name.
Referenced by Load().
|
protected |
Definition at line 2008 of file CbmRecoQaTask.cxx.
References fProjection, CbmRecoQaTask::kDebug0, and CbmRecoQaTask::kDebug1.
|
protected |
Define all type of QA histo known to the class. In case of detector view type, convert geo address into pointer to geometry. By the time of the call the geometry has to be available in memory. Failing to identify the named physical node will rezult in error.
All projections type according to enum eProjectionType are defined here. Additionally the linking with the geometry, in the case of detector view type is also done to check the alignment. If the mc flag is set, histograms relevant for MC truth are also build along side the reconstruction ones.
Definition at line 2049 of file CbmRecoQaTask.cxx.
References fProjection, fType, CbmRecoQaTask::kChdT, CbmRecoQaTask::kDebug0, CbmRecoQaTask::kDebug1, CbmRecoQaTask::kDetUnit, CbmRecoQaTask::kDmult, CbmRecoQaTask::kDmultMC, CbmRecoQaTask::kPullX, CbmRecoQaTask::kPullY, CbmRecoQaTask::kPVmult, CbmRecoQaTask::kPVxsx, CbmRecoQaTask::kPVxy, CbmRecoQaTask::kPVxz, CbmRecoQaTask::kPVysy, CbmRecoQaTask::kPVyz, CbmRecoQaTask::kPVzsz, CbmRecoQaTask::kResidualTX, CbmRecoQaTask::kResidualTY, CbmRecoQaTask::kResidualX, CbmRecoQaTask::kResidualY, CbmRecoQaTask::kWdT, CbmRecoQaTask::kXdX, CbmRecoQaTask::kXdXMC, CbmRecoQaTask::kXdXT, CbmRecoQaTask::kXpX, CbmRecoQaTask::kXYa, CbmRecoQaTask::kXYh, CbmRecoQaTask::kXYhMC, CbmRecoQaTask::kXYp, CbmRecoQaTask::kXYt0, CbmRecoQaTask::kXYt1, CbmRecoQaTask::kXYt2, CbmRecoQaTask::kXYt3, CbmRecoQaTask::kXYt4, CbmRecoQaTask::kXYt5, CbmRecoQaTask::kYdY, CbmRecoQaTask::kYdYMC, CbmRecoQaTask::kYdYT, CbmRecoQaTask::kYpY, makeTrange(), makeYrange(), name, path, pos, size, and v.
| bool CbmRecoQaTask::View::Load | ( | const CbmHit * | h, |
| const FairMCPoint * | point, | ||
| const CbmEvent * | ev ) |
Definition at line 674 of file CbmRecoQaTask.cxx.
References fMult, fProjection, CbmEvent::GetStartTime(), HasAddress(), CbmRecoQaTask::kChdT, CbmRecoQaTask::kPullX, CbmRecoQaTask::kPullY, CbmRecoQaTask::kResidualTX, CbmRecoQaTask::kResidualTY, CbmRecoQaTask::kResidualX, CbmRecoQaTask::kResidualY, CbmRecoQaTask::kXYh, CbmRecoQaTask::kXYhMC, name, x, and y.
Referenced by CbmRecoQaTask::Exec().
| bool CbmRecoQaTask::View::Load | ( | const Trajectory::Node * | n, |
| const FairMCPoint * | point, | ||
| const int | dinfo = 0xab00 ) |
Add tracking information to the plots. If available also MC info from points and extra debug info can be provided. For the debug info check the function GetDebugInfo()
| [in] | n | Kalman fitter node |
| [in] | point | MC info if available |
| [in] | extra | debug info defined by the user. Initialized to dummy value. |
Definition at line 715 of file CbmRecoQaTask.cxx.
References fProjection, cbm::algo::kf::TrackParamBase< T >::GetCovariance(), CbmRecoQaTask::kDebug0, CbmRecoQaTask::kDebug1, CbmRecoQaTask::kWdT, CbmRecoQaTask::kXdX, CbmRecoQaTask::kXdXMC, CbmRecoQaTask::kXdXT, CbmRecoQaTask::kXpX, CbmRecoQaTask::kXYa, CbmRecoQaTask::kXYp, CbmRecoQaTask::kYdY, CbmRecoQaTask::kYdYMC, CbmRecoQaTask::kYdYT, CbmRecoQaTask::kYpY, sqrt(), cbm::algo::kf::TrackParamBase< T >::Time(), cbm::algo::kf::TrackParamBase< T >::X(), and cbm::algo::kf::TrackParamBase< T >::Y().
| bool CbmRecoQaTask::View::Load | ( | TVector3 * | p, |
| TVector3 * | pe = nullptr ) |
Definition at line 769 of file CbmRecoQaTask.cxx.
References fProjection, CbmRecoQaTask::kDmult, CbmRecoQaTask::kPVmult, CbmRecoQaTask::kPVxsx, CbmRecoQaTask::kPVxy, CbmRecoQaTask::kPVxz, CbmRecoQaTask::kPVysy, CbmRecoQaTask::kPVyz, CbmRecoQaTask::kPVzsz, CbmRecoQaTask::kXYt0, CbmRecoQaTask::kXYt1, CbmRecoQaTask::kXYt2, CbmRecoQaTask::kXYt3, CbmRecoQaTask::kXYt4, and CbmRecoQaTask::kXYt5.
|
protected |
helper functions to estimate the representation (y) axis
| [in] | scale | read-only unit defining parameter |
| [in] | range | read-write full range on the ordinate |
Definition at line 2555 of file CbmRecoQaTask.cxx.
References name.
Referenced by Init().
|
protected |
|
protected |
build directory structure for all projections of current view.
Definition at line 2432 of file CbmRecoQaTask.cxx.
References fProjection, fType, CbmRecoQaTask::fuRecoConfig, CbmRecoQaTask::kChdT, CbmRecoQaTask::kDebug0, CbmRecoQaTask::kDebug1, CbmRecoQaTask::kDetUnit, CbmRecoQaTask::kDmult, CbmRecoQaTask::kDmultMC, CbmRecoQaTask::kPullX, CbmRecoQaTask::kPullY, CbmRecoQaTask::kPVmult, CbmRecoQaTask::kPVxsx, CbmRecoQaTask::kPVxy, CbmRecoQaTask::kPVxz, CbmRecoQaTask::kPVysy, CbmRecoQaTask::kPVyz, CbmRecoQaTask::kPVzsz, CbmRecoQaTask::kRecoEvents, CbmRecoQaTask::kRecoTracks, CbmRecoQaTask::kResidualTX, CbmRecoQaTask::kResidualTY, CbmRecoQaTask::kResidualX, CbmRecoQaTask::kResidualY, CbmRecoQaTask::kWdT, CbmRecoQaTask::kXdX, CbmRecoQaTask::kXdXMC, CbmRecoQaTask::kXdXT, CbmRecoQaTask::kXpX, CbmRecoQaTask::kXYa, CbmRecoQaTask::kXYh, CbmRecoQaTask::kXYhMC, CbmRecoQaTask::kXYp, CbmRecoQaTask::kXYt0, CbmRecoQaTask::kXYt1, CbmRecoQaTask::kXYt2, CbmRecoQaTask::kXYt3, CbmRecoQaTask::kXYt4, CbmRecoQaTask::kXYt5, CbmRecoQaTask::kYdY, CbmRecoQaTask::kYdYMC, CbmRecoQaTask::kYdYT, CbmRecoQaTask::kYpY, name, and path.
| bool CbmRecoQaTask::View::SetProjection | ( | eProjectionType | prj, |
| float | range, | ||
| const char * | unit ) |
Definition at line 2016 of file CbmRecoQaTask.cxx.
References AddProjection(), fProjection, and ToString().
|
inline |
Definition at line 139 of file CbmRecoQaTask.h.
References fSetup.
|
inline |
Definition at line 140 of file CbmRecoQaTask.h.
References fType.
| string CbmRecoQaTask::View::ToString | ( | ) | const |
Definition at line 2421 of file CbmRecoQaTask.cxx.
References fProjection, fSelector, name, path, pos, and size.
|
static |
Definition at line 2500 of file CbmRecoQaTask.cxx.
References CbmRecoQaTask::kChdT, CbmRecoQaTask::kPullX, CbmRecoQaTask::kPullY, CbmRecoQaTask::kResidualTX, CbmRecoQaTask::kResidualTY, CbmRecoQaTask::kResidualX, CbmRecoQaTask::kResidualY, CbmRecoQaTask::kWdT, CbmRecoQaTask::kXdX, CbmRecoQaTask::kXdXMC, CbmRecoQaTask::kXdXT, CbmRecoQaTask::kXpX, CbmRecoQaTask::kXYa, CbmRecoQaTask::kXYh, CbmRecoQaTask::kXYhMC, CbmRecoQaTask::kXYp, CbmRecoQaTask::kXYt0, CbmRecoQaTask::kXYt1, CbmRecoQaTask::kXYt2, CbmRecoQaTask::kXYt3, CbmRecoQaTask::kXYt4, CbmRecoQaTask::kXYt5, CbmRecoQaTask::kYdY, CbmRecoQaTask::kYdYMC, CbmRecoQaTask::kYdYT, and CbmRecoQaTask::kYpY.
|
friend |
Definition at line 118 of file CbmRecoQaTask.h.
References CbmRecoQaTask.
Referenced by CbmRecoQaTask.
|
friend |
| int CbmRecoQaTask::View::fMult = 0 |
map of projections indexed by their type. Each projection contains also the relative scale [int] wrt to default units (ns, cm, keV) and the range [float].
Definition at line 151 of file CbmRecoQaTask.h.
Referenced by Load().
| std::map<eProjectionType, std::tuple<int, float, TH1*> > CbmRecoQaTask::View::fProjection |
defining subset of the address set for this view
Definition at line 147 of file CbmRecoQaTask.h.
Referenced by AddProjection(), HasDebug(), Init(), Load(), Load(), Load(), Register(), SetProjection(), and ToString().
| std::vector<int> CbmRecoQaTask::View::fSelector = {} |
detection element center x0 y0 z0
Definition at line 146 of file CbmRecoQaTask.h.
Referenced by HasAddress(), ToString(), and View().
|
mutable |
multiplicity between 2 reset signals
Definition at line 152 of file CbmRecoQaTask.h.
Referenced by HasAddress(), and SetSetup().
|
mutable |
Definition at line 153 of file CbmRecoQaTask.h.
Referenced by CbmRecoQaTask::Exec(), Init(), Register(), and SetType().
| std::string CbmRecoQaTask::View::name = "" |
Definition at line 142 of file CbmRecoQaTask.h.
Referenced by HasAddress(), Init(), Load(), makeTrange(), makeYrange(), Register(), ToString(), and View().
| std::string CbmRecoQaTask::View::path = "" |
name describing the module
Definition at line 143 of file CbmRecoQaTask.h.
Referenced by Init(), Register(), ToString(), and View().
| double CbmRecoQaTask::View::pos[3] = {0.} |
detection element geometrical dx dy dz dimmensions
Definition at line 145 of file CbmRecoQaTask.h.
Referenced by Init(), and ToString().
| double CbmRecoQaTask::View::size[3] = {0.} |
path to the geo volume describing the module
Definition at line 144 of file CbmRecoQaTask.h.
Referenced by Init(), and ToString().