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 |
Hit classification on system and view. | |
template<class Hit > | |
bool | Load (const CbmHit *h, const FairMCPoint *point, const CbmEvent *ev) |
bool | Load (const CbmKfTrackFitter::TrajectoryNode *n, const FairMCPoint *point) |
bool | Load (TVector3 *p) |
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, TH2 * > > | 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 | 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 95 of file CbmRecoQaTask.h.
|
default |
|
inline |
Definition at line 100 of file CbmRecoQaTask.h.
|
virtualdefault |
|
protected |
Definition at line 1421 of file CbmRecoQaTask.cxx.
References cbm::algo::ToString().
|
protected |
bool CbmRecoQaTask::View::HasAddress< CbmTofHit > | ( | const CbmHit * | h, |
double & | x, | ||
double & | y, | ||
double & | dx, | ||
double & | dy ) const |
Definition at line 236 of file CbmRecoQaTask.cxx.
References CbmPixelHit::GetDx(), CbmPixelHit::GetDy(), CbmStsAddress::GetElementId(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmRecoQaTask::kDefault, kStsLadder, kStsModule, kStsUnit, 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 227 of file CbmRecoQaTask.cxx.
References name.
|
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 1484 of file CbmRecoQaTask.cxx.
References CbmRecoQaTask::kChdT, CbmRecoQaTask::kDetUnit, CbmRecoQaTask::kDmult, CbmRecoQaTask::kDmultMC, CbmRecoQaTask::kPullX, CbmRecoQaTask::kPullY, CbmRecoQaTask::kPVmult, CbmRecoQaTask::kPVxy, CbmRecoQaTask::kPVxz, CbmRecoQaTask::kPVyz, CbmRecoQaTask::kResidualTX, CbmRecoQaTask::kResidualTY, CbmRecoQaTask::kResidualX, CbmRecoQaTask::kResidualY, CbmRecoQaTask::kWdT, CbmRecoQaTask::kXdX, CbmRecoQaTask::kXdXMC, 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::kYpY, pos, size(), and v.
bool CbmRecoQaTask::View::Load | ( | const CbmHit * | h, |
const FairMCPoint * | point, | ||
const CbmEvent * | ev ) |
Definition at line 359 of file CbmRecoQaTask.cxx.
References CbmEvent::GetStartTime(), CbmRecoQaTask::kChdT, CbmRecoQaTask::kPullX, CbmRecoQaTask::kPullY, CbmRecoQaTask::kResidualTX, CbmRecoQaTask::kResidualTY, CbmRecoQaTask::kResidualX, CbmRecoQaTask::kResidualY, CbmRecoQaTask::kXYh, CbmRecoQaTask::kXYhMC, x, and y.
bool CbmRecoQaTask::View::Load | ( | const CbmKfTrackFitter::TrajectoryNode * | n, |
const FairMCPoint * | point ) |
Definition at line 401 of file CbmRecoQaTask.cxx.
References cbm::algo::kf::MeasurementXy< DataT >::Dx2(), cbm::algo::kf::MeasurementXy< DataT >::Dy2(), CbmKfTrackFitter::TrajectoryNode::fMt, CbmKfTrackFitter::TrajectoryNode::fMxy, CbmKfTrackFitter::TrajectoryNode::fParamUp, cbm::algo::kf::TrackParamBase< T >::GetCovariance(), CbmRecoQaTask::kWdT, CbmRecoQaTask::kXdX, CbmRecoQaTask::kXdXMC, CbmRecoQaTask::kXpX, CbmRecoQaTask::kXYa, CbmRecoQaTask::kXYp, CbmRecoQaTask::kYdY, CbmRecoQaTask::kYdYMC, CbmRecoQaTask::kYpY, sqrt(), cbm::algo::kf::MeasurementTime< DataT >::T(), cbm::algo::kf::TrackParamBase< T >::Time(), cbm::algo::kf::MeasurementXy< DataT >::X(), cbm::algo::kf::TrackParamBase< T >::X(), cbm::algo::kf::MeasurementXy< DataT >::Y(), and cbm::algo::kf::TrackParamBase< T >::Y().
bool CbmRecoQaTask::View::Load | ( | TVector3 * | p | ) |
Definition at line 439 of file CbmRecoQaTask.cxx.
References CbmRecoQaTask::kDmult, CbmRecoQaTask::kPVmult, CbmRecoQaTask::kPVxy, CbmRecoQaTask::kPVxz, CbmRecoQaTask::kPVyz, 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 1931 of file CbmRecoQaTask.cxx.
|
protected |
Definition at line 1911 of file CbmRecoQaTask.cxx.
|
protected |
build directory structure for all projections of current view.
Definition at line 1817 of file CbmRecoQaTask.cxx.
References CbmRecoQaTask::fuRecoConfig, CbmRecoQaTask::kChdT, CbmRecoQaTask::kDetUnit, CbmRecoQaTask::kDmult, CbmRecoQaTask::kDmultMC, CbmRecoQaTask::kPullX, CbmRecoQaTask::kPullY, CbmRecoQaTask::kPVmult, CbmRecoQaTask::kPVxy, CbmRecoQaTask::kPVxz, CbmRecoQaTask::kPVyz, CbmRecoQaTask::kRecoEvents, CbmRecoQaTask::kRecoTracks, CbmRecoQaTask::kResidualTX, CbmRecoQaTask::kResidualTY, CbmRecoQaTask::kResidualX, CbmRecoQaTask::kResidualY, CbmRecoQaTask::kWdT, CbmRecoQaTask::kXdX, CbmRecoQaTask::kXdXMC, 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, and CbmRecoQaTask::kYpY.
bool CbmRecoQaTask::View::SetProjection | ( | eProjectionType | prj, |
float | range, | ||
const char * | unit ) |
Definition at line 1451 of file CbmRecoQaTask.cxx.
References cbm::algo::ToString().
Referenced by CbmRecoQaTask::InitMcbm22(), and CbmRecoQaTask::InitMcbm24().
|
inline |
Definition at line 111 of file CbmRecoQaTask.h.
References fSetup.
Referenced by CbmRecoQaTask::InitDefault().
|
inline |
Definition at line 112 of file CbmRecoQaTask.h.
References fType.
string CbmRecoQaTask::View::ToString | ( | ) | const |
Definition at line 1806 of file CbmRecoQaTask.cxx.
|
static |
Definition at line 1878 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::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, and CbmRecoQaTask::kYpY.
|
friend |
Definition at line 97 of file CbmRecoQaTask.h.
|
friend |
Definition at line 96 of file CbmRecoQaTask.h.
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 123 of file CbmRecoQaTask.h.
std::map<eProjectionType, std::tuple<int, float, TH2*> > CbmRecoQaTask::View::fProjection |
defining subset of the address set for this view
Definition at line 119 of file CbmRecoQaTask.h.
std::vector<int> CbmRecoQaTask::View::fSelector = {} |
detection element center x0 y0 z0
Definition at line 118 of file CbmRecoQaTask.h.
|
mutable |
multiplicity between 2 reset signals
Definition at line 124 of file CbmRecoQaTask.h.
Referenced by SetSetup().
|
mutable |
Definition at line 125 of file CbmRecoQaTask.h.
Referenced by SetType().
std::string CbmRecoQaTask::View::name = "" |
Definition at line 114 of file CbmRecoQaTask.h.
Referenced by HasAddress().
std::string CbmRecoQaTask::View::path = "" |
name describing the module
Definition at line 115 of file CbmRecoQaTask.h.
double CbmRecoQaTask::View::pos[3] = {0.} |
detection element geometrical dx dy dz dimmensions
Definition at line 117 of file CbmRecoQaTask.h.
double CbmRecoQaTask::View::size[3] = {0.} |
path to the geo volume describing the module
Definition at line 116 of file CbmRecoQaTask.h.