CbmRoot
|
Track fit QA for track reconstruction. More...
#include <CbmLitFitQa.h>
Public Member Functions | |
CbmLitFitQa () | |
Constructor. More... | |
virtual | ~CbmLitFitQa () |
Destructor. More... | |
virtual InitStatus | Init () |
Inherited from FairTask. More... | |
virtual void | Exec (Option_t *opt) |
Inherited from FairTask. More... | |
virtual void | Finish () |
Inherited from FairTask. More... | |
void | SetMvdMinNofHits (Int_t minNofHits) |
void | SetStsMinNofHits (Int_t minNofHits) |
void | SetTrdMinNofHits (Int_t minNofHits) |
void | SetMuchMinNofHits (Int_t minNofHits) |
void | SetOutputDir (const string &dir) |
void | SetFixedBounds (Bool_t isFixedBounds) |
void | SetPRange (Int_t bins, Int_t min, Int_t max) |
Private Member Functions | |
void | ReadDataBranches () |
Reads data branches. More... | |
void | ProcessGlobalTracks () |
void | ProcessStsTrack (Int_t trackId) |
void | ProcessTrdTrack (Int_t trackId) |
void | ProcessMuchTrack (Int_t trackId) |
void | FillResidualsAndPulls (const FairTrackParam *par, const CbmLitMCPoint *mcPoint, const string &histName, Float_t wrongPar, ECbmModuleId detId) |
void | FillTrackParamHistogramm (const string &histName, const FairTrackParam *par) |
void | ProcessTrackParamsAtVertex () |
void | ProcessTrackParamsAtVertex (CbmEvent *event) |
void | ProcessTrackMomentumAtVertex () |
void | CreateHistograms () |
void | CreateResidualAndPullHistograms (ECbmModuleId detId, const string &detName) |
void | CreateTrackParamHistograms (ECbmModuleId detId, const string &detName) |
CbmLitFitQa (const CbmLitFitQa &) | |
CbmLitFitQa & | operator= (const CbmLitFitQa &) |
Private Attributes | |
Bool_t | fIsFixedBounds |
Int_t | fMvdMinNofHits |
Int_t | fStsMinNofHits |
Int_t | fTrdMinNofHits |
Int_t | fMuchMinNofHits |
string | fOutputDir |
Double_t | fPRangeMin |
Double_t | fPRangeMax |
Int_t | fPRangeBins |
CbmHistManager * | fHM |
TClonesArray * | fGlobalTracks |
TClonesArray * | fStsTracks |
TClonesArray * | fStsTrackMatches |
TClonesArray * | fStsHits |
TClonesArray * | fMvdHits |
TClonesArray * | fTrdTracks |
TClonesArray * | fTrdTrackMatches |
TClonesArray * | fTrdHits |
TClonesArray * | fMuchTracks |
TClonesArray * | fMuchTrackMatches |
TClonesArray * | fMuchPixelHits |
TClonesArray * | fMuchStripHits |
CbmMCDataArray * | fMCTracks |
TClonesArray * | fEvents |
Double_t | fQuota |
CbmVertex * | fPrimVertex |
CbmStsKFTrackFitter | fKFFitter |
CbmLitMCTrackCreator * | fMCTrackCreator |
CbmLitDetectorSetup | fDet |
Track fit QA for track reconstruction.
Calculate residual and pull distributions for first and last track parameters of MVD/STS, TRD and MUCH for reconstructed tracks.
Definition at line 38 of file CbmLitFitQa.h.
CbmLitFitQa::CbmLitFitQa | ( | ) |
Constructor.
Definition at line 35 of file CbmLitFitQa.cxx.
|
virtual |
|
private |
|
private |
Definition at line 544 of file CbmLitFitQa.cxx.
References CbmHistManager::Add(), CreateResidualAndPullHistograms(), CreateTrackParamHistograms(), fHM, fPRangeBins, fPRangeMax, fPRangeMin, kMuch, kSts, and kTrd.
Referenced by Init().
|
private |
Definition at line 630 of file CbmLitFitQa.cxx.
References CbmHistManager::Add(), fDet, fHM, fIsFixedBounds, CbmLitDetectorSetup::GetDet(), and i.
Referenced by CreateHistograms().
|
private |
Definition at line 711 of file CbmLitFitQa.cxx.
References CbmHistManager::Add(), fDet, fHM, fIsFixedBounds, CbmLitDetectorSetup::GetDet(), and i.
Referenced by CreateHistograms().
|
virtual |
Inherited from FairTask.
Definition at line 80 of file CbmLitFitQa.cxx.
References CbmLitMCTrackCreator::Create(), fMCTrackCreator, ProcessGlobalTracks(), ProcessTrackMomentumAtVertex(), and ProcessTrackParamsAtVertex().
|
private |
Definition at line 346 of file CbmLitFitQa.cxx.
References fHM, CbmLitMCPoint::GetP(), CbmLitMCPoint::GetQp(), CbmLitMCPoint::GetQpOut(), CbmLitMCPoint::GetTx(), CbmLitMCPoint::GetTxOut(), CbmLitMCPoint::GetTy(), CbmLitMCPoint::GetTyOut(), CbmLitMCPoint::GetX(), CbmLitMCPoint::GetXOut(), CbmLitMCPoint::GetY(), CbmLitMCPoint::GetYOut(), CbmHistManager::H2(), kMuch, kMvd, kSts, kTrd, and sqrt().
Referenced by ProcessMuchTrack(), ProcessStsTrack(), and ProcessTrdTrack().
|
private |
Definition at line 417 of file CbmLitFitQa.cxx.
References fabs(), fHM, CbmHistManager::H1(), and sqrt().
Referenced by ProcessMuchTrack(), ProcessStsTrack(), and ProcessTrdTrack().
|
virtual |
Inherited from FairTask.
Definition at line 90 of file CbmLitFitQa.cxx.
References CbmSimulationReport::Create(), fHM, fOutputDir, CbmHistManager::ShrinkEmptyBinsH1ByPattern(), and CbmHistManager::WriteToFile().
|
virtual |
Inherited from FairTask.
Definition at line 70 of file CbmLitFitQa.cxx.
References CreateHistograms(), CbmLitDetectorSetup::DetermineSetup(), fDet, fHM, fKFFitter, fMCTrackCreator, CbmStsKFTrackFitter::Init(), CbmLitMCTrackCreator::Instance(), and ReadDataBranches().
|
private |
|
private |
Definition at line 144 of file CbmLitFitQa.cxx.
References fGlobalTracks, CbmGlobalTrack::GetMuchTrackIndex(), CbmGlobalTrack::GetStsTrackIndex(), CbmGlobalTrack::GetTrdTrackIndex(), ProcessMuchTrack(), ProcessStsTrack(), and ProcessTrdTrack().
Referenced by Exec().
|
private |
Definition at line 284 of file CbmLitFitQa.cxx.
References FillResidualsAndPulls(), FillTrackParamHistogramm(), fMCTrackCreator, fMuchMinNofHits, fMuchPixelHits, fMuchTrackMatches, fMuchTracks, fQuota, CbmHit::GetAddress(), CbmLink::GetEntry(), CbmTrack::GetHitIndex(), CbmLink::GetIndex(), CbmMuchGeoScheme::GetLayerIndex(), CbmMuchGeoScheme::GetLayerSideIndex(), CbmMatch::GetMatchedLink(), CbmTrack::GetNofHits(), CbmLitMCTrack::GetNofPointsAtStation(), CbmTrack::GetParamFirst(), CbmTrack::GetParamLast(), CbmLitMCTrack::GetPointAtStation(), CbmMuchGeoScheme::GetStationIndex(), CbmLitMCTrackCreator::GetTrack(), CbmTrackMatchNew::GetTrueOverAllHitsRatio(), and kMuch.
Referenced by ProcessGlobalTracks().
|
private |
Definition at line 155 of file CbmLitFitQa.cxx.
References FillResidualsAndPulls(), FillTrackParamHistogramm(), fMCTrackCreator, fMvdHits, fMvdMinNofHits, fQuota, fStsHits, fStsMinNofHits, fStsTrackMatches, fStsTracks, CbmHit::GetAddress(), CbmLink::GetEntry(), CbmTrack::GetHitIndex(), CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmStsTrack::GetMvdHitIndex(), CbmMatch::GetNofLinks(), CbmStsTrack::GetNofMvdHits(), CbmLitMCTrack::GetNofPointsAtStation(), CbmStsTrack::GetNofStsHits(), CbmTrack::GetParamFirst(), CbmTrack::GetParamLast(), CbmLitMCTrack::GetPointAtStation(), CbmMvdHit::GetStationNr(), CbmStsSetup::GetStationNumber(), CbmLitMCTrackCreator::GetTrack(), CbmTrackMatchNew::GetTrueOverAllHitsRatio(), CbmStsSetup::Instance(), kMvd, and kSts.
Referenced by ProcessGlobalTracks().
|
private |
Definition at line 483 of file CbmLitFitQa.cxx.
References fGlobalTracks, fHM, fMCTracks, fQuota, fStsTrackMatches, fStsTracks, CbmMCDataArray::Get(), CbmTrackParam::GetDpx(), CbmTrackParam::GetDpy(), CbmTrackParam::GetDpz(), CbmLink::GetEntry(), CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmMCTrack::GetMomentum(), CbmMCTrack::GetMotherId(), CbmMatch::GetNofLinks(), CbmMCTrack::GetP(), CbmGlobalTrack::GetParamVertex(), CbmTrackParam::GetPx(), CbmMCTrack::GetPx(), CbmTrackParam::GetPy(), CbmMCTrack::GetPy(), CbmTrackParam::GetPz(), CbmMCTrack::GetPz(), CbmGlobalTrack::GetStsTrackIndex(), CbmTrackMatchNew::GetTrueOverAllHitsRatio(), CbmHistManager::H1(), and i.
Referenced by Exec().
|
private |
|
private |
Definition at line 443 of file CbmLitFitQa.cxx.
References CbmStsKFTrackFitter::DoFit(), fHM, CbmStsKFTrackFitter::FitToVertex(), fKFFitter, fMCTracks, fPrimVertex, fQuota, fStsTrackMatches, fStsTracks, CbmMCDataArray::Get(), CbmStsKFTrackFitter::GetChiToVertex(), CbmLink::GetEntry(), CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmMCTrack::GetMomentum(), CbmMCTrack::GetMotherId(), CbmMatch::GetNofLinks(), CbmTrackMatchNew::GetTrueOverAllHitsRatio(), CbmHistManager::H1(), i, and kStsTrack.
|
private |
Definition at line 231 of file CbmLitFitQa.cxx.
References FillResidualsAndPulls(), FillTrackParamHistogramm(), fMCTrackCreator, fQuota, fTrdHits, fTrdMinNofHits, fTrdTrackMatches, fTrdTracks, CbmHit::GetAddress(), CbmLink::GetEntry(), CbmTrack::GetHitIndex(), CbmLink::GetIndex(), CbmTrdAddress::GetLayerId(), CbmMatch::GetMatchedLink(), CbmTrack::GetNofHits(), CbmLitMCTrack::GetNofPointsAtStation(), CbmTrack::GetParamFirst(), CbmTrack::GetParamLast(), CbmLitMCTrack::GetPointAtStation(), CbmLitMCTrackCreator::GetTrack(), CbmTrackMatchNew::GetTrueOverAllHitsRatio(), and kTrd.
Referenced by ProcessGlobalTracks().
|
private |
Reads data branches.
Definition at line 105 of file CbmLitFitQa.cxx.
References fEvents, fGlobalTracks, fMCTracks, fMuchPixelHits, fMuchStripHits, fMuchTrackMatches, fMuchTracks, fMvdHits, fPrimVertex, fStsHits, fStsTrackMatches, fStsTracks, fTrdHits, fTrdTrackMatches, fTrdTracks, CbmMCDataManager::GetObject(), and CbmMCDataManager::InitBranch().
Referenced by Init().
|
inline |
Definition at line 71 of file CbmLitFitQa.h.
References fIsFixedBounds.
|
inline |
Definition at line 69 of file CbmLitFitQa.h.
References fMuchMinNofHits.
|
inline |
Definition at line 66 of file CbmLitFitQa.h.
References fMvdMinNofHits.
|
inline |
Definition at line 70 of file CbmLitFitQa.h.
References fOutputDir.
|
inline |
Definition at line 73 of file CbmLitFitQa.h.
References fPRangeBins, fPRangeMax, fPRangeMin, max(), and min().
|
inline |
Definition at line 67 of file CbmLitFitQa.h.
References fStsMinNofHits.
|
inline |
Definition at line 68 of file CbmLitFitQa.h.
References fTrdMinNofHits.
|
private |
Definition at line 153 of file CbmLitFitQa.h.
Referenced by CreateResidualAndPullHistograms(), CreateTrackParamHistograms(), and Init().
|
private |
Definition at line 143 of file CbmLitFitQa.h.
Referenced by ProcessTrackParamsAtVertex(), and ReadDataBranches().
|
private |
Definition at line 130 of file CbmLitFitQa.h.
Referenced by ProcessGlobalTracks(), ProcessTrackMomentumAtVertex(), and ReadDataBranches().
|
private |
Definition at line 127 of file CbmLitFitQa.h.
Referenced by CreateHistograms(), CreateResidualAndPullHistograms(), CreateTrackParamHistograms(), FillResidualsAndPulls(), FillTrackParamHistogramm(), Finish(), Init(), ProcessTrackMomentumAtVertex(), ProcessTrackParamsAtVertex(), and ~CbmLitFitQa().
|
private |
Definition at line 114 of file CbmLitFitQa.h.
Referenced by CreateResidualAndPullHistograms(), CreateTrackParamHistograms(), and SetFixedBounds().
|
private |
Definition at line 149 of file CbmLitFitQa.h.
Referenced by Init(), and ProcessTrackParamsAtVertex().
|
private |
Definition at line 151 of file CbmLitFitQa.h.
Referenced by Exec(), Init(), ProcessMuchTrack(), ProcessStsTrack(), and ProcessTrdTrack().
|
private |
Definition at line 142 of file CbmLitFitQa.h.
Referenced by ProcessTrackMomentumAtVertex(), ProcessTrackParamsAtVertex(), and ReadDataBranches().
|
private |
Definition at line 119 of file CbmLitFitQa.h.
Referenced by ProcessMuchTrack(), and SetMuchMinNofHits().
|
private |
Definition at line 140 of file CbmLitFitQa.h.
Referenced by ProcessMuchTrack(), and ReadDataBranches().
|
private |
Definition at line 141 of file CbmLitFitQa.h.
Referenced by ReadDataBranches().
|
private |
Definition at line 139 of file CbmLitFitQa.h.
Referenced by ProcessMuchTrack(), and ReadDataBranches().
|
private |
Definition at line 138 of file CbmLitFitQa.h.
Referenced by ProcessMuchTrack(), and ReadDataBranches().
|
private |
Definition at line 134 of file CbmLitFitQa.h.
Referenced by ProcessStsTrack(), and ReadDataBranches().
|
private |
Definition at line 116 of file CbmLitFitQa.h.
Referenced by ProcessStsTrack(), and SetMvdMinNofHits().
|
private |
Definition at line 121 of file CbmLitFitQa.h.
Referenced by Finish(), and SetOutputDir().
|
private |
Definition at line 125 of file CbmLitFitQa.h.
Referenced by CreateHistograms(), and SetPRange().
|
private |
Definition at line 124 of file CbmLitFitQa.h.
Referenced by CreateHistograms(), and SetPRange().
|
private |
Definition at line 123 of file CbmLitFitQa.h.
Referenced by CreateHistograms(), and SetPRange().
|
private |
Definition at line 147 of file CbmLitFitQa.h.
Referenced by ProcessTrackParamsAtVertex(), and ReadDataBranches().
|
private |
Definition at line 145 of file CbmLitFitQa.h.
Referenced by ProcessMuchTrack(), ProcessStsTrack(), ProcessTrackMomentumAtVertex(), ProcessTrackParamsAtVertex(), and ProcessTrdTrack().
|
private |
Definition at line 133 of file CbmLitFitQa.h.
Referenced by ProcessStsTrack(), and ReadDataBranches().
|
private |
Definition at line 117 of file CbmLitFitQa.h.
Referenced by ProcessStsTrack(), and SetStsMinNofHits().
|
private |
Definition at line 132 of file CbmLitFitQa.h.
Referenced by ProcessStsTrack(), ProcessTrackMomentumAtVertex(), ProcessTrackParamsAtVertex(), and ReadDataBranches().
|
private |
Definition at line 131 of file CbmLitFitQa.h.
Referenced by ProcessStsTrack(), ProcessTrackMomentumAtVertex(), ProcessTrackParamsAtVertex(), and ReadDataBranches().
|
private |
Definition at line 137 of file CbmLitFitQa.h.
Referenced by ProcessTrdTrack(), and ReadDataBranches().
|
private |
Definition at line 118 of file CbmLitFitQa.h.
Referenced by ProcessTrdTrack(), and SetTrdMinNofHits().
|
private |
Definition at line 136 of file CbmLitFitQa.h.
Referenced by ProcessTrdTrack(), and ReadDataBranches().
|
private |
Definition at line 135 of file CbmLitFitQa.h.
Referenced by ProcessTrdTrack(), and ReadDataBranches().