CbmRoot
|
#include <CbmRichMirrorSortingCorrection.h>
Public Member Functions | |
CbmRichMirrorSortingCorrection () | |
virtual | ~CbmRichMirrorSortingCorrection () |
virtual InitStatus | Init () |
Inherited from FairTask. More... | |
void | InitHistProjection () |
void | InitHistoMap () |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. More... | |
void | GetPmtNormal (Int_t NofPMTPoints, vector< Double_t > &normalPMT, Double_t &normalCste) |
void | ComputeR2 (vector< Double_t > &ptR2Center, vector< Double_t > &ptR2Mirr, vector< Double_t > ptM, vector< Double_t > ptC, vector< Double_t > ptR1, TGeoNavigator *navi, TString option, TString mirrorTileName) |
void | ComputeP (vector< Double_t > &ptPMirr, vector< Double_t > &ptPR2, vector< Double_t > normalPMT, vector< Double_t > ptM, vector< Double_t > ptR2Mirr, Double_t constantePMT) |
void | FillHistProjection (TVector3 outPosIdeal, TVector3 outPosUnCorr, TVector3 outPos, CbmRichRingLight ringLight, vector< Double_t > normalPMT, Double_t constantePMT, string str) |
void | DrawHistProjection () |
void | DrawMap (Int_t strX, Int_t strY) |
void | FillRingTrackDistance () |
bool | IsMcPrimaryElectron (const CbmMCTrack *mctrack) |
void | DrawRingTrackDistance (Int_t k) |
void | FillRingTrackDistanceCorr (const CbmRichRing *richRing, const FairTrackParam *pTrack, const CbmMCTrack *mcTrack) |
void | DrawRingTrackDistanceCorr () |
void | DrawDistanceComp () |
void | setOutputDir (TString s) |
void | setCorrectionTableDir (TString s) |
void | setStudyName (TString s) |
void | setThreshold (Int_t t) |
virtual void | Finish () |
Inherited from FairTask. More... | |
Private Member Functions | |
ClassDef (CbmRichMirrorSortingCorrection, 1) | |
Private Attributes | |
UInt_t | fEventNb |
CbmRichRingFitterCOP * | fCopFit |
CbmRichRingFitterEllipseTau * | fTauFit |
TString | fOutputDir |
TString | fCorrectionTableDir |
TString | fStudyName |
CbmHistManager * | fHM |
CbmHistManager * | fHM2 |
std::map< string, TH1D * > | fDiffHistoMap |
Double_t | fTrackCenterDistanceIdeal |
Double_t | fTrackCenterDistanceCorrected |
Double_t | fTrackCenterDistanceUncorrected |
TString | fCorrectionMatching |
Int_t | fThreshold |
TClonesArray * | fGlobalTracks |
TClonesArray * | fRichRings |
TClonesArray * | fMCTracks |
TClonesArray * | fMirrorPoints |
TClonesArray * | fRefPlanePoints |
TClonesArray * | fPmtPoints |
TClonesArray * | fRichProjections |
TClonesArray * | fTrackParams |
TClonesArray * | fRichRingMatches |
TClonesArray * | fStsTrackMatches |
Definition at line 18 of file CbmRichMirrorSortingCorrection.h.
CbmRichMirrorSortingCorrection::CbmRichMirrorSortingCorrection | ( | ) |
Definition at line 39 of file CbmRichMirrorSortingCorrection.cxx.
|
virtual |
Definition at line 66 of file CbmRichMirrorSortingCorrection.cxx.
|
private |
void CbmRichMirrorSortingCorrection::ComputeP | ( | vector< Double_t > & | ptPMirr, |
vector< Double_t > & | ptPR2, | ||
vector< Double_t > | normalPMT, | ||
vector< Double_t > | ptM, | ||
vector< Double_t > | ptR2Mirr, | ||
Double_t | constantePMT | ||
) |
Definition at line 939 of file CbmRichMirrorSortingCorrection.cxx.
Referenced by Exec().
void CbmRichMirrorSortingCorrection::ComputeR2 | ( | vector< Double_t > & | ptR2Center, |
vector< Double_t > & | ptR2Mirr, | ||
vector< Double_t > | ptM, | ||
vector< Double_t > | ptC, | ||
vector< Double_t > | ptR1, | ||
TGeoNavigator * | navi, | ||
TString | option, | ||
TString | mirrorTileName | ||
) |
Definition at line 780 of file CbmRichMirrorSortingCorrection.cxx.
References fCorrectionTableDir, x, y, and z2.
Referenced by Exec().
void CbmRichMirrorSortingCorrection::DrawDistanceComp | ( | ) |
Definition at line 1513 of file CbmRichMirrorSortingCorrection.cxx.
References CbmHistManager::CreateCanvas(), DrawH1andFitGauss(), fHM, and CbmHistManager::H1().
Referenced by Finish().
void CbmRichMirrorSortingCorrection::DrawHistProjection | ( | ) |
Definition at line 1186 of file CbmRichMirrorSortingCorrection.cxx.
void CbmRichMirrorSortingCorrection::DrawMap | ( | Int_t | strX, |
Int_t | strY | ||
) |
Definition at line 1120 of file CbmRichMirrorSortingCorrection.cxx.
References fDiffHistoMap, fOutputDir, fStudyName, fThreshold, i, and Cbm::SaveCanvasAsImage().
Referenced by DrawHistProjection().
void CbmRichMirrorSortingCorrection::DrawRingTrackDistance | ( | Int_t | k | ) |
Definition at line 1464 of file CbmRichMirrorSortingCorrection.cxx.
References CbmHistManager::CreateCanvas(), DrawH2WithProfile(), DrawH3Profile(), fHM, CbmHistManager::H2(), and CbmHistManager::H3().
Referenced by Finish().
void CbmRichMirrorSortingCorrection::DrawRingTrackDistanceCorr | ( | ) |
|
virtual |
Inherited from FairTask.
Definition at line 440 of file CbmRichMirrorSortingCorrection.cxx.
References ComputeP(), ComputeR2(), CbmRichConverter::CopyHitsToRingLight(), CbmRichRingFitterCOP::DoFit(), fCopFit, fCorrectionMatching, fEventNb, fGlobalTracks, FillHistProjection(), FillRingTrackDistance(), FillRingTrackDistanceCorr(), fMCTracks, fMirrorPoints, fPmtPoints, fRefPlanePoints, fRichProjections, fRichRingMatches, fRichRings, fStsTrackMatches, CbmRichRingLight::GetCenterX(), CbmRichRingLight::GetCenterY(), CbmLink::GetIndex(), CbmRichGeoManager::GetInstance(), CbmMatch::GetMatchedLink(), CbmMCTrack::GetMomentum(), CbmMCTrack::GetMotherId(), CbmTrackMatchNew::GetNofTrueHits(), CbmTrackMatchNew::GetNofWrongHits(), CbmMCTrack::GetPdgCode(), GetPmtNormal(), CbmGlobalTrack::GetRichRingIndex(), CbmGlobalTrack::GetStsTrackIndex(), pos, and CbmRichGeoManager::RotatePoint().
void CbmRichMirrorSortingCorrection::FillHistProjection | ( | TVector3 | outPosIdeal, |
TVector3 | outPosUnCorr, | ||
TVector3 | outPos, | ||
CbmRichRingLight | ringLight, | ||
vector< Double_t > | normalPMT, | ||
Double_t | constantePMT, | ||
string | str | ||
) |
Definition at line 981 of file CbmRichMirrorSortingCorrection.cxx.
References fDiffHistoMap, fHM, fTrackCenterDistanceCorrected, fTrackCenterDistanceIdeal, fTrackCenterDistanceUncorrected, CbmRichRingLight::GetCenterX(), CbmRichRingLight::GetCenterY(), and CbmHistManager::H1().
Referenced by Exec().
void CbmRichMirrorSortingCorrection::FillRingTrackDistance | ( | ) |
Definition at line 1379 of file CbmRichMirrorSortingCorrection.cxx.
References fGlobalTracks, fHM, fMCTracks, fRichRingMatches, fRichRings, fStsTrackMatches, CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmGlobalTrack::GetRichRingIndex(), CbmRichUtil::GetRingTrackDistance(), CbmRichUtil::GetRingTrackDistanceX(), CbmRichUtil::GetRingTrackDistanceY(), CbmGlobalTrack::GetStsTrackIndex(), CbmHistManager::H1(), CbmHistManager::H2(), CbmHistManager::H3(), and IsMcPrimaryElectron().
Referenced by Exec().
void CbmRichMirrorSortingCorrection::FillRingTrackDistanceCorr | ( | const CbmRichRing * | richRing, |
const FairTrackParam * | pTrack, | ||
const CbmMCTrack * | mcTrack | ||
) |
Definition at line 1428 of file CbmRichMirrorSortingCorrection.cxx.
References fHM, CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmHistManager::H1(), CbmHistManager::H2(), CbmHistManager::H3(), and IsMcPrimaryElectron().
Referenced by Exec().
|
virtual |
Inherited from FairTask.
Definition at line 1519 of file CbmRichMirrorSortingCorrection.cxx.
References DrawDistanceComp(), DrawRingTrackDistance(), fEventNb, fHM, fOutputDir, fStudyName, fTrackCenterDistanceCorrected, fTrackCenterDistanceIdeal, fTrackCenterDistanceUncorrected, CbmHistManager::SaveCanvasToImage(), and CbmHistManager::WriteToFile().
void CbmRichMirrorSortingCorrection::GetPmtNormal | ( | Int_t | NofPMTPoints, |
vector< Double_t > & | normalPMT, | ||
Double_t & | normalCste | ||
) |
Definition at line 674 of file CbmRichMirrorSortingCorrection.cxx.
References fMCTracks, fPmtPoints, and CbmMCTrack::GetMotherId().
Referenced by Exec().
|
virtual |
Inherited from FairTask.
Definition at line 68 of file CbmRichMirrorSortingCorrection.cxx.
References fCopFit, fGlobalTracks, fMCTracks, fMirrorPoints, fPmtPoints, fRefPlanePoints, fRichProjections, fRichRingMatches, fRichRings, fStsTrackMatches, fTauFit, fTrackParams, CbmRichConverter::Init(), InitHistoMap(), and InitHistProjection().
void CbmRichMirrorSortingCorrection::InitHistoMap | ( | ) |
Definition at line 217 of file CbmRichMirrorSortingCorrection.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), CbmHistManager::Create3(), fDiffHistoMap, fHM, and i.
Referenced by Init().
void CbmRichMirrorSortingCorrection::InitHistProjection | ( | ) |
Definition at line 134 of file CbmRichMirrorSortingCorrection.cxx.
References CbmHistManager::Create1(), and fHM.
Referenced by Init().
bool CbmRichMirrorSortingCorrection::IsMcPrimaryElectron | ( | const CbmMCTrack * | mctrack | ) |
Definition at line 1456 of file CbmRichMirrorSortingCorrection.cxx.
References CbmMCTrack::GetGeantProcessId(), and CbmMCTrack::GetPdgCode().
Referenced by FillRingTrackDistance(), and FillRingTrackDistanceCorr().
|
inline |
Definition at line 95 of file CbmRichMirrorSortingCorrection.h.
|
inline |
Definition at line 93 of file CbmRichMirrorSortingCorrection.h.
|
inline |
Definition at line 97 of file CbmRichMirrorSortingCorrection.h.
|
inline |
Definition at line 99 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 109 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 119 of file CbmRichMirrorSortingCorrection.h.
Referenced by Exec().
|
private |
Definition at line 112 of file CbmRichMirrorSortingCorrection.h.
Referenced by ComputeR2().
|
private |
Definition at line 115 of file CbmRichMirrorSortingCorrection.h.
Referenced by DrawMap(), FillHistProjection(), and InitHistoMap().
|
private |
Definition at line 108 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 122 of file CbmRichMirrorSortingCorrection.h.
Referenced by Exec(), FillRingTrackDistance(), and Init().
|
private |
Definition at line 114 of file CbmRichMirrorSortingCorrection.h.
Referenced by DrawDistanceComp(), DrawRingTrackDistance(), FillHistProjection(), FillRingTrackDistance(), FillRingTrackDistanceCorr(), Finish(), InitHistoMap(), and InitHistProjection().
|
private |
Definition at line 114 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 124 of file CbmRichMirrorSortingCorrection.h.
Referenced by Exec(), FillRingTrackDistance(), GetPmtNormal(), and Init().
|
private |
Definition at line 125 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 111 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 127 of file CbmRichMirrorSortingCorrection.h.
Referenced by Exec(), GetPmtNormal(), and Init().
|
private |
Definition at line 126 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 128 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 130 of file CbmRichMirrorSortingCorrection.h.
Referenced by Exec(), FillRingTrackDistance(), and Init().
|
private |
Definition at line 123 of file CbmRichMirrorSortingCorrection.h.
Referenced by Exec(), FillRingTrackDistance(), and Init().
|
private |
Definition at line 131 of file CbmRichMirrorSortingCorrection.h.
Referenced by Exec(), FillRingTrackDistance(), and Init().
|
private |
Definition at line 113 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 110 of file CbmRichMirrorSortingCorrection.h.
Referenced by Init().
|
private |
Definition at line 120 of file CbmRichMirrorSortingCorrection.h.
Referenced by DrawMap().
|
private |
Definition at line 117 of file CbmRichMirrorSortingCorrection.h.
Referenced by FillHistProjection(), and Finish().
|
private |
Definition at line 116 of file CbmRichMirrorSortingCorrection.h.
Referenced by FillHistProjection(), and Finish().
|
private |
Definition at line 118 of file CbmRichMirrorSortingCorrection.h.
Referenced by FillHistProjection(), and Finish().
|
private |
Definition at line 129 of file CbmRichMirrorSortingCorrection.h.
Referenced by Init().