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

#include <CbmRecoQaTask.h>

Collaboration diagram for CbmRecoQaTask::View:
[legend]

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
 

Detailed Description

Definition at line 95 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 100 of file CbmRecoQaTask.h.

◆ ~View()

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

Member Function Documentation

◆ AddProjection()

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

Definition at line 1421 of file CbmRecoQaTask.cxx.

References cbm::algo::ToString().

◆ 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 227 of file CbmRecoQaTask.cxx.

References name.

◆ 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 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.

◆ Load() [1/3]

template<class Hit >
bool CbmRecoQaTask::View::Load ( const CbmHit * h,
const FairMCPoint * point,
const CbmEvent * ev )

◆ Load() [2/3]

◆ 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 1931 of file CbmRecoQaTask.cxx.

◆ makeYrange()

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

Definition at line 1911 of file CbmRecoQaTask.cxx.

◆ Register()

◆ SetProjection()

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

◆ SetSetup()

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

Definition at line 111 of file CbmRecoQaTask.h.

References fSetup.

Referenced by CbmRecoQaTask::InitDefault().

◆ SetType()

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

Definition at line 112 of file CbmRecoQaTask.h.

References fType.

◆ ToString() [1/2]

string CbmRecoQaTask::View::ToString ( ) const

Definition at line 1806 of file CbmRecoQaTask.cxx.

References pos, and size().

◆ ToString() [2/2]

Friends And Related Symbol Documentation

◆ CbmRecoQaTask

friend class CbmRecoQaTask
friend

Definition at line 97 of file CbmRecoQaTask.h.

◆ Detector

friend struct Detector
friend

Definition at line 96 of file CbmRecoQaTask.h.

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 123 of file CbmRecoQaTask.h.

◆ fProjection

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

defining subset of the address set for this view

Definition at line 119 of file CbmRecoQaTask.h.

◆ fSelector

std::vector<int> CbmRecoQaTask::View::fSelector = {}

detection element center x0 y0 z0

Definition at line 118 of file CbmRecoQaTask.h.

◆ fSetup

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

multiplicity between 2 reset signals

Definition at line 124 of file CbmRecoQaTask.h.

Referenced by SetSetup().

◆ fType

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

Definition at line 125 of file CbmRecoQaTask.h.

Referenced by SetType().

◆ name

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

Definition at line 114 of file CbmRecoQaTask.h.

Referenced by HasAddress().

◆ path

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

name describing the module

Definition at line 115 of file CbmRecoQaTask.h.

◆ pos

double CbmRecoQaTask::View::pos[3] = {0.}

detection element geometrical dx dy dz dimmensions

Definition at line 117 of file CbmRecoQaTask.h.

◆ size

double CbmRecoQaTask::View::size[3] = {0.}

path to the geo volume describing the module

Definition at line 116 of file CbmRecoQaTask.h.


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