CbmRoot
Loading...
Searching...
No Matches
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.
 
 CbmMuchTransportQa (const CbmMuchTransportQa &)=delete
 Deactivated copy constructors.
 
CbmMuchTransportQaoperator= (const CbmMuchTransportQa &)=delete
 
virtual ~CbmMuchTransportQa ()
 Destructor.
 
void SetParContainers ()
 FairTask methods.
 
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
 
FairRootManager * fManager = nullptr
 
CbmMCDataManagerfMcManager = nullptr
 
CbmTimeSlicefTimeSlice = nullptr
 
CbmMCDataArrayfPoints = nullptr
 containers
 
CbmMCDataArrayfMcTracks = nullptr
 
TFolder * histFolder
 
TFolder fOutFolder
 subfolder for histograms
 
TParameter< int > fNevents
 output folder with histos and canvases
 
TH1F * fhUsNtraAll = nullptr
 number of processed events
 
TH1F * fhUsNtraPrim = nullptr
 number of all tracks
 
TH1F * fhUsNtraSec = nullptr
 number of primary tracks
 
TH1F * fhUsNtraPr = nullptr
 number of secondary tracks
 
TH1F * fhUsNtraPi = nullptr
 number of protons
 
TH1F * fhUsNtraEl = nullptr
 number of pions
 
TH1F * fhUsNtraMu = nullptr
 number of electrons
 
TH1F * fhUsNtraKa = nullptr
 number of muons
 
std::vector< TH1F * > fvUsNtra
 number of kaons
 
std::vector< TH2F * > fvMcPointXY
 pointers to the above fhUsNtra* histos
 
std::vector< TH2F * > fvMcPointPhiZ
 MC point Y vs X [N stations].
 
std::vector< TH2F * > fvMcPointRZ
 MC point Phi vs Z [N stations].
 
TH1F * fhNtracks = nullptr
 MC point R vs Z [N stations].
 
TH1F * fhFractionPrim = nullptr
 number of all tracks / event
 
TH1F * fhFractionSec = nullptr
 fraction of primary tracks
 
TH1F * fhFractionPr = nullptr
 fraction of secondary tracks
 
TH1F * fhFractionPi = nullptr
 fraction of protons
 
TH1F * fhFractionEl = nullptr
 fraction of pions
 
TH1F * fhFractionMu = nullptr
 fraction of electrons
 
TH1F * fhFractionKa = nullptr
 fraction of muons
 
std::vector< TH1F * > fvFraction
 fraction of kaons
 
std::vector< CbmQaPie * > fvMcPointPRatio
 pointers to the above histos
 
std::vector< CbmQaPie * > fvMcPointPrimRatio
 MC point particle ratio pie charts [N stations].
 
CbmQaCanvasfCanvStationXY = nullptr
 MC point particle ratio pie charts [N stations].
 
CbmQaCanvasfCanvStationPhiZ = nullptr
 
CbmQaCanvasfCanvStationRZ = nullptr
 
CbmQaCanvasfCanvNtra = 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 39 of file CbmMuchTransportQa.h.

Constructor & Destructor Documentation

◆ CbmMuchTransportQa() [1/2]

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

Constructor.

Definition at line 52 of file CbmMuchTransportQa.cxx.

◆ CbmMuchTransportQa() [2/2]

CbmMuchTransportQa::CbmMuchTransportQa ( const CbmMuchTransportQa & )
delete

Deactivated copy constructors.

◆ ~CbmMuchTransportQa()

CbmMuchTransportQa::~CbmMuchTransportQa ( )
virtual

Destructor.

Definition at line 67 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 408 of file CbmMuchTransportQa.cxx.

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

Referenced by Exec().

◆ Finish()

void CbmMuchTransportQa::Finish ( )

Definition at line 584 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 452 of file CbmMuchTransportQa.cxx.

References DrawCanvases(), fhNtracks, fhUsNtraAll, fNevents, fNstations, fOutFolder, fvFraction, fvUsNtra, 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 275 of file CbmMuchTransportQa.cxx.

References fNstations, fvMcPointPRatio, fvMcPointPrimRatio, and histFolder.

Referenced by Init().

◆ MakePRatioPieCharts()

void CbmMuchTransportQa::MakePRatioPieCharts ( )
private

◆ MakePrimRatioPieCharts()

void CbmMuchTransportQa::MakePrimRatioPieCharts ( )
private

Definition at line 564 of file CbmMuchTransportQa.cxx.

References fhFractionPrim, fhFractionSec, fNstations, and fvMcPointPrimRatio.

Referenced by GetQa().

◆ operator=()

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

◆ ReInit()

InitStatus CbmMuchTransportQa::ReInit ( )

Definition at line 324 of file CbmMuchTransportQa.cxx.

References DeInit(), and Init().

◆ SetParContainers()

void CbmMuchTransportQa::SetParContainers ( )

FairTask methods.

Definition at line 331 of file CbmMuchTransportQa.cxx.

Member Data Documentation

◆ fCanvNtra

CbmQaCanvas* CbmMuchTransportQa::fCanvNtra = nullptr
private

Definition at line 131 of file CbmMuchTransportQa.h.

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

◆ fCanvStationPhiZ

CbmQaCanvas* CbmMuchTransportQa::fCanvStationPhiZ = nullptr
private

Definition at line 129 of file CbmMuchTransportQa.h.

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

◆ fCanvStationPRatio

CbmQaCanvas* CbmMuchTransportQa::fCanvStationPRatio = nullptr
private

