CbmRoot
|
#include <CbmRichPMTMapping.h>
Public Member Functions | |
CbmRichPMTMapping () | |
virtual | ~CbmRichPMTMapping () |
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 | InitHist () |
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 () |
void | ProjectionProducer2 () |
void | CalculateSphereParameters (const Char_t *mirrID, Double_t &sphereX, Double_t &sphereY, Double_t &sphereZ, Double_t &sphereR) |
void | CalculateSphereParameters2 (const Char_t *mirrID, Double_t &sphereX, Double_t &sphereY, Double_t &sphereZ, Double_t &sphereR) |
void | GetPmtNormal (Int_t NofPMTPoints, Double_t &normalX, Double_t &normalY, Double_t &normalZ, Double_t &normalCste) |
void | RotateAndCopyHitsToRingLight (const CbmRichRing *ring1, CbmRichRingLight *ring2) |
void | DrawHist () |
void | DrawHistFromFile (TString fileName) |
void | SetOutputDir (TString dir) |
void | SetRunTitle (TString title) |
void | SetDrawHist (Bool_t b) |
Private Member Functions | |
CbmRichPMTMapping (const CbmRichPMTMapping &) | |
CbmRichPMTMapping | operator= (const CbmRichPMTMapping &) |
ClassDef (CbmRichPMTMapping, 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 |
CbmRichRecGeoPar | fGP |
UInt_t | fEventNum |
UInt_t | fCounterMapping |
UInt_t | fMirrCounter |
Bool_t | fDrawHist |
Bool_t | fIsMirrorUpperHalf |
Double_t | fArray [3] |
std::map< string, string > | fPathsMap |
std::map< string, string > | fPathsMapEllipse |
TString | fOutputDir |
TString | fRunTitle |
CbmRichRingFitterCOP * | fCopFit |
CbmRichRingFitterEllipseTau * | fTauFit |
Static Private Attributes | |
static const int | kMAX_NOF_HITS = 100 |
Definition at line 24 of file CbmRichPMTMapping.h.
CbmRichPMTMapping::CbmRichPMTMapping | ( | ) |
Definition at line 47 of file CbmRichPMTMapping.cxx.
References fArray, fCounterMapping, fMirrCounter, and i.
|
virtual |
Definition at line 77 of file CbmRichPMTMapping.cxx.
|
private |
void CbmRichPMTMapping::CalculateSphereParameters | ( | const Char_t * | mirrID, |
Double_t & | sphereX, | ||
Double_t & | sphereY, | ||
Double_t & | sphereZ, | ||
Double_t & | sphereR | ||
) |
Definition at line 1203 of file CbmRichPMTMapping.cxx.
References fIsMirrorUpperHalf.
Referenced by ProjectionProducer().
void CbmRichPMTMapping::CalculateSphereParameters2 | ( | const Char_t * | mirrID, |
Double_t & | sphereX, | ||
Double_t & | sphereY, | ||
Double_t & | sphereZ, | ||
Double_t & | sphereR | ||
) |
Definition at line 1285 of file CbmRichPMTMapping.cxx.
References fIsMirrorUpperHalf.
Referenced by ProjectionProducer(), and ProjectionProducer2().
|
private |
void CbmRichPMTMapping::DrawHist | ( | ) |
Definition at line 1395 of file CbmRichPMTMapping.cxx.
References DrawH1(), DrawH2(), fHM, fOutputDir, fRunTitle, CbmHistManager::H1(), CbmHistManager::H2(), and Cbm::SaveCanvasAsImage().
Referenced by DrawHistFromFile(), and Finish().
void CbmRichPMTMapping::DrawHistFromFile | ( | TString | fileName | ) |
Definition at line 1475 of file CbmRichPMTMapping.cxx.
References DrawHist(), fHM, and CbmHistManager::ReadFromFile().
|
virtual |
Inherited from FairTask.
Definition at line 275 of file CbmRichPMTMapping.cxx.
References fEventNum, fGP, fMCTracks, fRichHits, fRichMCPoints, fRichMirrorPoints, fRichRings, CbmRichHitProducer::Init(), CbmRichRecGeoPar::Print(), and ProjectionProducer2().
void CbmRichPMTMapping::FillPMTMap | ( | const Char_t * | mirr_path, |
CbmRichPoint * | pPoint | ||
) |
Definition at line 414 of file CbmRichPMTMapping.cxx.
References fHM, fMirrCounter, fPathsMap, and CbmHistManager::H2().
Referenced by MatchFinder().
void CbmRichPMTMapping::FillPMTMapEllipse | ( | const Char_t * | mirr_path, |
Float_t | CenterX, | ||
Float_t | CenterY | ||
) |
Definition at line 435 of file CbmRichPMTMapping.cxx.
References fHM, fPathsMap, and CbmHistManager::H2().
Referenced by MatchFinder().
|
virtual |
Inherited from FairTask.
Definition at line 1482 of file CbmRichPMTMapping.cxx.
References DrawHist(), fDrawHist, and fMirrCounter.
void CbmRichPMTMapping::GetPmtNormal | ( | Int_t | NofPMTPoints, |
Double_t & | normalX, | ||
Double_t & | normalY, | ||
Double_t & | normalZ, | ||
Double_t & | normalCste | ||
) |
Definition at line 1096 of file CbmRichPMTMapping.cxx.
References fMCTracks, fRichPoints, and CbmMCTrack::GetMotherId().
Referenced by ProjectionProducer(), and ProjectionProducer2().
|
virtual |
Inherited from FairTask.
Definition at line 79 of file CbmRichPMTMapping.cxx.
References fCopFit, fGlobalTracks, fMCTracks, fPathsMap, fPathsMapEllipse, fRichHits, fRichMCPoints, fRichMirrorPoints, fRichPoints, fRichProjections, fRichRefPlanePoints, fRichRingMatches, fRichRings, fTauFit, CbmRichConverter::Init(), and InitHist().
void CbmRichPMTMapping::InitHist | ( | ) |
Definition at line 215 of file CbmRichPMTMapping.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), fHM, fPathsMap, and fPathsMapEllipse.
Referenced by Init().
void CbmRichPMTMapping::MatchFinder | ( | ) |
Definition at line 331 of file CbmRichPMTMapping.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 CbmRichPMTMapping::ProjectionProducer | ( | ) |
Definition at line 755 of file CbmRichPMTMapping.cxx.
References CalculateSphereParameters(), CalculateSphereParameters2(), CbmRichConverter::CopyHitsToRingLight(), CbmRichRingFitterEllipseTau::DoFit(), fGlobalTracks, fHM, fIsMirrorUpperHalf, fMCTracks, fRichMirrorPoints, fRichPoints, fRichRefPlanePoints, fRichRings, fTauFit, CbmRichRingLight::GetCenterX(), CbmRichRingLight::GetCenterY(), CbmMCTrack::GetMotherId(), GetPmtNormal(), CbmGlobalTrack::GetRichRingIndex(), CbmHistManager::H1(), and CbmRichPoint::Print().
void CbmRichPMTMapping::ProjectionProducer2 | ( | ) |
Definition at line 456 of file CbmRichPMTMapping.cxx.
References CalculateSphereParameters2(), CbmRichConverter::CopyHitsToRingLight(), CbmRichRingFitterCOP::DoFit(), CbmRichRingFitterEllipseTau::DoFit(), fCopFit, fGlobalTracks, fGP, fHM, fIsMirrorUpperHalf, fMCTracks, CbmRichRecGeoParPmt::fPhi, CbmRichRecGeoPar::fPmt, fRichMirrorPoints, fRichPoints, fRichRefPlanePoints, fRichRings, fTauFit, CbmRichRecGeoParPmt::fTheta, CbmRichRingLight::GetCenterX(), CbmRichRingLight::GetCenterY(), CbmMCTrack::GetMotherId(), GetPmtNormal(), CbmGlobalTrack::GetRichRingIndex(), CbmHistManager::H1(), and CbmRichPoint::Print().
Referenced by Exec().
void CbmRichPMTMapping::RotateAndCopyHitsToRingLight | ( | const CbmRichRing * | ring1, |
CbmRichRingLight * | ring2 | ||
) |
Definition at line 1378 of file CbmRichPMTMapping.cxx.
References CbmRichRingLight::AddHit(), fGP, CbmRichRecGeoParPmt::fPhi, CbmRichRecGeoPar::fPmt, fRichHits, CbmRichRecGeoParPmt::fTheta, CbmRichRing::GetHit(), CbmRichRing::GetNofHits(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHit::GetZ(), and i.
|
inline |
Definition at line 133 of file CbmRichPMTMapping.h.
|
inline |
Definition at line 123 of file CbmRichPMTMapping.h.
|
inline |
Definition at line 128 of file CbmRichPMTMapping.h.
|
private |
Definition at line 155 of file CbmRichPMTMapping.h.
Referenced by CbmRichPMTMapping().
|
private |
Definition at line 163 of file CbmRichPMTMapping.h.
Referenced by Init(), and ProjectionProducer2().
|
private |
Definition at line 151 of file CbmRichPMTMapping.h.
Referenced by CbmRichPMTMapping().
|
private |
Definition at line 153 of file CbmRichPMTMapping.h.
Referenced by Finish().
|
private |
Definition at line 150 of file CbmRichPMTMapping.h.
Referenced by Exec().
|
private |
Definition at line 146 of file CbmRichPMTMapping.h.
Referenced by Init(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 148 of file CbmRichPMTMapping.h.
Referenced by Exec(), ProjectionProducer2(), and RotateAndCopyHitsToRingLight().
|
private |
Definition at line 147 of file CbmRichPMTMapping.h.
Referenced by DrawHist(), DrawHistFromFile(), FillPMTMap(), FillPMTMapEllipse(), InitHist(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 154 of file CbmRichPMTMapping.h.
Referenced by CalculateSphereParameters(), CalculateSphereParameters2(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 142 of file CbmRichPMTMapping.h.
Referenced by Exec(), GetPmtNormal(), Init(), MatchFinder(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 152 of file CbmRichPMTMapping.h.
Referenced by CbmRichPMTMapping(), FillPMTMap(), and Finish().
|
private |
Definition at line 160 of file CbmRichPMTMapping.h.
Referenced by DrawHist().
|
private |
Definition at line 157 of file CbmRichPMTMapping.h.
Referenced by FillPMTMap(), FillPMTMapEllipse(), Init(), and InitHist().
|
private |
Definition at line 158 of file CbmRichPMTMapping.h.
Referenced by Init(), and InitHist().
|
private |
Definition at line 137 of file CbmRichPMTMapping.h.
Referenced by Exec(), Init(), and RotateAndCopyHitsToRingLight().
|
private |
Definition at line 141 of file CbmRichPMTMapping.h.
Referenced by Exec(), Init(), and MatchFinder().
|
private |
Definition at line 139 of file CbmRichPMTMapping.h.
Referenced by Exec(), Init(), MatchFinder(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 145 of file CbmRichPMTMapping.h.
Referenced by GetPmtNormal(), Init(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 140 of file CbmRichPMTMapping.h.
Referenced by Init().
|
private |
Definition at line 144 of file CbmRichPMTMapping.h.
Referenced by Init(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 143 of file CbmRichPMTMapping.h.
Referenced by Init(), and MatchFinder().
|
private |
Definition at line 138 of file CbmRichPMTMapping.h.
Referenced by Exec(), Init(), MatchFinder(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 161 of file CbmRichPMTMapping.h.
Referenced by DrawHist().
|
private |
Definition at line 164 of file CbmRichPMTMapping.h.
Referenced by Init(), MatchFinder(), ProjectionProducer(), and ProjectionProducer2().
|
staticprivate |
Definition at line 26 of file CbmRichPMTMapping.h.