CbmRoot
|
#include <CbmRichMirrorSortingCorrection.h>
Public Member Functions | |
CbmRichMirrorSortingCorrection () | |
virtual | ~CbmRichMirrorSortingCorrection () |
virtual InitStatus | Init () |
Inherited from FairTask. | |
void | InitHistProjection () |
void | InitHistoMap () |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. | |
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. | |
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 22 of file CbmRichMirrorSortingCorrection.h.
CbmRichMirrorSortingCorrection::CbmRichMirrorSortingCorrection | ( | ) |
Definition at line 47 of file CbmRichMirrorSortingCorrection.cxx.
|
virtual |
Definition at line 76 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 751 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 610 of file CbmRichMirrorSortingCorrection.cxx.
References fCorrectionTableDir, x, and y.
Referenced by Exec().
void CbmRichMirrorSortingCorrection::DrawDistanceComp | ( | ) |
Definition at line 1262 of file CbmRichMirrorSortingCorrection.cxx.
References CbmHistManager::CreateCanvas(), DrawH1andFitGauss(), fHM, and CbmHistManager::H1().
Referenced by Finish().
void CbmRichMirrorSortingCorrection::DrawHistProjection | ( | ) |
Definition at line 963 of file CbmRichMirrorSortingCorrection.cxx.
References DrawMap().
void CbmRichMirrorSortingCorrection::DrawMap | ( | Int_t | strX, |
Int_t | strY ) |
Definition at line 902 of file CbmRichMirrorSortingCorrection.cxx.
References fDiffHistoMap, fOutputDir, fStudyName, fThreshold, and Cbm::SaveCanvasAsImage().
Referenced by DrawHistProjection().
void CbmRichMirrorSortingCorrection::DrawRingTrackDistance | ( | Int_t | k | ) |
Definition at line 1232 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 332 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 788 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 1156 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 1198 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 1268 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 520 of file CbmRichMirrorSortingCorrection.cxx.
References fMCTracks, fPmtPoints, and CbmMCTrack::GetMotherId().
Referenced by Exec().
|
virtual |
Inherited from FairTask.
Definition at line 78 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 183 of file CbmRichMirrorSortingCorrection.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), CbmHistManager::Create3(), fDiffHistoMap, and fHM.
Referenced by Init().
void CbmRichMirrorSortingCorrection::InitHistProjection | ( | ) |
Definition at line 143 of file CbmRichMirrorSortingCorrection.cxx.
References CbmHistManager::Create1(), and fHM.
Referenced by Init().
bool CbmRichMirrorSortingCorrection::IsMcPrimaryElectron | ( | const CbmMCTrack * | mctrack | ) |
Definition at line 1224 of file CbmRichMirrorSortingCorrection.cxx.
References CbmMCTrack::GetGeantProcessId(), and CbmMCTrack::GetPdgCode().
Referenced by FillRingTrackDistance(), and FillRingTrackDistanceCorr().
|
inline |
Definition at line 80 of file CbmRichMirrorSortingCorrection.h.
References fCorrectionTableDir.
|
inline |
Definition at line 78 of file CbmRichMirrorSortingCorrection.h.
References fOutputDir.
|
inline |
Definition at line 82 of file CbmRichMirrorSortingCorrection.h.
References fStudyName.
|
inline |
Definition at line 84 of file CbmRichMirrorSortingCorrection.h.
References fThreshold.
|
private |
Definition at line 94 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 104 of file CbmRichMirrorSortingCorrection.h.
Referenced by Exec().
|
private |
Definition at line 97 of file CbmRichMirrorSortingCorrection.h.
Referenced by ComputeR2(), and setCorrectionTableDir().
|
private |
Definition at line 100 of file CbmRichMirrorSortingCorrection.h.
Referenced by DrawMap(), FillHistProjection(), and InitHistoMap().
|
private |
Definition at line 93 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 107 of file CbmRichMirrorSortingCorrection.h.
Referenced by Exec(), FillRingTrackDistance(), and Init().
|
private |
Definition at line 99 of file CbmRichMirrorSortingCorrection.h.
Referenced by DrawDistanceComp(), DrawRingTrackDistance(), FillHistProjection(), FillRingTrackDistance(), FillRingTrackDistanceCorr(), Finish(), InitHistoMap(), and InitHistProjection().
|
private |
Definition at line 99 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 109 of file CbmRichMirrorSortingCorrection.h.
Referenced by Exec(), FillRingTrackDistance(), GetPmtNormal(), and Init().
|
private |
Definition at line 110 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 96 of file CbmRichMirrorSortingCorrection.h.
Referenced by DrawMap(), Finish(), and setOutputDir().
|
private |
Definition at line 112 of file CbmRichMirrorSortingCorrection.h.
Referenced by Exec(), GetPmtNormal(), and Init().
|
private |
Definition at line 111 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 113 of file CbmRichMirrorSortingCorrection.h.
|
private |
Definition at line 115 of file CbmRichMirrorSortingCorrection.h.
Referenced by Exec(), FillRingTrackDistance(), and Init().
|
private |
Definition at line 108 of file CbmRichMirrorSortingCorrection.h.
Referenced by Exec(), FillRingTrackDistance(), and Init().
|
private |
Definition at line 116 of file CbmRichMirrorSortingCorrection.h.
Referenced by Exec(), FillRingTrackDistance(), and Init().
|
private |
Definition at line 98 of file CbmRichMirrorSortingCorrection.h.
Referenced by DrawMap(), Finish(), and setStudyName().
|
private |
Definition at line 95 of file CbmRichMirrorSortingCorrection.h.
Referenced by Init().
|
private |
Definition at line 105 of file CbmRichMirrorSortingCorrection.h.
Referenced by DrawMap(), and setThreshold().
|
private |
Definition at line 102 of file CbmRichMirrorSortingCorrection.h.
Referenced by FillHistProjection(), and Finish().
|
private |
Definition at line 101 of file CbmRichMirrorSortingCorrection.h.
Referenced by FillHistProjection(), and Finish().
|
private |
Definition at line 103 of file CbmRichMirrorSortingCorrection.h.
Referenced by FillHistProjection(), and Finish().
|
private |
Definition at line 114 of file CbmRichMirrorSortingCorrection.h.
Referenced by Init().