CbmRoot
|
#include <CbmMuchTransportQa.h>
Public Member Functions | |
CbmMuchTransportQa (const char *name="MuchHitFinderQa", Int_t verbose=1) | |
Constructor. More... | |
CbmMuchTransportQa (const CbmMuchTransportQa &)=delete | |
Deactivated copy constructors. More... | |
CbmMuchTransportQa & | operator= (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... | |
CbmQaCanvas * | fCanvStationXY = nullptr |
MC point particle ratio pie charts [N stations]. More... | |
CbmQaCanvas * | fCanvStationPhiZ = nullptr |
CbmQaCanvas * | fCanvStationRZ = nullptr |
CbmQaCanvas * | fCanvUsNtra = nullptr |
CbmQaCanvas * | fCanvStationPRatio = nullptr |
CbmQaCanvas * | fCanvStationPrimRatio = nullptr |
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.
CbmMuchTransportQa::CbmMuchTransportQa | ( | const char * | name = "MuchHitFinderQa" , |
Int_t | verbose = 1 |
||
) |
Constructor.
Definition at line 14 of file CbmMuchTransportQa.cxx.
|
delete |
Deactivated copy constructors.
|
virtual |
|
private |
Reset varibles & deallocate memory. When not called by destructor, need to be folloed by Init().
Definition at line 32 of file CbmMuchTransportQa.cxx.
References fCanvStationPhiZ, fCanvStationPRatio, fCanvStationPrimRatio, fCanvStationRZ, fCanvStationXY, fCanvUsNtra, fhFractionEl, fhFractionKa, fhFractionMu, fhFractionPi, fhFractionPr, fhFractionPrim, fhFractionSec, fhNevents, fhNtracks, fhUsNtraAll, fhUsNtraEl, fhUsNtraKa, fhUsNtraMu, fhUsNtraPi, fhUsNtraPr, fhUsNtraPrim, fhUsNtraSec, fMcTracks, fNstations, fOutFolder, fPoints, fvFraction, fvMcPointPhiZ, fvMcPointPRatio, fvMcPointPrimRatio, fvMcPointRZ, fvMcPointXY, fvUsNtra, and i.
Referenced by ReInit(), and ~CbmMuchTransportQa().
|
private |
Definition at line 452 of file CbmMuchTransportQa.cxx.
References fCanvStationPhiZ, fCanvStationPRatio, fCanvStationPrimRatio, fCanvStationRZ, fCanvStationXY, fCanvUsNtra, fhNtracks, fhUsNtraAll, fhUsNtraEl, fhUsNtraKa, fhUsNtraMu, fhUsNtraPi, fhUsNtraPr, fhUsNtraPrim, fhUsNtraSec, fNstations, fvMcPointPhiZ, fvMcPointPRatio, fvMcPointPrimRatio, fvMcPointRZ, fvMcPointXY, and i.
Referenced by GetQa().
void CbmMuchTransportQa::Exec | ( | Option_t * | option | ) |
Definition at line 330 of file CbmMuchTransportQa.cxx.
References fhNevents, Fill2dSpatialDistributionHistos(), FillCountingHistos(), fMcTracks, fPoints, CbmMCTrack::GetMotherId(), CbmMCTrack::GetPdgCode(), CbmMuchAddress::GetStationIndex(), and i.
|
private |
Definition at line 413 of file CbmMuchTransportQa.cxx.
References fvMcPointPhiZ, fvMcPointRZ, fvMcPointXY, CbmMuchPoint::PositionIn(), and CbmMuchPoint::PositionOut().
Referenced by Exec().
|
private |
Definition at line 384 of file CbmMuchTransportQa.cxx.
References fhUsNtraAll, fhUsNtraEl, fhUsNtraKa, fhUsNtraMu, fhUsNtraPi, fhUsNtraPr, fhUsNtraPrim, and fhUsNtraSec.
Referenced by Exec().
void CbmMuchTransportQa::Finish | ( | ) |
Definition at line 580 of file CbmMuchTransportQa.cxx.
References 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().
InitStatus CbmMuchTransportQa::Init | ( | ) |
Definition at line 95 of file CbmMuchTransportQa.cxx.
References fhNevents, fMcTracks, fNstations, fOutFolder, fPoints, CbmMuchGeoScheme::GetNStations(), CbmMuchGeoScheme::GetStation(), histFolder, i, Init2dSpatialDistributionHistos(), InitCanvases(), InitCountingHistos(), InitFractionHistos(), InitRatioPieCharts(), and CbmMuchGeoScheme::Instance().
Referenced by ReInit().
|
private |
Definition at line 200 of file CbmMuchTransportQa.cxx.
References fNstations, fvMcPointPhiZ, fvMcPointRZ, fvMcPointXY, CbmMuchStation::GetRmax(), CbmMuchStation::GetRmin(), CbmMuchGeoScheme::GetStation(), CbmMuchStation::GetTubeDz(), CbmMuchStation::GetZ(), histFolder, i, and CbmMuchGeoScheme::Instance().
Referenced by Init().
|
private |
Definition at line 264 of file CbmMuchTransportQa.cxx.
References CbmQaCanvas::Divide2D(), fCanvStationPhiZ, fCanvStationPRatio, fCanvStationPrimRatio, fCanvStationRZ, fCanvStationXY, fCanvUsNtra, fNstations, and fOutFolder.
Referenced by Init().
|
private |
Definition at line 145 of file CbmMuchTransportQa.cxx.
References BINS_STA, fhUsNtraAll, fhUsNtraEl, fhUsNtraKa, fhUsNtraMu, fhUsNtraPi, fhUsNtraPr, fhUsNtraPrim, fhUsNtraSec, fvUsNtra, histFolder, i, and v.
Referenced by Init().
|
private |
Definition at line 167 of file CbmMuchTransportQa.cxx.
References BINS_STA, fhFractionEl, fhFractionKa, fhFractionMu, fhFractionPi, fhFractionPr, fhFractionPrim, fhFractionSec, fhNtracks, fvFraction, histFolder, i, and v.
Referenced by Init().
|
private |
Definition at line 244 of file CbmMuchTransportQa.cxx.
References fNstations, fvMcPointPRatio, fvMcPointPrimRatio, histFolder, and i.
Referenced by Init().
|
private |
Definition at line 525 of file CbmMuchTransportQa.cxx.
References fhFractionEl, fhFractionKa, fhFractionMu, fhFractionPi, fhFractionPr, fNstations, fvMcPointPRatio, and i.
Referenced by GetQa().
|
private |
Definition at line 558 of file CbmMuchTransportQa.cxx.
References fhFractionPrim, fhFractionSec, fNstations, fvMcPointPrimRatio, and i.
Referenced by GetQa().
|
delete |
InitStatus CbmMuchTransportQa::ReInit | ( | ) |
Definition at line 302 of file CbmMuchTransportQa.cxx.
void CbmMuchTransportQa::SetParContainers | ( | ) |
FairTask methods.
Definition at line 309 of file CbmMuchTransportQa.cxx.
|
private |
Definition at line 132 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), and InitCanvases().
|
private |
Definition at line 137 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), and InitCanvases().
|
private |
Definition at line 138 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), and InitCanvases().
|
private |
Definition at line 133 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), and InitCanvases().
|
private |
MC point particle ratio pie charts [N stations].
Definition at line 131 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), and InitCanvases().
|
private |
Definition at line 134 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), and InitCanvases().
|
private |
fraction of pions
Definition at line 119 of file CbmMuchTransportQa.h.
Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().
|
private |
fraction of muons
Definition at line 121 of file CbmMuchTransportQa.h.
Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().
|
private |
fraction of electrons
Definition at line 120 of file CbmMuchTransportQa.h.
Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().
|
private |
fraction of protons
Definition at line 118 of file CbmMuchTransportQa.h.
Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().
|
private |
fraction of secondary tracks
Definition at line 117 of file CbmMuchTransportQa.h.
Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().
|
private |
number of all tracks / event
Definition at line 115 of file CbmMuchTransportQa.h.
Referenced by DeInit(), InitFractionHistos(), and MakePrimRatioPieCharts().
|
private |
fraction of primary tracks
Definition at line 116 of file CbmMuchTransportQa.h.
Referenced by DeInit(), InitFractionHistos(), and MakePrimRatioPieCharts().
|
private |
|
private |
MC point R vs Z [N stations].
Definition at line 114 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), GetQa(), and InitFractionHistos().
|
private |
number of processed events
internal unscaled histogramms
Definition at line 99 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), GetQa(), and InitCountingHistos().
|
private |
number of pions
Definition at line 104 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().
|
private |
number of muons
Definition at line 106 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().
|
private |
number of electrons
Definition at line 105 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().
|
private |
number of protons
Definition at line 103 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().
|
private |
number of secondary tracks
Definition at line 102 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().
|
private |
number of all tracks
Definition at line 100 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().
|
private |
number of primary tracks
Definition at line 101 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().
|
private |
Definition at line 91 of file CbmMuchTransportQa.h.
|
private |
geometry
Definition at line 87 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), GetQa(), Init(), Init2dSpatialDistributionHistos(), InitCanvases(), InitRatioPieCharts(), MakePRatioPieCharts(), and MakePrimRatioPieCharts().
|
private |
subfolder for histograms
Definition at line 95 of file CbmMuchTransportQa.h.
Referenced by DeInit(), GetQa(), Init(), and InitCanvases().
|
private |
containers
Definition at line 90 of file CbmMuchTransportQa.h.
|
private |
fraction of kaons
Definition at line 122 of file CbmMuchTransportQa.h.
Referenced by DeInit(), GetQa(), and InitFractionHistos().
|
private |
MC point Y vs X [N stations].
Definition at line 111 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), Fill2dSpatialDistributionHistos(), and Init2dSpatialDistributionHistos().
|
private |
pointers to the above histos
output pie charts
Definition at line 126 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), InitRatioPieCharts(), and MakePRatioPieCharts().
|
private |
MC point particle ratio pie charts [N stations].
Definition at line 128 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), InitRatioPieCharts(), and MakePrimRatioPieCharts().
|
private |
MC point Phi vs Z [N stations].
Definition at line 112 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), Fill2dSpatialDistributionHistos(), and Init2dSpatialDistributionHistos().
|
private |
pointers to the above fhUsNtra* histos
output histograms
Definition at line 110 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), Fill2dSpatialDistributionHistos(), and Init2dSpatialDistributionHistos().
|
private |
number of kaons
Definition at line 107 of file CbmMuchTransportQa.h.
Referenced by DeInit(), GetQa(), and InitCountingHistos().
|
private |
Definition at line 94 of file CbmMuchTransportQa.h.
Referenced by Init(), Init2dSpatialDistributionHistos(), InitCountingHistos(), InitFractionHistos(), and InitRatioPieCharts().