Definition at line 134 of file CbmMuchTransportQa.h.

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

◆ fCanvStationPrimRatio

CbmQaCanvas* CbmMuchTransportQa::fCanvStationPrimRatio = nullptr
private

Definition at line 135 of file CbmMuchTransportQa.h.

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

◆ fCanvStationRZ

CbmQaCanvas* CbmMuchTransportQa::fCanvStationRZ = nullptr
private

Definition at line 130 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 128 of file CbmMuchTransportQa.h.

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

◆ fhFractionEl

TH1F* CbmMuchTransportQa::fhFractionEl = nullptr
private

fraction of pions

Definition at line 118 of file CbmMuchTransportQa.h.

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

◆ fhFractionKa

TH1F* CbmMuchTransportQa::fhFractionKa = nullptr
private

fraction of muons

Definition at line 120 of file CbmMuchTransportQa.h.

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

◆ fhFractionMu

TH1F* CbmMuchTransportQa::fhFractionMu = nullptr
private

fraction of electrons

Definition at line 119 of file CbmMuchTransportQa.h.

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

◆ fhFractionPi

TH1F* CbmMuchTransportQa::fhFractionPi = nullptr
private

fraction of protons

Definition at line 117 of file CbmMuchTransportQa.h.

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

◆ fhFractionPr

TH1F* CbmMuchTransportQa::fhFractionPr = nullptr
private

fraction of secondary tracks

Definition at line 116 of file CbmMuchTransportQa.h.

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

◆ fhFractionPrim

TH1F* CbmMuchTransportQa::fhFractionPrim = nullptr
private

number of all tracks / event

Definition at line 114 of file CbmMuchTransportQa.h.

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

◆ fhFractionSec

TH1F* CbmMuchTransportQa::fhFractionSec = nullptr
private

fraction of primary tracks

Definition at line 115 of file CbmMuchTransportQa.h.

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

◆ fhNtracks

TH1F* CbmMuchTransportQa::fhNtracks = nullptr
private

MC point R vs Z [N stations].

Definition at line 113 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 98 of file CbmMuchTransportQa.h.

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

◆ fhUsNtraEl

TH1F* CbmMuchTransportQa::fhUsNtraEl = nullptr
private

number of pions

Definition at line 103 of file CbmMuchTransportQa.h.

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

◆ fhUsNtraKa

TH1F* CbmMuchTransportQa::fhUsNtraKa = nullptr
private

number of muons

Definition at line 105 of file CbmMuchTransportQa.h.

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

◆ fhUsNtraMu

TH1F* CbmMuchTransportQa::fhUsNtraMu = nullptr
private

number of electrons

Definition at line 104 of file CbmMuchTransportQa.h.

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

◆ fhUsNtraPi

TH1F* CbmMuchTransportQa::fhUsNtraPi = nullptr
private

number of protons

Definition at line 102 of file CbmMuchTransportQa.h.

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

◆ fhUsNtraPr

TH1F* CbmMuchTransportQa::fhUsNtraPr = nullptr
private

number of secondary tracks

Definition at line 101 of file CbmMuchTransportQa.h.

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

◆ fhUsNtraPrim

TH1F* CbmMuchTransportQa::fhUsNtraPrim = nullptr
private

number of all tracks

Definition at line 99 of file CbmMuchTransportQa.h.

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

◆ fhUsNtraSec

TH1F* CbmMuchTransportQa::fhUsNtraSec = nullptr
private

number of primary tracks

Definition at line 100 of file CbmMuchTransportQa.h.

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

◆ fManager

FairRootManager* CbmMuchTransportQa::fManager = nullptr
private

Definition at line 83 of file CbmMuchTransportQa.h.

Referenced by Init().

◆ fMcManager

CbmMCDataManager* CbmMuchTransportQa::fMcManager = nullptr
private

Definition at line 84 of file CbmMuchTransportQa.h.

Referenced by Init().

◆ fMcTracks

CbmMCDataArray* CbmMuchTransportQa::fMcTracks = nullptr
private

Definition at line 89 of file CbmMuchTransportQa.h.

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

◆ fNevents

TParameter<int> CbmMuchTransportQa::fNevents
private

output folder with histos and canvases

Definition at line 95 of file CbmMuchTransportQa.h.

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

◆ fNstations

Int_t CbmMuchTransportQa::fNstations = 0
private

◆ fOutFolder

TFolder CbmMuchTransportQa::fOutFolder
private

subfolder for histograms

Definition at line 94 of file CbmMuchTransportQa.h.

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

◆ fPoints

CbmMCDataArray* CbmMuchTransportQa::fPoints = nullptr
private

containers

Definition at line 88 of file CbmMuchTransportQa.h.

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

◆ fTimeSlice

CbmTimeSlice* CbmMuchTransportQa::fTimeSlice = nullptr
private

Definition at line 85 of file CbmMuchTransportQa.h.

Referenced by Exec(), and Init().

◆ fvFraction

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

fraction of kaons

Definition at line 121 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 110 of file CbmMuchTransportQa.h.

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

◆ fvMcPointPRatio

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

pointers to the above histos

output pie charts

Definition at line 124 of file CbmMuchTransportQa.h.

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

◆ fvMcPointPrimRatio

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

MC point particle ratio pie charts [N stations].

Definition at line 125 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 111 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 109 of file CbmMuchTransportQa.h.

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

◆ fvUsNtra

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

number of kaons

Definition at line 106 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: