CbmRoot
|
#include <CbmRichCorrectionVector.h>
Public Member Functions | |
CbmRichCorrectionVector () | |
virtual | ~CbmRichCorrectionVector () |
virtual InitStatus | Init () |
Inherited from FairTask. | |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. | |
virtual void | Finish () |
Inherited from FairTask. | |
void | InitHistProjection () |
void | InitHistAlignment () |
void | CalculateAnglesAndDrawDistrib () |
void | GetTrackPosition (Double_t &x, Double_t &y) |
void | MatchFinder () |
void | FillPMTMap (const Char_t *mirr_path, CbmRichPoint *pPoint) |
void | FillPMTMapEllipse (const Char_t *mirr_path, Float_t CenterX, Float_t CenterY) |
void | ProjectionProducer (TClonesArray *projectedPoint) |
void | GetPmtNormal (Int_t NofPMTPoints, vector< Double_t > &normalPMT, Double_t &normalCste) |
void | GetMeanSphereCenter (TGeoNavigator *navi, vector< Double_t > &ptC) |
void | GetMirrorIntersection (vector< Double_t > &ptM, vector< Double_t > ptR1, vector< Double_t > momR1, vector< Double_t > ptC, Double_t sphereRadius) |
void | ComputeR2 (vector< Double_t > &ptR2Center, vector< Double_t > &ptR2Mirr, vector< Double_t > ptM, vector< Double_t > ptC, vector< Double_t > ptR1) |
void | ComputeP (vector< Double_t > &ptPMirr, vector< Double_t > &ptPR2, vector< Double_t > normalPMT, vector< Double_t > ptM, vector< Double_t > ptR2Mirr, Double_t normalCste) |
void | FillHistProjection (TVector3 outPos, TVector3 outPosUnCorr, Int_t NofGlobalTracks, vector< Double_t > normalPMT, Double_t constantePMT) |
void | RotateAndCopyHitsToRingLight (const CbmRichRing *ring1, CbmRichRingLight *ring2) |
void | DrawHistAlignment () |
void | DrawFit (vector< Double_t > &outputFit, Int_t thresh) |
void | DrawHistMapping () |
void | DrawHistProjection () |
void | DrawHistFromFile (TString fileName) |
void | SetOutputDir (TString dir) |
void | SetRunTitle (TString title) |
void | SetAxisRotTitle (TString title) |
void | SetDrawAlignment (Bool_t b) |
void | SetDrawMapping (Bool_t b) |
void | SetDrawProjection (Bool_t b) |
void | SetIsReconstruction (Bool_t b) |
Private Member Functions | |
CbmRichCorrectionVector (const CbmRichCorrectionVector &) | |
CbmRichCorrectionVector | operator= (const CbmRichCorrectionVector &) |
ClassDef (CbmRichCorrectionVector, 1) | |
Private Attributes | |
TClonesArray * | fRichHits |
TClonesArray * | fRichRings |
TClonesArray * | fRichMirrorPoints |
TClonesArray * | fRichProjections |
TClonesArray * | fRichMCPoints |
TClonesArray * | fMCTracks |
TClonesArray * | fRichRingMatches |
TClonesArray * | fRichRefPlanePoints |
TClonesArray * | fRichPoints |
TClonesArray * | fGlobalTracks |
CbmHistManager * | fHM |
CbmHistManager * | fHM2 |
vector< Float_t > | fPhi |
UInt_t | fEventNum |
UInt_t | fMirrCounter |
Bool_t | fDrawAlignment |
Bool_t | fDrawMapping |
Bool_t | fDrawProjection |
Bool_t | fIsMeanCenter |
Bool_t | fIsReconstruction |
Double_t | fArray [3] |
std::map< string, string > | fPathsMap |
std::map< string, string > | fPathsMapEllipse |
TString | fOutputDir |
TString | fRunTitle |
TString | fAxisRotTitle |
CbmRichRingFitterCOP * | fCopFit |
CbmRichRingFitterEllipseTau * | fTauFit |
Static Private Attributes | |
static const int | kMAX_NOF_HITS = 100 |
Definition at line 30 of file CbmRichCorrectionVector.h.
CbmRichCorrectionVector::CbmRichCorrectionVector | ( | ) |
Definition at line 54 of file CbmRichCorrectionVector.cxx.
References fArray, and fMirrCounter.
|
virtual |
Definition at line 91 of file CbmRichCorrectionVector.cxx.
|
private |
void CbmRichCorrectionVector::CalculateAnglesAndDrawDistrib | ( | ) |
Definition at line 323 of file CbmRichCorrectionVector.cxx.
References CbmRichConverter::CopyHitsToRingLight(), CbmRichRingFitterCOP::DoFit(), fCopFit, fHM2, fPhi, fRichHits, fRichRings, CbmRichRingLight::GetCenterX(), CbmRichRingLight::GetCenterY(), CbmRichRing::GetHit(), CbmRichRingLight::GetNofHits(), GetTrackPosition(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHistManager::H1(), CbmHistManager::H2(), kMAX_NOF_HITS, and sqrt().
Referenced by Exec().
|
private |
void CbmRichCorrectionVector::ComputeP | ( | vector< Double_t > & | ptPMirr, |
vector< Double_t > & | ptPR2, | ||
vector< Double_t > | normalPMT, | ||
vector< Double_t > | ptM, | ||
vector< Double_t > | ptR2Mirr, | ||
Double_t | normalCste ) |
Definition at line 933 of file CbmRichCorrectionVector.cxx.
Referenced by ProjectionProducer().
void CbmRichCorrectionVector::ComputeR2 | ( | vector< Double_t > & | ptR2Center, |
vector< Double_t > & | ptR2Mirr, | ||
vector< Double_t > | ptM, | ||
vector< Double_t > | ptC, | ||
vector< Double_t > | ptR1 ) |
Definition at line 886 of file CbmRichCorrectionVector.cxx.
Referenced by ProjectionProducer().
void CbmRichCorrectionVector::DrawFit | ( | vector< Double_t > & | outputFit, |
Int_t | thresh ) |
Definition at line 1093 of file CbmRichCorrectionVector.cxx.
References fAxisRotTitle, fHM2, fOutputDir, fRunTitle, CbmHistManager::H2(), and Cbm::SaveCanvasAsImage().
Referenced by Finish().
void CbmRichCorrectionVector::DrawHistAlignment | ( | ) |
Definition at line 1063 of file CbmRichCorrectionVector.cxx.
References DrawH1(), DrawH2(), fAxisRotTitle, fHM2, fOutputDir, fRunTitle, CbmHistManager::H1(), CbmHistManager::H2(), and Cbm::SaveCanvasAsImage().
Referenced by Finish().
void CbmRichCorrectionVector::DrawHistFromFile | ( | TString | fileName | ) |
Save old global file and folder pointer to avoid messing with FairRoot
Restore old global file and folder pointer to avoid messing with FairRoot
Definition at line 1379 of file CbmRichCorrectionVector.cxx.
References DrawHistMapping(), fHM, and CbmHistManager::ReadFromFile().
void CbmRichCorrectionVector::DrawHistMapping | ( | ) |
Definition at line 1289 of file CbmRichCorrectionVector.cxx.
References DrawH2(), fHM, fOutputDir, fRunTitle, CbmHistManager::H2(), and Cbm::SaveCanvasAsImage().
Referenced by DrawHistFromFile(), and Finish().
void CbmRichCorrectionVector::DrawHistProjection | ( | ) |
Definition at line 1352 of file CbmRichCorrectionVector.cxx.
References DrawH1(), fAxisRotTitle, fHM, fOutputDir, fRunTitle, CbmHistManager::H1(), and Cbm::SaveCanvasAsImage().
Referenced by Finish().
|
virtual |
Inherited from FairTask.
Definition at line 268 of file CbmRichCorrectionVector.cxx.
References CalculateAnglesAndDrawDistrib(), fEventNum, fMCTracks, fRichHits, fRichMCPoints, fRichMirrorPoints, and fRichRings.
void CbmRichCorrectionVector::FillHistProjection | ( | TVector3 | outPos, |
TVector3 | outPosUnCorr, | ||
Int_t | NofGlobalTracks, | ||
vector< Double_t > | normalPMT, | ||
Double_t | constantePMT ) |
Definition at line 970 of file CbmRichCorrectionVector.cxx.
References CbmRichConverter::CopyHitsToRingLight(), CbmRichRingFitterCOP::DoFit(), fCopFit, fGlobalTracks, fHM, fMCTracks, fRichRings, CbmRichRingLight::GetCenterX(), CbmRichRingLight::GetCenterY(), CbmMCTrack::GetMotherId(), CbmGlobalTrack::GetRichRingIndex(), and CbmHistManager::H1().
Referenced by ProjectionProducer().
void CbmRichCorrectionVector::FillPMTMap | ( | const Char_t * | mirr_path, |
CbmRichPoint * | pPoint ) |
Definition at line 483 of file CbmRichCorrectionVector.cxx.
References fHM, fMirrCounter, fPathsMap, and CbmHistManager::H2().
Referenced by MatchFinder().
void CbmRichCorrectionVector::FillPMTMapEllipse | ( | const Char_t * | mirr_path, |
Float_t | CenterX, | ||
Float_t | CenterY ) |
Definition at line 502 of file CbmRichCorrectionVector.cxx.
References fHM, fPathsMap, and CbmHistManager::H2().
Referenced by MatchFinder().
|
virtual |
Inherited from FairTask.
Definition at line 1397 of file CbmRichCorrectionVector.cxx.
References CbmHistManager::Create2(), DrawFit(), DrawHistAlignment(), DrawHistMapping(), DrawHistProjection(), fDrawAlignment, fDrawMapping, fDrawProjection, fHM, fHM2, and CbmHistManager::H1().
void CbmRichCorrectionVector::GetMeanSphereCenter | ( | TGeoNavigator * | navi, |
vector< Double_t > & | ptC ) |
Definition at line 785 of file CbmRichCorrectionVector.cxx.
References counter.
Referenced by ProjectionProducer().
void CbmRichCorrectionVector::GetMirrorIntersection | ( | vector< Double_t > & | ptM, |
vector< Double_t > | ptR1, | ||
vector< Double_t > | momR1, | ||
vector< Double_t > | ptC, | ||
Double_t | sphereRadius ) |
Definition at line 843 of file CbmRichCorrectionVector.cxx.
Referenced by ProjectionProducer().
void CbmRichCorrectionVector::GetPmtNormal | ( | Int_t | NofPMTPoints, |
vector< Double_t > & | normalPMT, | ||
Double_t & | normalCste ) |
Definition at line 695 of file CbmRichCorrectionVector.cxx.
References fMCTracks, fRichPoints, and CbmMCTrack::GetMotherId().
Referenced by ProjectionProducer().
void CbmRichCorrectionVector::GetTrackPosition | ( | Double_t & | x, |
Double_t & | y ) |
Definition at line 383 of file CbmRichCorrectionVector.cxx.
References fRichProjections, x, and y.
Referenced by CalculateAnglesAndDrawDistrib().
|
virtual |
Inherited from FairTask.
Definition at line 93 of file CbmRichCorrectionVector.cxx.
References fCopFit, fGlobalTracks, fMCTracks, fPathsMap, fPathsMapEllipse, fRichHits, fRichMCPoints, fRichMirrorPoints, fRichPoints, fRichProjections, fRichRefPlanePoints, fRichRingMatches, fRichRings, fTauFit, CbmRichConverter::Init(), InitHistAlignment(), and InitHistProjection().
void CbmRichCorrectionVector::InitHistAlignment | ( | ) |
Definition at line 252 of file CbmRichCorrectionVector.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), and fHM2.
Referenced by Init().
void CbmRichCorrectionVector::InitHistProjection | ( | ) |
Definition at line 207 of file CbmRichCorrectionVector.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), fHM, fPathsMap, and fPathsMapEllipse.
Referenced by Init().
void CbmRichCorrectionVector::MatchFinder | ( | ) |
Definition at line 402 of file CbmRichCorrectionVector.cxx.
References CbmRichConverter::CopyHitsToRingLight(), CbmRichRingFitterEllipseTau::DoFit(), FillPMTMap(), FillPMTMapEllipse(), fMCTracks, fRichMCPoints, fRichMirrorPoints, fRichRingMatches, fRichRings, fTauFit, CbmRichRingLight::GetCenterX(), CbmRichRingLight::GetCenterY(), CbmLink::GetIndex(), CbmMatch::GetMatchedLink(), CbmMCTrack::GetMotherId(), and CbmMCTrack::GetPdgCode().
|
private |
void CbmRichCorrectionVector::ProjectionProducer | ( | TClonesArray * | projectedPoint | ) |
Definition at line 520 of file CbmRichCorrectionVector.cxx.
References ComputeP(), ComputeR2(), fGlobalTracks, CbmRichGeoManager::fGP, CbmRichRecGeoParPmt::fHeight, FillHistProjection(), fIsMeanCenter, fIsReconstruction, fMCTracks, CbmRichRecGeoPar::fMirrorX, CbmRichRecGeoParPmt::fPlaneX, CbmRichRecGeoParPmt::fPlaneY, CbmRichRecGeoPar::fPmt, fRichMirrorPoints, fRichPoints, fRichRefPlanePoints, fRichRings, CbmRichRecGeoParPmt::fWidth, CbmRichGeoManager::GetInstance(), GetMeanSphereCenter(), GetMirrorIntersection(), CbmMCTrack::GetMotherId(), GetPmtNormal(), and CbmRichGeoManager::RotatePoint().
void CbmRichCorrectionVector::RotateAndCopyHitsToRingLight | ( | const CbmRichRing * | ring1, |
CbmRichRingLight * | ring2 ) |
Definition at line 1047 of file CbmRichCorrectionVector.cxx.
References CbmRichRingLight::AddHit(), fRichHits, CbmRichRing::GetHit(), CbmRichRing::GetNofHits(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), and CbmHit::GetZ().
|
inline |
Definition at line 181 of file CbmRichCorrectionVector.h.
References fAxisRotTitle.
|
inline |
Definition at line 186 of file CbmRichCorrectionVector.h.
References fDrawAlignment.
|
inline |
Definition at line 187 of file CbmRichCorrectionVector.h.
References fDrawMapping.
|
inline |
Definition at line 188 of file CbmRichCorrectionVector.h.
References fDrawProjection.
|
inline |
Definition at line 190 of file CbmRichCorrectionVector.h.
References fIsReconstruction.
|
inline |
Definition at line 171 of file CbmRichCorrectionVector.h.
References fOutputDir.
|
inline |
Definition at line 176 of file CbmRichCorrectionVector.h.
References fRunTitle.
|
private |
Definition at line 216 of file CbmRichCorrectionVector.h.
Referenced by CbmRichCorrectionVector().
|
private |
Definition at line 223 of file CbmRichCorrectionVector.h.
Referenced by DrawFit(), DrawHistAlignment(), DrawHistProjection(), and SetAxisRotTitle().
|
private |
Definition at line 225 of file CbmRichCorrectionVector.h.
Referenced by CalculateAnglesAndDrawDistrib(), FillHistProjection(), and Init().
|
private |
Definition at line 211 of file CbmRichCorrectionVector.h.
Referenced by Finish(), and SetDrawAlignment().
|
private |
Definition at line 212 of file CbmRichCorrectionVector.h.
Referenced by Finish(), and SetDrawMapping().
|
private |
Definition at line 213 of file CbmRichCorrectionVector.h.
Referenced by Finish(), and SetDrawProjection().
|
private |
Definition at line 209 of file CbmRichCorrectionVector.h.
Referenced by Exec().
|
private |
Definition at line 203 of file CbmRichCorrectionVector.h.
Referenced by FillHistProjection(), Init(), and ProjectionProducer().
|
private |
Definition at line 204 of file CbmRichCorrectionVector.h.
Referenced by DrawHistFromFile(), DrawHistMapping(), DrawHistProjection(), FillHistProjection(), FillPMTMap(), FillPMTMapEllipse(), Finish(), and InitHistProjection().
|
private |
Definition at line 205 of file CbmRichCorrectionVector.h.
Referenced by CalculateAnglesAndDrawDistrib(), DrawFit(), DrawHistAlignment(), Finish(), and InitHistAlignment().
|
private |
Definition at line 214 of file CbmRichCorrectionVector.h.
Referenced by ProjectionProducer().
|
private |
Definition at line 215 of file CbmRichCorrectionVector.h.
Referenced by ProjectionProducer(), and SetIsReconstruction().
|
private |
Definition at line 199 of file CbmRichCorrectionVector.h.
Referenced by Exec(), FillHistProjection(), GetPmtNormal(), Init(), MatchFinder(), and ProjectionProducer().
|
private |
Definition at line 210 of file CbmRichCorrectionVector.h.
Referenced by CbmRichCorrectionVector(), and FillPMTMap().
|
private |
Definition at line 221 of file CbmRichCorrectionVector.h.
Referenced by DrawFit(), DrawHistAlignment(), DrawHistMapping(), DrawHistProjection(), and SetOutputDir().
|
private |
Definition at line 218 of file CbmRichCorrectionVector.h.
Referenced by FillPMTMap(), FillPMTMapEllipse(), Init(), and InitHistProjection().
|
private |
Definition at line 219 of file CbmRichCorrectionVector.h.
Referenced by Init(), and InitHistProjection().
|
private |
Definition at line 207 of file CbmRichCorrectionVector.h.
Referenced by CalculateAnglesAndDrawDistrib().
|
private |
Definition at line 194 of file CbmRichCorrectionVector.h.
Referenced by CalculateAnglesAndDrawDistrib(), Exec(), Init(), and RotateAndCopyHitsToRingLight().
|
private |
Definition at line 198 of file CbmRichCorrectionVector.h.
Referenced by Exec(), Init(), and MatchFinder().
|
private |
Definition at line 196 of file CbmRichCorrectionVector.h.
Referenced by Exec(), Init(), MatchFinder(), and ProjectionProducer().
|
private |
Definition at line 202 of file CbmRichCorrectionVector.h.
Referenced by GetPmtNormal(), Init(), and ProjectionProducer().
|
private |
Definition at line 197 of file CbmRichCorrectionVector.h.
Referenced by GetTrackPosition(), and Init().
|
private |
Definition at line 201 of file CbmRichCorrectionVector.h.
Referenced by Init(), and ProjectionProducer().
|
private |
Definition at line 200 of file CbmRichCorrectionVector.h.
Referenced by Init(), and MatchFinder().
|
private |
Definition at line 195 of file CbmRichCorrectionVector.h.
Referenced by CalculateAnglesAndDrawDistrib(), Exec(), FillHistProjection(), Init(), MatchFinder(), and ProjectionProducer().
|
private |
Definition at line 222 of file CbmRichCorrectionVector.h.
Referenced by DrawFit(), DrawHistAlignment(), DrawHistMapping(), DrawHistProjection(), and SetRunTitle().
|
private |
Definition at line 226 of file CbmRichCorrectionVector.h.
Referenced by Init(), and MatchFinder().
|
staticprivate |
Definition at line 34 of file CbmRichCorrectionVector.h.
Referenced by CalculateAnglesAndDrawDistrib().