CbmRoot
|
#include <CbmTrdCalibTracker.h>
Public Member Functions | |
CbmTrdCalibTracker (const char *name="TrdQaTracker", Int_t verbose=1) | |
Constructor. | |
~CbmTrdCalibTracker () | |
Destructor. | |
InitStatus | Init () |
FairTask: Intialisation at begin of run. | |
InitStatus | ReInit () |
FairTask: Reinitialisation. | |
void | SetParContainers () |
FairTask: Intialise parameter containers. | |
void | Finish () |
FairTask: Action at end of run. For this task and all of the subtasks. | |
void | Clear (Option_t *="") |
TTask: Clear all data structures created by a previous execution of a task. | |
void | Exec (Option_t *) |
TTask: Process a timeslice. | |
TFolder & | GetQa () |
Private Member Functions | |
InitStatus | GeometryQa () |
Check the geometry. | |
void | ResolutionQa () |
Analysis of hit uncertainty (pull) distributions. | |
void | DeInit () |
Free the memory etc. | |
CbmTrdCalibTracker (const CbmTrdCalibTracker &)=delete | |
Suppressed copy constructor. | |
CbmTrdCalibTracker & | operator= (const CbmTrdCalibTracker &)=delete |
Suppressed assignment operator. | |
ClassDef (CbmTrdCalibTracker, 0) | |
Private Attributes | |
Bool_t | fIsTrdInSetup {false} |
Bool_t | fIsMcPresent {false} |
Int_t | fNtrackingStations {0} |
CbmTimeSlice * | fTimeSlice {nullptr} |
CbmTrdParSetGeo * | fTrdGeoPar {nullptr} |
CbmTrdParSetDigi * | fTrdDigiPar {nullptr} |
CbmDigiManager * | fDigiManager {nullptr} |
CbmMCEventList * | fMcEventList {nullptr} |
MC data. | |
CbmMCDataManager * | fMcManager {nullptr} |
CbmMCDataArray * | fMcTracks {nullptr} |
CbmMCDataArray * | fMcPoints {nullptr} |
TClonesArray * | fClusters {nullptr} |
Data. | |
TClonesArray * | fHits {nullptr} |
TClonesArray * | fHitMatches {nullptr} |
TClonesArray * | fHitsMc {nullptr} |
Output. | |
TFolder | fOutFolder {"TrdQaTracker", "TrdQaTracker"} |
TFolder * | fHistFolder {nullptr} |
output folder with histos and canvases | |
TParameter< int > | fNevents {"nEvents", 0} |
subfolder for histograms | |
CbmQaHist< TH1D > | fh1DresidualU {"h1DresidualU", "Trd1D: Residual U;(U_{reco} - U_{MC})(cm)", 100, -.5, .5} |
number of processed events | |
CbmQaHist< TH1D > | fh1DresidualV {"h1DresidualV", "Trd1D: Residual V;(V_{reco} - V_{MC})(cm)", 100, -10, 10} |
CbmQaHist< TH1D > | fh1DresidualT {"h1DresidualT", "Trd1D: Residual T;(T_{reco} - T_{MC})(ns)", 100, -50, 50} |
CbmQaHist< TH1D > | fh2DresidualX {"h2DresidualX", "Trd2D: Residual X;(X_{reco} - X_{MC})(cm)", 100, -0.05, 0.05} |
CbmQaHist< TH1D > | fh2DresidualY {"h2DresidualY", "Trd2D: Residual Y;(Y_{reco} - Y_{MC})(cm)", 1000, -2, 2} |
CbmQaHist< TH1D > | fh2DresidualT {"h2DresidualT", "Trd2D: Residual T;(T_{reco} - T_{MC})(ns)", 100, -100, 100} |
CbmQaHist< TH1D > | fh1DpullU {"h1DpullU", "Trd1D: Pull U;(U_{reco} - U_{MC}) / #sigmaU_{reco}", 100, -5, 5} |
Histogram for PULL Distribution. | |
CbmQaHist< TH1D > | fh1DpullV {"h1DpullV", "Trd1D: Pull V;(V_{reco} - V_{MC}) / #sigmaV_{reco}", 100, -5, 5} |
CbmQaHist< TH1D > | fh1DpullT {"h1DpullT", "Trd1D: Pull T;(T_{reco} - T_{MC}) / #sigmaT_{reco}", 100, -5, 5} |
CbmQaHist< TH1D > | fh2DpullX {"h2DpullX", "Trd2D: Pull X;(X_{reco} - X_{MC}) / #sigmaX_{reco}", 100, -5, 5} |
CbmQaHist< TH1D > | fh2DpullY {"h2DpullY", "Trd2D: Pull Y;(Y_{reco} - Y_{MC}) / #sigmaY_{reco}", 100, -5, 5} |
CbmQaHist< TH1D > | fh2DpullT {"h2DpullT", "Trd2D: Pull T;(T_{reco} - T_{MC}) / #sigmaT_{reco}", 100, -5, 5} |
std::vector< CbmQaHist< TH1D > * > | fHistList |
List of the above histogramms. | |
std::vector< CbmQaHist< TH1I > > | fhPointsPerHit |
hits purity | |
std::vector< CbmQaHist< TH1I > > | fhHitsPerPoint |
hits efficiency | |
std::vector< CbmQaHist< TProfile2D > > | fhEfficiencyXY |
hits efficiency | |
std::vector< CbmQaHist< TProfile > > | fhEfficiencyR |
CbmQaCanvas | fCanvResidual {"cResidual", "Residual Distribution", 3 * 500, 2 * 500} |
Canvaces: collection of histogramms. | |
CbmQaCanvas | fCanvPull {"cPull", "Pull Distribution", 3 * 500, 2 * 500} |
CbmQaCanvas | fCanvEfficiencyXY {"cEfficiencyXY", "Efficiency XY: % reconstructed McPoint", 2 * 500, 2 * 500} |
CbmQaCanvas | fCanvEfficiencyR {"cEfficiencyR", "Efficiency R: % reconstructed McPoint", 2 * 500, 2 * 500} |
CbmQaCanvas | fCanvHitsPerPoint {"cHitsPerMcPoint", "Efficiency: Hits Per McPoint", 2 * 500, 2 * 500} |
CbmQaCanvas | fCanvPointsPerHit {"cMcPointsPerHit", "Purity: McPoints per Hit", 2 * 500, 2 * 500} |
CbmTrdCalibTracker class represents all the CA tracker requirements for the TRD detector. When this QA test is passed, the tracker must work (at least that is the idea).
The class ensures that the tracker has the correct understanding of the TRD geometry and interfaces and checks the quality of all tracking-related aspects of the TRD data.
Definition at line 43 of file CbmTrdCalibTracker.h.
CbmTrdCalibTracker::CbmTrdCalibTracker | ( | const char * | name = "TrdQaTracker", |
Int_t | verbose = 1 ) |
Constructor.
Definition at line 63 of file CbmTrdCalibTracker.cxx.
References fh1DpullT, fh1DpullU, fh1DpullV, fh1DresidualT, fh1DresidualU, fh1DresidualV, fh2DpullT, fh2DpullX, fh2DpullY, fh2DresidualT, fh2DresidualX, fh2DresidualY, and fHistList.
CbmTrdCalibTracker::~CbmTrdCalibTracker | ( | ) |
|
privatedelete |
Suppressed copy constructor.
|
private |
|
inline |
TTask: Clear all data structures created by a previous execution of a task.
Definition at line 65 of file CbmTrdCalibTracker.h.
|
private |
Free the memory etc.
Definition at line 98 of file CbmTrdCalibTracker.cxx.
References fClusters, fDigiManager, fhHitsPerPoint, fHistFolder, fHitMatches, fHits, fHitsMc, fhPointsPerHit, fIsMcPresent, fIsTrdInSetup, fMcManager, fMcPoints, fMcTracks, fNevents, fNtrackingStations, fOutFolder, and fTimeSlice.
Referenced by ReInit(), and ~CbmTrdCalibTracker().
void CbmTrdCalibTracker::Exec | ( | Option_t * | ) |
TTask: Process a timeslice.
Definition at line 382 of file CbmTrdCalibTracker.cxx.
References fIsTrdInSetup, fNevents, and ResolutionQa().
void CbmTrdCalibTracker::Finish | ( | ) |
FairTask: Action at end of run. For this task and all of the subtasks.
Definition at line 396 of file CbmTrdCalibTracker.cxx.
References GetQa().
|
private |
Check the geometry.
Definition at line 406 of file CbmTrdCalibTracker.cxx.
References fNtrackingStations, fTrdDigiPar, fTrdGeoPar, CbmTrdParSet::GetModuleId(), CbmTrdParSet::GetModulePar(), CbmTrdParModGeo::GetZ(), and CbmTrdParSetGeo::LoadAlignVolumes().
Referenced by ReInit().
TFolder & CbmTrdCalibTracker::GetQa | ( | ) |
Prepare the Qa output and return it as a reference to an internal TFolder. The reference is non-const, because FairSink can not write const objects
Definition at line 804 of file CbmTrdCalibTracker.cxx.
References fCanvEfficiencyR, fCanvEfficiencyXY, fCanvHitsPerPoint, fCanvPointsPerHit, fCanvPull, fCanvResidual, fhEfficiencyR, fhEfficiencyXY, fhHitsPerPoint, fHistList, fhPointsPerHit, cbm::qa::util::FitKaniadakisGaussian(), fNtrackingStations, and fOutFolder.
Referenced by Finish().
|
inline |
FairTask: Intialisation at begin of run.
Definition at line 53 of file CbmTrdCalibTracker.h.
References ReInit().
|
privatedelete |
Suppressed assignment operator.
InitStatus CbmTrdCalibTracker::ReInit | ( | ) |
FairTask: Reinitialisation.
Definition at line 153 of file CbmTrdCalibTracker.cxx.
References DeInit(), CbmQaCanvas::Divide2D(), fCanvEfficiencyR, fCanvEfficiencyXY, fCanvHitsPerPoint, fCanvPointsPerHit, fCanvPull, fCanvResidual, fClusters, fDigiManager, fhEfficiencyR, fhEfficiencyXY, fhHitsPerPoint, fHistFolder, fHistList, fHitMatches, fHits, fHitsMc, fhPointsPerHit, fIsMcPresent, fIsTrdInSetup, fMcEventList, fMcManager, fMcPoints, fMcTracks, fNevents, fNtrackingStations, fOutFolder, fTimeSlice, fTrdDigiPar, fTrdGeoPar, GeometryQa(), CbmDigiManager::Init(), CbmMCDataManager::InitBranch(), CbmDigiManager::Instance(), CbmDigiManager::IsMatchPresent(), kTrd, and sqrt().
Referenced by Init().
|
private |
Analysis of hit uncertainty (pull) distributions.
Definition at line 442 of file CbmTrdCalibTracker.cxx.
References CbmTrdHitMC::AddCluster(), CbmMatch::AddLinks(), CbmTrdHitMC::AddPoint(), CbmTrdHitMC::AddSignal(), fClusters, fDigiManager, fh1DpullT, fh1DpullU, fh1DpullV, fh1DresidualT, fh1DresidualU, fh1DresidualV, fh2DpullT, fh2DpullX, fh2DpullY, fh2DresidualT, fh2DresidualX, fh2DresidualY, fhEfficiencyR, fhEfficiencyXY, fhHitsPerPoint, fHitMatches, fHits, fHitsMc, fhPointsPerHit, fIsMcPresent, fMcEventList, fMcPoints, fMcTracks, fNtrackingStations, fTrdDigiPar, fTrdGeoPar, CbmDigiManager::Get(), CbmMCDataArray::Get(), CbmCluster::GetAddress(), CbmHit::GetAddress(), CbmTrdDigi::GetAddressModule(), CbmTrdHit::GetClassType(), CbmCluster::GetDigi(), CbmPixelHit::GetDx(), CbmTrdHitMC::GetDx(), CbmPixelHit::GetDy(), CbmMCEventList::GetEventIdByIndex(), CbmMCEventList::GetEventIndex(), CbmMCEventList::GetEventTime(), CbmMCEventList::GetFileIdByIndex(), CbmLink::GetIndex(), CbmTrdAddress::GetLayerId(), CbmMatch::GetLink(), CbmDigiManager::GetMatch(), CbmMatch::GetMatchedLink(), CbmTrdAddress::GetModuleAddress(), CbmTrdPoint::GetModuleAddress(), CbmTrdParSet::GetModuleId(), CbmTrdParSet::GetModulePar(), CbmCluster::GetNofDigis(), CbmDigiManager::GetNofDigis(), CbmMCEventList::GetNofEvents(), CbmMatch::GetNofLinks(), CbmMCTrack::GetPdgCode(), CbmTrdPoint::GetPzOut(), CbmHit::GetRefId(), CbmHit::GetTime(), CbmTrdDigi::GetTime(), CbmTrdDigi::GetTimeDAQ(), CbmHit::GetTimeError(), CbmTrdDigi::GetType(), CbmLink::GetWeight(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHit::GetZ(), CbmTrdParModGeo::GetZ(), CbmTrdPoint::GetZIn(), CbmTrdPoint::GetZOut(), CbmDigiManager::Instance(), CbmDigiManager::IsMatchPresent(), CbmTrdDigi::kFASP, CbmTrdDigi::kSPADIC, kTrd, CbmTrdHitMC::PurgeSignals(), CbmTrdHitMC::SetErrorMsg(), CbmLink::SetIndex(), CbmMCDataArray::Size(), sqrt(), x, and y.
Referenced by Exec().
void CbmTrdCalibTracker::SetParContainers | ( | ) |
FairTask: Intialise parameter containers.
Definition at line 132 of file CbmTrdCalibTracker.cxx.
References fTrdDigiPar, and fTrdGeoPar.
|
private |
Definition at line 153 of file CbmTrdCalibTracker.h.
|
private |
Definition at line 152 of file CbmTrdCalibTracker.h.
|
private |
Definition at line 154 of file CbmTrdCalibTracker.h.
|
private |
Definition at line 155 of file CbmTrdCalibTracker.h.
|
private |
Definition at line 151 of file CbmTrdCalibTracker.h.
|
private |
Canvaces: collection of histogramms.
Definition at line 150 of file CbmTrdCalibTracker.h.
|
private |
Data.
Definition at line 104 of file CbmTrdCalibTracker.h.
Referenced by DeInit(), ReInit(), and ResolutionQa().
|
private |
Definition at line 95 of file CbmTrdCalibTracker.h.
Referenced by DeInit(), ReInit(), and ResolutionQa().
|
private |
Definition at line 129 of file CbmTrdCalibTracker.h.
Referenced by CbmTrdCalibTracker(), and ResolutionQa().
|
private |
Histogram for PULL Distribution.
Definition at line 127 of file CbmTrdCalibTracker.h.
Referenced by CbmTrdCalibTracker(), and ResolutionQa().
|
private |
Definition at line 128 of file CbmTrdCalibTracker.h.
Referenced by CbmTrdCalibTracker(), and ResolutionQa().
|
private |
Definition at line 120 of file CbmTrdCalibTracker.h.
Referenced by CbmTrdCalibTracker(), and ResolutionQa().
|
private |
number of processed events
Histogram for Residual Distribution
Definition at line 118 of file CbmTrdCalibTracker.h.
Referenced by CbmTrdCalibTracker(), and ResolutionQa().
|
private |
Definition at line 119 of file CbmTrdCalibTracker.h.
Referenced by CbmTrdCalibTracker(), and ResolutionQa().
|
private |
Definition at line 133 of file CbmTrdCalibTracker.h.
Referenced by CbmTrdCalibTracker(), and ResolutionQa().
|
private |
Definition at line 131 of file CbmTrdCalibTracker.h.
Referenced by CbmTrdCalibTracker(), and ResolutionQa().
|
private |
Definition at line 132 of file CbmTrdCalibTracker.h.
Referenced by CbmTrdCalibTracker(), and ResolutionQa().
|
private |
Definition at line 124 of file CbmTrdCalibTracker.h.
Referenced by CbmTrdCalibTracker(), and ResolutionQa().
|
private |
Definition at line 122 of file CbmTrdCalibTracker.h.
Referenced by CbmTrdCalibTracker(), and ResolutionQa().
|
private |
Definition at line 123 of file CbmTrdCalibTracker.h.
Referenced by CbmTrdCalibTracker(), and ResolutionQa().
|
private |
Definition at line 146 of file CbmTrdCalibTracker.h.
Referenced by GetQa(), ReInit(), and ResolutionQa().
|
private |
hits efficiency
Definition at line 145 of file CbmTrdCalibTracker.h.
Referenced by GetQa(), ReInit(), and ResolutionQa().
|
private |
hits efficiency
Definition at line 142 of file CbmTrdCalibTracker.h.
Referenced by DeInit(), GetQa(), ReInit(), and ResolutionQa().
|
private |
output folder with histos and canvases
Definition at line 113 of file CbmTrdCalibTracker.h.
|
private |
List of the above histogramms.
Definition at line 136 of file CbmTrdCalibTracker.h.
Referenced by CbmTrdCalibTracker(), GetQa(), and ReInit().
|
private |
Definition at line 106 of file CbmTrdCalibTracker.h.
Referenced by DeInit(), ReInit(), and ResolutionQa().
|
private |
Definition at line 105 of file CbmTrdCalibTracker.h.
Referenced by DeInit(), ReInit(), and ResolutionQa().
|
private |
Output.
Definition at line 109 of file CbmTrdCalibTracker.h.
Referenced by DeInit(), ReInit(), and ResolutionQa().
|
private |
hits purity
Definition at line 139 of file CbmTrdCalibTracker.h.
Referenced by DeInit(), GetQa(), ReInit(), and ResolutionQa().
|
private |
Definition at line 88 of file CbmTrdCalibTracker.h.
Referenced by DeInit(), ReInit(), and ResolutionQa().
|
private |
Definition at line 87 of file CbmTrdCalibTracker.h.
|
private |
MC data.
Definition at line 98 of file CbmTrdCalibTracker.h.
Referenced by ReInit(), and ResolutionQa().
|
private |
Definition at line 99 of file CbmTrdCalibTracker.h.
|
private |
Definition at line 101 of file CbmTrdCalibTracker.h.
Referenced by DeInit(), ReInit(), and ResolutionQa().
|
private |
Definition at line 100 of file CbmTrdCalibTracker.h.
Referenced by DeInit(), ReInit(), and ResolutionQa().
|
private |
subfolder for histograms
Definition at line 115 of file CbmTrdCalibTracker.h.
|
private |
Definition at line 90 of file CbmTrdCalibTracker.h.
Referenced by DeInit(), GeometryQa(), GetQa(), ReInit(), and ResolutionQa().
|
private |
Definition at line 112 of file CbmTrdCalibTracker.h.
|
private |
Definition at line 92 of file CbmTrdCalibTracker.h.
|
private |
Definition at line 94 of file CbmTrdCalibTracker.h.
Referenced by GeometryQa(), ReInit(), ResolutionQa(), and SetParContainers().
|
private |
Definition at line 93 of file CbmTrdCalibTracker.h.
Referenced by GeometryQa(), ReInit(), ResolutionQa(), and SetParContainers().