CbmRoot
Loading...
Searching...
No Matches
CbmRecoQaTask::View Struct Reference

#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
 

Detailed Description

Definition at line 116 of file CbmRecoQaTask.h.

Constructor & Destructor Documentation

◆ View() [1/2]

CbmRecoQaTask::View::View ( )
default

◆ View() [2/2]

CbmRecoQaTask::View::View ( const char * n,
const char * p,
std::vector< int > set )
inline

Definition at line 121 of file CbmRecoQaTask.h.

References fSelector, name, and path.

◆ ~View()

virtual CbmRecoQaTask::View::~View ( )
virtualdefault

References x, and y.

Member Function Documentation

◆ AddProjection()

bool CbmRecoQaTask::View::AddProjection ( eProjectionType prj,
float range = -1,
const char * unit = "cm" )
protected

Definition at line 1978 of file CbmRecoQaTask.cxx.

References fProjection, and ToString().

Referenced by SetProjection().

◆ ClassDef()

CbmRecoQaTask::View::ClassDef ( CbmRecoQaTask::View ,
1  )
protected

◆ HasAddress() [1/2]

bool CbmRecoQaTask::View::HasAddress< CbmTofHit > ( const CbmHit * h,
double & x,
double & y,
double & dx,
double & dy ) const

◆ HasAddress() [2/2]

template<class Hit>
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().

◆ HasDebug()

bool CbmRecoQaTask::View::HasDebug ( ) const
protected

Definition at line 2008 of file CbmRecoQaTask.cxx.

References fProjection, CbmRecoQaTask::kDebug0, and CbmRecoQaTask::kDebug1.

◆ Init()

bool CbmRecoQaTask::View::Init ( const char * dname,
bool mc = false )
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.

◆ Load() [1/3]

◆ Load() [2/3]

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()

Parameters
[in]nKalman fitter node
[in]pointMC info if available
[in]extradebug 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().

◆ Load() [3/3]

◆ makeTrange()

string CbmRecoQaTask::View::makeTrange ( const int scale,
float & range )
protected

helper functions to estimate the representation (y) axis

Parameters
[in]scaleread-only unit defining parameter
[in]rangeread-write full range on the ordinate
Returns
units for the ordinate and the range value

Definition at line 2555 of file CbmRecoQaTask.cxx.

References name.

Referenced by Init().

◆ makeYrange()

string CbmRecoQaTask::View::makeYrange ( const int scale,
float & range )
protected

Definition at line 2535 of file CbmRecoQaTask.cxx.

References name.

Referenced by Init().

◆ Register()

◆ SetProjection()

bool CbmRecoQaTask::View::SetProjection ( eProjectionType prj,
float range,
const char * unit )

Definition at line 2016 of file CbmRecoQaTask.cxx.

References AddProjection(), fProjection, and ToString().

◆ SetSetup()

void CbmRecoQaTask::View::SetSetup ( CbmRecoQaTask::eSetup setup)
inline

Definition at line 139 of file CbmRecoQaTask.h.

References fSetup.

◆ SetType()

void CbmRecoQaTask::View::SetType ( CbmRecoQaTask::eViewType type)
inline

Definition at line 140 of file CbmRecoQaTask.h.

References fType.

◆ ToString() [1/2]

string CbmRecoQaTask::View::ToString ( ) const

Definition at line 2421 of file CbmRecoQaTask.cxx.

References fProjection, fSelector, name, path, pos, and size.

◆ ToString() [2/2]

Friends And Related Symbol Documentation

◆ CbmRecoQaTask

friend class CbmRecoQaTask
friend

Definition at line 118 of file CbmRecoQaTask.h.

References CbmRecoQaTask.

Referenced by CbmRecoQaTask.

◆ Detector

friend struct Detector
friend

Definition at line 117 of file CbmRecoQaTask.h.

References Detector.

Referenced by Detector.

Member Data Documentation

◆ fMult

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().

◆ fProjection

std::map<eProjectionType, std::tuple<int, float, TH1*> > CbmRecoQaTask::View::fProjection
Initial value:
=
{}

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().

◆ fSelector

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().

◆ fSetup

eSetup CbmRecoQaTask::View::fSetup = eSetup::kMcbm22
mutable

multiplicity between 2 reset signals

Definition at line 152 of file CbmRecoQaTask.h.

Referenced by HasAddress(), and SetSetup().

◆ fType

eViewType CbmRecoQaTask::View::fType = eViewType::kDetUnit
mutable

Definition at line 153 of file CbmRecoQaTask.h.

Referenced by CbmRecoQaTask::Exec(), Init(), Register(), and SetType().

◆ name

std::string CbmRecoQaTask::View::name = ""

Definition at line 142 of file CbmRecoQaTask.h.

Referenced by HasAddress(), Init(), Load(), makeTrange(), makeYrange(), Register(), ToString(), and View().

◆ path

std::string CbmRecoQaTask::View::path = ""

name describing the module

Definition at line 143 of file CbmRecoQaTask.h.

Referenced by Init(), Register(), ToString(), and View().

◆ pos

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().

◆ size

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().


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