CbmRoot
CbmMuchTransportQa Class Reference

#include <CbmMuchTransportQa.h>

Inheritance diagram for CbmMuchTransportQa:
[legend]
Collaboration diagram for CbmMuchTransportQa:
[legend]

Public Member Functions

 CbmMuchTransportQa (const char *name="MuchHitFinderQa", Int_t verbose=1)
 Constructor. More...
 
 CbmMuchTransportQa (const CbmMuchTransportQa &)=delete
 Deactivated copy constructors. More...
 
CbmMuchTransportQaoperator= (const CbmMuchTransportQa &)=delete
 
virtual ~CbmMuchTransportQa ()
 Destructor. More...
 
void SetParContainers ()
 FairTask methods. More...
 
InitStatus Init ()
 
InitStatus ReInit ()
 
void Exec (Option_t *option)
 
void Finish ()
 
TFolder & GetQa ()
 

Private Member Functions

void InitCountingHistos ()
 
void InitFractionHistos ()
 
void Init2dSpatialDistributionHistos ()
 
void InitRatioPieCharts ()
 
void InitCanvases ()
 
void FillCountingHistos (Int_t stId, Int_t motherId, Int_t pdgCode)
 
void Fill2dSpatialDistributionHistos (CbmMuchPoint *point, Int_t stId)
 
void DeInit ()
 
void MakePRatioPieCharts ()
 
void MakePrimRatioPieCharts ()
 
void DrawCanvases ()
 

Private Attributes

Int_t fNstations = 0
 geometry More...
 
TClonesArray * fPoints = nullptr
 containers More...
 
TClonesArray * fMcTracks = nullptr
 
TFolder * histFolder
 
TFolder fOutFolder
 subfolder for histograms More...
 
TParameter< int > fhNevents
 output folder with histos and canvases More...
 
TH1F * fhUsNtraAll = nullptr
 number of processed events More...
 
TH1F * fhUsNtraPrim = nullptr
 number of all tracks More...
 
TH1F * fhUsNtraSec = nullptr
 number of primary tracks More...
 
TH1F * fhUsNtraPr = nullptr
 number of secondary tracks More...
 
TH1F * fhUsNtraPi = nullptr
 number of protons More...
 
TH1F * fhUsNtraEl = nullptr
 number of pions More...
 
TH1F * fhUsNtraMu = nullptr
 number of electrons More...
 
TH1F * fhUsNtraKa = nullptr
 number of muons More...
 
std::vector< TH1F * > fvUsNtra
 number of kaons More...
 
std::vector< TH2F * > fvMcPointXY
 pointers to the above fhUsNtra* histos More...
 
std::vector< TH2F * > fvMcPointPhiZ
 MC point Y vs X [N stations]. More...
 
std::vector< TH2F * > fvMcPointRZ
 MC point Phi vs Z [N stations]. More...
 
TH1F * fhNtracks = nullptr
 MC point R vs Z [N stations]. More...
 
TH1F * fhFractionPrim = nullptr
 number of all tracks / event More...
 
TH1F * fhFractionSec = nullptr
 fraction of primary tracks More...
 
TH1F * fhFractionPr = nullptr
 fraction of secondary tracks More...
 
TH1F * fhFractionPi = nullptr
 fraction of protons More...
 
TH1F * fhFractionEl = nullptr
 fraction of pions More...
 
TH1F * fhFractionMu = nullptr
 fraction of electrons More...
 
TH1F * fhFractionKa = nullptr
 fraction of muons More...
 
std::vector< TH1F * > fvFraction
 fraction of kaons More...
 
std::vector< TPie * > fvMcPointPRatio
 pointers to the above histos More...
 
std::vector< TPie * > fvMcPointPrimRatio
 MC point particle ratio pie charts [N stations]. More...
 
CbmQaCanvasfCanvStationXY = nullptr
 MC point particle ratio pie charts [N stations]. More...
 
