CbmRoot
|
#include <CbmMuchTransportQa.h>
Public Member Functions | |
CbmMuchTransportQa (const char *name="MuchHitFinderQa", Int_t verbose=1) | |
Constructor. | |
CbmMuchTransportQa (const CbmMuchTransportQa &)=delete | |
Deactivated copy constructors. | |
CbmMuchTransportQa & | operator= (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 |
CbmMCDataManager * | fMcManager = nullptr |
CbmTimeSlice * | fTimeSlice = nullptr |
CbmMCDataArray * | fPoints = nullptr |
containers | |
CbmMCDataArray * | fMcTracks = 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]. | |
CbmQaCanvas * | fCanvStationXY = nullptr |
MC point particle ratio pie charts [N stations]. | |
CbmQaCanvas * | fCanvStationPhiZ = nullptr |
CbmQaCanvas * | fCanvStationRZ = nullptr |
CbmQaCanvas * | fCanvNtra = 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 39 of file CbmMuchTransportQa.h.
CbmMuchTransportQa::CbmMuchTransportQa | ( | const char * | name = "MuchHitFinderQa", |
Int_t | verbose = 1 ) |
Constructor.
Definition at line 52 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 70 of file CbmMuchTransportQa.cxx.
References fCanvNtra, fCanvStationPhiZ, fCanvStationPRatio, fCanvStationPrimRatio, fCanvStationRZ, fCanvStationXY, fhFractionEl, fhFractionKa, fhFractionMu, fhFractionPi, fhFractionPr, fhFractionPrim, fhFractionSec, fhNtracks, fhUsNtraAll, fhUsNtraEl, fhUsNtraKa, fhUsNtraMu, fhUsNtraPi, fhUsNtraPr, fhUsNtraPrim, fhUsNtraSec, fMcTracks, fNevents, fNstations, fOutFolder, fPoints, fvFraction, fvMcPointPhiZ, fvMcPointPRatio, fvMcPointPrimRatio, fvMcPointRZ, fvMcPointXY, fvUsNtra, and histFolder.
Referenced by Init(), ReInit(), and ~CbmMuchTransportQa().
|
private |
Definition at line 475 of file CbmMuchTransportQa.cxx.
References fCanvNtra, fCanvStationPhiZ, fCanvStationPRatio, fCanvStationPrimRatio, fCanvStationRZ, fCanvStationXY, fhNtracks, fhUsNtraEl, fhUsNtraKa, fhUsNtraMu, fhUsNtraPi, fhUsNtraPr, fhUsNtraPrim, fhUsNtraSec, fNevents, fNstations, fvMcPointPhiZ, fvMcPointPRatio, fvMcPointPrimRatio, fvMcPointRZ, and fvMcPointXY.
Referenced by GetQa().
void CbmMuchTransportQa::Exec | ( | Option_t * | option | ) |
Definition at line 352 of file CbmMuchTransportQa.cxx.
References Fill2dSpatialDistributionHistos(), FillCountingHistos(), fMcTracks, fNevents, fPoints, fTimeSlice, CbmMCDataArray::Get(), CbmMatch::GetLink(), CbmTimeSlice::GetMatch(), CbmMCTrack::GetMotherId(), CbmMatch::GetNofLinks(), CbmMCTrack::GetPdgCode(), CbmMuchAddress::GetStationIndex(), CbmLink::SetIndex(), and CbmMCDataArray::Size().
|
private |
Definition at line 435 of file CbmMuchTransportQa.cxx.
References fvMcPointPhiZ, fvMcPointRZ, fvMcPointXY, CbmMuchPoint::PositionIn(), and CbmMuchPoint::PositionOut().
Referenced by Exec().
|
private |
Definition at line 408 of file CbmMuchTransportQa.cxx.
References fhUsNtraAll, fhUsNtraEl, fhUsNtraKa, fhUsNtraMu, fhUsNtraPi, fhUsNtraPr, fhUsNtraPrim, and fhUsNtraSec.
Referenced by Exec().
void CbmMuchTransportQa::Finish | ( | ) |
Definition at line 584 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 452 of file CbmMuchTransportQa.cxx.
References DrawCanvases(), fhNtracks, fhUsNtraAll, fNevents, fNstations, fOutFolder, fvFraction, fvUsNtra, MakePRatioPieCharts(), and MakePrimRatioPieCharts().
Referenced by Finish().
InitStatus CbmMuchTransportQa::Init | ( | ) |
Definition at line 131 of file CbmMuchTransportQa.cxx.
References DeInit(), fManager, fMcManager, fMcTracks, fNevents, fNstations, fOutFolder, fPoints, fTimeSlice, CbmMuchGeoScheme::GetNStations(), CbmMuchGeoScheme::GetStation(), histFolder, Init2dSpatialDistributionHistos(), CbmMCDataManager::InitBranch(), InitCanvases(), InitCountingHistos(), InitFractionHistos(), InitRatioPieCharts(), and CbmMuchGeoScheme::Instance().
Referenced by ReInit().
|
private |
Definition at line 245 of file CbmMuchTransportQa.cxx.
References fNstations, fvMcPointPhiZ, fvMcPointRZ, fvMcPointXY, CbmMuchStation::GetRmax(), CbmMuchStation::GetRmin(), CbmMuchGeoScheme::GetStation(), CbmMuchStation::GetTubeDz(), CbmMuchStation::GetZ(), histFolder, and CbmMuchGeoScheme::Instance().
Referenced by Init().
|
private |
Definition at line 293 of file CbmMuchTransportQa.cxx.
References CbmQaCanvas::Divide2D(), fCanvNtra, fCanvStationPhiZ, fCanvStationPRatio, fCanvStationPrimRatio, fCanvStationRZ, fCanvStationXY, fNstations, and fOutFolder.
Referenced by Init().
|
private |
Definition at line 196 of file CbmMuchTransportQa.cxx.
References BINS_STA, fhUsNtraAll, fhUsNtraEl, fhUsNtraKa, fhUsNtraMu, fhUsNtraPi, fhUsNtraPr, fhUsNtraPrim, fhUsNtraSec, fvUsNtra, histFolder, and v.
Referenced by Init().
|
private |
Definition at line 218 of file CbmMuchTransportQa.cxx.
References BINS_STA, fhFractionEl, fhFractionKa, fhFractionMu, fhFractionPi, fhFractionPr, fhFractionPrim, fhFractionSec, fhNtracks, fvFraction, histFolder, and v.
Referenced by Init().
|
private |
Definition at line 275 of file CbmMuchTransportQa.cxx.
References fNstations, fvMcPointPRatio, fvMcPointPrimRatio, and histFolder.
Referenced by Init().
|
private |
Definition at line 534 of file CbmMuchTransportQa.cxx.
References fhFractionEl, fhFractionKa, fhFractionMu, fhFractionPi, fhFractionPr, fNstations, and fvMcPointPRatio.
Referenced by GetQa().
|
private |
Definition at line 564 of file CbmMuchTransportQa.cxx.
References fhFractionPrim, fhFractionSec, fNstations, and fvMcPointPrimRatio.
Referenced by GetQa().
|
delete |
InitStatus CbmMuchTransportQa::ReInit | ( | ) |
Definition at line 324 of file CbmMuchTransportQa.cxx.
void CbmMuchTransportQa::SetParContainers | ( | ) |
FairTask methods.
Definition at line 331 of file CbmMuchTransportQa.cxx.
|
private |
Definition at line 131 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), and InitCanvases().
|
private |
Definition at line 129 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 |
Definition at line 135 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), and InitCanvases().
|
private |
Definition at line 130 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), and InitCanvases().
|
private |
MC point particle ratio pie charts [N stations].
Definition at line 128 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), and InitCanvases().
|
private |
fraction of pions
Definition at line 118 of file CbmMuchTransportQa.h.
Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().
|
private |
fraction of muons
Definition at line 120 of file CbmMuchTransportQa.h.
Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().
|
private |
fraction of electrons
Definition at line 119 of file CbmMuchTransportQa.h.
Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().
|
private |
fraction of protons
Definition at line 117 of file CbmMuchTransportQa.h.
Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().
|
private |
fraction of secondary tracks
Definition at line 116 of file CbmMuchTransportQa.h.
Referenced by DeInit(), InitFractionHistos(), and MakePRatioPieCharts().
|
private |
number of all tracks / event
Definition at line 114 of file CbmMuchTransportQa.h.
Referenced by DeInit(), InitFractionHistos(), and MakePrimRatioPieCharts().
|
private |
fraction of primary tracks
Definition at line 115 of file CbmMuchTransportQa.h.
Referenced by DeInit(), InitFractionHistos(), and MakePrimRatioPieCharts().
|
private |
MC point R vs Z [N stations].
Definition at line 113 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), GetQa(), and InitFractionHistos().
|
private |
number of processed events
internal unscaled histogramms
Definition at line 98 of file CbmMuchTransportQa.h.
Referenced by DeInit(), FillCountingHistos(), GetQa(), and InitCountingHistos().
|
private |
number of pions
Definition at line 103 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().
|
private |
number of muons
Definition at line 105 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().
|
private |
number of electrons
Definition at line 104 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().
|
private |
number of protons
Definition at line 102 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().
|
private |
number of secondary tracks
Definition at line 101 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().
|
private |
number of all tracks
Definition at line 99 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().
|
private |
number of primary tracks
Definition at line 100 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), FillCountingHistos(), and InitCountingHistos().
|
private |
Definition at line 83 of file CbmMuchTransportQa.h.
Referenced by Init().
|
private |
Definition at line 84 of file CbmMuchTransportQa.h.
Referenced by Init().
|
private |
Definition at line 89 of file CbmMuchTransportQa.h.
|
private |
output folder with histos and canvases
Definition at line 95 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), Exec(), GetQa(), and Init().
|
private |
geometry
Definition at line 80 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), GetQa(), Init(), Init2dSpatialDistributionHistos(), InitCanvases(), InitRatioPieCharts(), MakePRatioPieCharts(), and MakePrimRatioPieCharts().
|
private |
subfolder for histograms
Definition at line 94 of file CbmMuchTransportQa.h.
Referenced by DeInit(), GetQa(), Init(), and InitCanvases().
|
private |
containers
Definition at line 88 of file CbmMuchTransportQa.h.
|
private |
Definition at line 85 of file CbmMuchTransportQa.h.
|
private |
fraction of kaons
Definition at line 121 of file CbmMuchTransportQa.h.
Referenced by DeInit(), GetQa(), and InitFractionHistos().
|
private |
MC point Y vs X [N stations].
Definition at line 110 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), Fill2dSpatialDistributionHistos(), and Init2dSpatialDistributionHistos().
|
private |
pointers to the above histos
output pie charts
Definition at line 124 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), InitRatioPieCharts(), and MakePRatioPieCharts().
|
private |
MC point particle ratio pie charts [N stations].
Definition at line 125 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), InitRatioPieCharts(), and MakePrimRatioPieCharts().
|
private |
MC point Phi vs Z [N stations].
Definition at line 111 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), Fill2dSpatialDistributionHistos(), and Init2dSpatialDistributionHistos().
|
private |
pointers to the above fhUsNtra* histos
output histograms
Definition at line 109 of file CbmMuchTransportQa.h.
Referenced by DeInit(), DrawCanvases(), Fill2dSpatialDistributionHistos(), and Init2dSpatialDistributionHistos().
|
private |
number of kaons
Definition at line 106 of file CbmMuchTransportQa.h.
Referenced by DeInit(), GetQa(), and InitCountingHistos().
|
private |
Definition at line 93 of file CbmMuchTransportQa.h.
Referenced by DeInit(), Init(), Init2dSpatialDistributionHistos(), InitCountingHistos(), InitFractionHistos(), and InitRatioPieCharts().