CbmRoot
|
#include <CbmRichCorrectionVector.h>
Public Member Functions | |
CbmRichCorrectionVector () | |
virtual | ~CbmRichCorrectionVector () |
virtual InitStatus | Init () |
Inherited from FairTask. More... | |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. More... | |
virtual void | Finish () |
Inherited from FairTask. More... | |
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 25 of file CbmRichCorrectionVector.h.
CbmRichCorrectionVector::CbmRichCorrectionVector | ( | ) |
Definition at line 48 of file CbmRichCorrectionVector.cxx.
References fArray, fMirrCounter, and i.
|
virtual |
Definition at line 84 of file CbmRichCorrectionVector.cxx.
|
private |
void CbmRichCorrectionVector::CalculateAnglesAndDrawDistrib | ( | ) |
Definition at line 398 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, xMath::Pi(), 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 1082 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 1023 of file CbmRichCorrectionVector.cxx.
Referenced by ProjectionProducer().
void CbmRichCorrectionVector::DrawFit | ( | vector< Double_t > & | outputFit, |
Int_t | thresh | ||
) |
Definition at line 1265 of file CbmRichCorrectionVector.cxx.
References fAxisRotTitle, fHM2, fOutputDir, fRunTitle, CbmHistManager::H2(), and Cbm::SaveCanvasAsImage().
Referenced by Finish().
void CbmRichCorrectionVector::DrawHistAlignment | ( | ) |
Definition at line 1234 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 | ) |
Definition at line 1568 of file CbmRichCorrectionVector.cxx.
References DrawHistMapping(), fHM, and CbmHistManager::ReadFromFile().
void CbmRichCorrectionVector::DrawHistMapping | ( | ) |
Definition at line 1470 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 1536 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 343 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 1125 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 562 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 583 of file CbmRichCorrectionVector.cxx.
References fHM, fPathsMap, and CbmHistManager::H2().
Referenced by MatchFinder().
|
virtual |
Inherited from FairTask.
Definition at line 1575 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 909 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 976 of file CbmRichCorrectionVector.cxx.
References d.
Referenced by ProjectionProducer().
void CbmRichCorrectionVector::GetPmtNormal | ( | Int_t | NofPMTPoints, |
vector< Double_t > & | normalPMT, | ||
Double_t & | normalCste | ||
) |
Definition at line 803 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 461 of file CbmRichCorrectionVector.cxx.
References fRichProjections, x, and y.
Referenced by CalculateAnglesAndDrawDistrib().
|
virtual |
Inherited from FairTask.
Definition at line 86 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 302 of file CbmRichCorrectionVector.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), and fHM2.
Referenced by Init().
void CbmRichCorrectionVector::InitHistProjection | ( | ) |
Definition at line 223 of file CbmRichCorrectionVector.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), fHM, fPathsMap, and fPathsMapEllipse.
Referenced by Init().
void CbmRichCorrectionVector::MatchFinder | ( | ) |
Definition at line 479 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 604 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(), CbmRichPoint::Print(), and CbmRichGeoManager::RotatePoint().
void CbmRichCorrectionVector::RotateAndCopyHitsToRingLight | ( | const CbmRichRing * | ring1, |
CbmRichRingLight * | ring2 | ||
) |
Definition at line 1217 of file CbmRichCorrectionVector.cxx.
References CbmRichRingLight::AddHit(), fRichHits, CbmRichRing::GetHit(), CbmRichRing::GetNofHits(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHit::GetZ(), and i.
|
inline |
Definition at line 193 of file CbmRichCorrectionVector.h.
|
inline |
Definition at line 198 of file CbmRichCorrectionVector.h.
|
inline |
Definition at line 199 of file CbmRichCorrectionVector.h.
|
inline |
Definition at line 200 of file CbmRichCorrectionVector.h.
|
inline |
Definition at line 202 of file CbmRichCorrectionVector.h.
|
inline |
Definition at line 183 of file CbmRichCorrectionVector.h.
|
inline |
Definition at line 188 of file CbmRichCorrectionVector.h.
|
private |
Definition at line 228 of file CbmRichCorrectionVector.h.
Referenced by CbmRichCorrectionVector().
|
private |
Definition at line 235 of file CbmRichCorrectionVector.h.
Referenced by DrawFit(), DrawHistAlignment(), and DrawHistProjection().
|
private |
Definition at line 237 of file CbmRichCorrectionVector.h.
Referenced by CalculateAnglesAndDrawDistrib(), FillHistProjection(), and Init().
|
private |
Definition at line 223 of file CbmRichCorrectionVector.h.
Referenced by Finish().
|
private |
Definition at line 224 of file CbmRichCorrectionVector.h.
Referenced by Finish().
|
private |
Definition at line 225 of file CbmRichCorrectionVector.h.
Referenced by Finish().
|
private |
Definition at line 221 of file CbmRichCorrectionVector.h.
Referenced by Exec().
|
private |
Definition at line 215 of file CbmRichCorrectionVector.h.
Referenced by FillHistProjection(), Init(), and ProjectionProducer().
|
private |
Definition at line 216 of file CbmRichCorrectionVector.h.
Referenced by DrawHistFromFile(), DrawHistMapping(), DrawHistProjection(), FillHistProjection(), FillPMTMap(), FillPMTMapEllipse(), Finish(), and InitHistProjection().
|
private |
Definition at line 217 of file CbmRichCorrectionVector.h.
Referenced by CalculateAnglesAndDrawDistrib(), DrawFit(), DrawHistAlignment(), Finish(), and InitHistAlignment().
|
private |
Definition at line 226 of file CbmRichCorrectionVector.h.
Referenced by ProjectionProducer().
|
private |
Definition at line 227 of file CbmRichCorrectionVector.h.
Referenced by ProjectionProducer().
|
private |
Definition at line 211 of file CbmRichCorrectionVector.h.
Referenced by Exec(), FillHistProjection(), GetPmtNormal(), Init(), MatchFinder(), and ProjectionProducer().
|
private |
Definition at line 222 of file CbmRichCorrectionVector.h.
Referenced by CbmRichCorrectionVector(), and FillPMTMap().
|
private |
Definition at line 233 of file CbmRichCorrectionVector.h.
Referenced by DrawFit(), DrawHistAlignment(), DrawHistMapping(), and DrawHistProjection().
|
private |
Definition at line 230 of file CbmRichCorrectionVector.h.
Referenced by FillPMTMap(), FillPMTMapEllipse(), Init(), and InitHistProjection().
|
private |
Definition at line 231 of file CbmRichCorrectionVector.h.
Referenced by Init(), and InitHistProjection().
|
private |
Definition at line 219 of file CbmRichCorrectionVector.h.
Referenced by CalculateAnglesAndDrawDistrib().
|
private |
Definition at line 206 of file CbmRichCorrectionVector.h.
Referenced by CalculateAnglesAndDrawDistrib(), Exec(), Init(), and RotateAndCopyHitsToRingLight().
|
private |
Definition at line 210 of file CbmRichCorrectionVector.h.
Referenced by Exec(), Init(), and MatchFinder().
|
private |
Definition at line 208 of file CbmRichCorrectionVector.h.
Referenced by Exec(), Init(), MatchFinder(), and ProjectionProducer().
|
private |
Definition at line 214 of file CbmRichCorrectionVector.h.
Referenced by GetPmtNormal(), Init(), and ProjectionProducer().
|
private |
Definition at line 209 of file CbmRichCorrectionVector.h.
Referenced by GetTrackPosition(), and Init().
|
private |
Definition at line 213 of file CbmRichCorrectionVector.h.
Referenced by Init(), and ProjectionProducer().
|
private |
Definition at line 212 of file CbmRichCorrectionVector.h.
Referenced by Init(), and MatchFinder().
|
private |
Definition at line 207 of file CbmRichCorrectionVector.h.
Referenced by CalculateAnglesAndDrawDistrib(), Exec(), FillHistProjection(), Init(), MatchFinder(), and ProjectionProducer().
|
private |
Definition at line 234 of file CbmRichCorrectionVector.h.
Referenced by DrawFit(), DrawHistAlignment(), DrawHistMapping(), and DrawHistProjection().
|
private |
Definition at line 238 of file CbmRichCorrectionVector.h.
Referenced by Init(), and MatchFinder().
|
staticprivate |
Definition at line 29 of file CbmRichCorrectionVector.h.
Referenced by CalculateAnglesAndDrawDistrib().