CbmQaCanvasfCanvStationPhiZ = nullptr
 
CbmQaCanvasfCanvStationRZ = nullptr
 
CbmQaCanvasfCanvUsNtra = nullptr
 
CbmQaCanvasfCanvStationPRatio = nullptr
 
CbmQaCanvasfCanvStationPrimRatio = nullptr
 

Detailed Description

QA for the MUCH detector after a "transport" step of the simulation. The class reimplements corresponding QA checks from old CbmMuchHitFinderQa class made by E. Kryshen & V. Singhal & E. Nandy

Definition at line 46 of file CbmMuchTransportQa.h.

Constructor & Destructor Documentation

◆ CbmMuchTransportQa() [1/2]

CbmMuchTransportQa::CbmMuchTransportQa ( const char *  name = "MuchHitFinderQa",
Int_t  verbose = 1 
)

Constructor.

Definition at line 14 of file CbmMuchTransportQa.cxx.

◆ CbmMuchTransportQa() [2/2]

CbmMuchTransportQa::CbmMuchTransportQa ( const CbmMuchTransportQa )
delete

Deactivated copy constructors.

◆ ~CbmMuchTransportQa()

CbmMuchTransportQa::~CbmMuchTransportQa ( )
virtual

Destructor.

Definition at line 28 of file CbmMuchTransportQa.cxx.

References DeInit().

Member Function Documentation

◆ DeInit()

◆ DrawCanvases()

◆ Exec()

◆ Fill2dSpatialDistributionHistos()

void CbmMuchTransportQa::Fill2dSpatialDistributionHistos ( CbmMuchPoint point,
Int_t  stId 
)
private

◆ FillCountingHistos()

void CbmMuchTransportQa::FillCountingHistos ( Int_t  stId,
Int_t  motherId,
Int_t  pdgCode 
)
private

Definition at line 384 of file CbmMuchTransportQa.cxx.

References fhUsNtraAll, fhUsNtraEl, fhUsNtraKa, fhUsNtraMu, fhUsNtraPi, fhUsNtraPr, fhUsNtraPrim, and fhUsNtraSec.

Referenced by Exec().

◆ Finish()

void CbmMuchTransportQa::Finish ( )

Definition at line 580 of file CbmMuchTransportQa.cxx.

References GetQa().

◆ GetQa()

TFolder & CbmMuchTransportQa::GetQa ( )

Prepare Qa output and return it as a reference to an internal folder. The reference is non-const, because FairSink can not write const objects

Definition at line 430 of file CbmMuchTransportQa.cxx.

References DrawCanvases(), fhNevents, fhNtracks, fhUsNtraAll, fNstations, fOutFolder, fvFraction, fvUsNtra, i, MakePRatioPieCharts(), and MakePrimRatioPieCharts().

Referenced by Finish().

◆ Init()

◆ Init2dSpatialDistributionHistos()

◆ InitCanvases()

void CbmMuchTransportQa::InitCanvases ( )
private

◆ InitCountingHistos()

void CbmMuchTransportQa::InitCountingHistos ( )
private

◆ InitFractionHistos()

void CbmMuchTransportQa::InitFractionHistos ( )
private

◆ InitRatioPieCharts()

void CbmMuchTransportQa::InitRatioPieCharts ( )
private

Definition at line 244 of file CbmMuchTransportQa.cxx.

References fNstations, fvMcPointPRatio, fvMcPointPrimRatio, histFolder, and i.

Referenced by Init().

◆ MakePRatioPieCharts()

void CbmMuchTransportQa::MakePRatioPieCharts ( )
private

◆ MakePrimRatioPieCharts()

void CbmMuchTransportQa::MakePrimRatioPieCharts ( )
private

Definition at line 558 of file CbmMuchTransportQa.cxx.

References fhFractionPrim, fhFractionSec, fNstations, fvMcPointPrimRatio, and i.

Referenced by GetQa().

◆ operator=()

CbmMuchTransportQa& CbmMuchTransportQa::operator= ( const CbmMuchTransportQa )
delete

◆ ReInit()

InitStatus CbmMuchTransportQa::ReInit ( )

Definition at line 302 of file CbmMuchTransportQa.cxx.

References DeInit(), and Init().

◆ SetParContainers()

void CbmMuchTransportQa::SetParContainers ( )

FairTask methods.

Definition at line 309 of file CbmMuchTransportQa.cxx.

Member Data Documentation

◆ fCanvStationPhiZ

CbmQaCanvas* CbmMuchTransportQa::fCanvStationPhiZ = nullptr
private

Definition at line 132 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), and InitCanvases().

◆ fCanvStationPRatio

CbmQaCanvas* CbmMuchTransportQa::fCanvStationPRatio = nullptr
private

Definition at line 137 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), and InitCanvases().

◆ fCanvStationPrimRatio

CbmQaCanvas* CbmMuchTransportQa::fCanvStationPrimRatio = nullptr
private

Definition at line 138 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), and InitCanvases().

◆ fCanvStationRZ

CbmQaCanvas* CbmMuchTransportQa::fCanvStationRZ = nullptr
private

Definition at line 133 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), and InitCanvases().

◆ fCanvStationXY

CbmQaCanvas* CbmMuchTransportQa::fCanvStationXY = nullptr
private

MC point particle ratio pie charts [N stations].

Definition at line 131 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), and InitCanvases().

◆ fCanvUsNtra

CbmQaCanvas* CbmMuchTransportQa::fCanvUsNtra = nullptr
private

Definition at line 134 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), and InitCanvases().

◆ fhFractionEl

TH1F* CbmMuchTransportQa::fhFractionEl = nullptr
private

fraction of pions

Definition at line 119 of file CbmMuchTransportQa.h.

Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().

◆ fhFractionKa

TH1F* CbmMuchTransportQa::fhFractionKa = nullptr
private

fraction of muons

Definition at line 121 of file CbmMuchTransportQa.h.

Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().

◆ fhFractionMu

TH1F* CbmMuchTransportQa::fhFractionMu = nullptr
private

fraction of electrons

Definition at line 120 of file CbmMuchTransportQa.h.

Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().

◆ fhFractionPi

TH1F* CbmMuchTransportQa::fhFractionPi = nullptr
private

fraction of protons

Definition at line 118 of file CbmMuchTransportQa.h.

Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().

◆ fhFractionPr

TH1F* CbmMuchTransportQa::fhFractionPr = nullptr
private

fraction of secondary tracks

Definition at line 117 of file CbmMuchTransportQa.h.

Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().

◆ fhFractionPrim

TH1F* CbmMuchTransportQa::fhFractionPrim = nullptr
private

number of all tracks / event

Definition at line 115 of file CbmMuchTransportQa.h.

Referenced by DeInit(), InitFractionHistos(), and MakePrimRatioPieCharts().

◆ fhFractionSec

TH1F* CbmMuchTransportQa::fhFractionSec = nullptr
private

fraction of primary tracks

Definition at line 116 of file CbmMuchTransportQa.h.

Referenced by DeInit(), InitFractionHistos(), and MakePrimRatioPieCharts().

◆ fhNevents

TParameter<int> CbmMuchTransportQa::fhNevents
private

output folder with histos and canvases

Definition at line 96 of file CbmMuchTransportQa.h.

Referenced by DeInit(), Exec(), GetQa(), and Init().

◆ fhNtracks

TH1F* CbmMuchTransportQa::fhNtracks = nullptr
private

MC point R vs Z [N stations].

Definition at line 114 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), GetQa(), and InitFractionHistos().

◆ fhUsNtraAll

TH1F* CbmMuchTransportQa::fhUsNtraAll = nullptr
private

number of processed events

internal unscaled histogramms

Definition at line 99 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), GetQa(), and InitCountingHistos().

◆ fhUsNtraEl

TH1F* CbmMuchTransportQa::fhUsNtraEl = nullptr
private

number of pions

Definition at line 104 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().

◆ fhUsNtraKa

TH1F* CbmMuchTransportQa::fhUsNtraKa = nullptr
private

number of muons

Definition at line 106 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().

◆ fhUsNtraMu

TH1F* CbmMuchTransportQa::fhUsNtraMu = nullptr
private

number of electrons

Definition at line 105 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().

◆ fhUsNtraPi

TH1F* CbmMuchTransportQa::fhUsNtraPi = nullptr
private

number of protons

Definition at line 103 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().

◆ fhUsNtraPr

TH1F* CbmMuchTransportQa::fhUsNtraPr = nullptr
private

number of secondary tracks

Definition at line 102 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().

◆ fhUsNtraPrim

TH1F* CbmMuchTransportQa::fhUsNtraPrim = nullptr
private

number of all tracks

Definition at line 100 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().

◆ fhUsNtraSec

TH1F* CbmMuchTransportQa::fhUsNtraSec = nullptr
private

number of primary tracks

Definition at line 101 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().

◆ fMcTracks

TClonesArray* CbmMuchTransportQa::fMcTracks = nullptr
private

Definition at line 91 of file CbmMuchTransportQa.h.

Referenced by DeInit(), Exec(), and Init().

◆ fNstations

Int_t CbmMuchTransportQa::fNstations = 0
private

◆ fOutFolder

TFolder CbmMuchTransportQa::fOutFolder
private

subfolder for histograms

Definition at line 95 of file CbmMuchTransportQa.h.

Referenced by DeInit(), GetQa(), Init(), and InitCanvases().

◆ fPoints

TClonesArray* CbmMuchTransportQa::fPoints = nullptr
private

containers

Definition at line 90 of file CbmMuchTransportQa.h.

Referenced by DeInit(), Exec(), and Init().

◆ fvFraction

std::vector<TH1F*> CbmMuchTransportQa::fvFraction
private

fraction of kaons

Definition at line 122 of file CbmMuchTransportQa.h.

Referenced by DeInit(), GetQa(), and InitFractionHistos().

◆ fvMcPointPhiZ

std::vector<TH2F*> CbmMuchTransportQa::fvMcPointPhiZ
private

MC point Y vs X [N stations].

Definition at line 111 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), Fill2dSpatialDistributionHistos(), and Init2dSpatialDistributionHistos().

◆ fvMcPointPRatio

std::vector<TPie*> CbmMuchTransportQa::fvMcPointPRatio
private

pointers to the above histos

output pie charts

Definition at line 126 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), InitRatioPieCharts(), and MakePRatioPieCharts().

◆ fvMcPointPrimRatio

std::vector<TPie*> CbmMuchTransportQa::fvMcPointPrimRatio
private

MC point particle ratio pie charts [N stations].

Definition at line 128 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), InitRatioPieCharts(), and MakePrimRatioPieCharts().

◆ fvMcPointRZ

std::vector<TH2F*> CbmMuchTransportQa::fvMcPointRZ
private

MC point Phi vs Z [N stations].

Definition at line 112 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), Fill2dSpatialDistributionHistos(), and Init2dSpatialDistributionHistos().

◆ fvMcPointXY

std::vector<TH2F*> CbmMuchTransportQa::fvMcPointXY
private

pointers to the above fhUsNtra* histos

output histograms

Definition at line 110 of file CbmMuchTransportQa.h.

Referenced by DeInit(), DrawCanvases(), Fill2dSpatialDistributionHistos(), and Init2dSpatialDistributionHistos().

◆ fvUsNtra

std::vector<TH1F*> CbmMuchTransportQa::fvUsNtra
private

number of kaons

Definition at line 107 of file CbmMuchTransportQa.h.

Referenced by DeInit(), GetQa(), and InitCountingHistos().

◆ histFolder

TFolder* CbmMuchTransportQa::histFolder
private

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