CbmRoot
|
#include <CbmRichPMTMapping.h>
Public Member Functions | |
CbmRichPMTMapping () | |
virtual | ~CbmRichPMTMapping () |
virtual InitStatus | Init () |
Inherited from FairTask. | |
virtual void | Exec (Option_t *option) |
Inherited from FairTask. | |
virtual void | Finish () |
Inherited from FairTask. | |
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 29 of file CbmRichPMTMapping.h.
CbmRichPMTMapping::CbmRichPMTMapping | ( | ) |
Definition at line 52 of file CbmRichPMTMapping.cxx.
References fArray, fCounterMapping, and fMirrCounter.
|
virtual |
Definition at line 83 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 1026 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 1096 of file CbmRichPMTMapping.cxx.
References fIsMirrorUpperHalf.
Referenced by ProjectionProducer(), and ProjectionProducer2().
|
private |
void CbmRichPMTMapping::DrawHist | ( | ) |
Definition at line 1192 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 | ) |
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 1266 of file CbmRichPMTMapping.cxx.
References DrawHist(), fHM, and CbmHistManager::ReadFromFile().
|
virtual |
Inherited from FairTask.
Definition at line 231 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 368 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 387 of file CbmRichPMTMapping.cxx.
References fHM, fPathsMap, and CbmHistManager::H2().
Referenced by MatchFinder().
|
virtual |
Inherited from FairTask.
Definition at line 1282 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 937 of file CbmRichPMTMapping.cxx.
References fMCTracks, fRichPoints, and CbmMCTrack::GetMotherId().
Referenced by ProjectionProducer(), and ProjectionProducer2().
|
virtual |
Inherited from FairTask.
Definition at line 85 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 198 of file CbmRichPMTMapping.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), fHM, fPathsMap, and fPathsMapEllipse.
Referenced by Init().
void CbmRichPMTMapping::MatchFinder | ( | ) |
Definition at line 287 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 660 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 405 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 1176 of file CbmRichPMTMapping.cxx.
References CbmRichRingLight::AddHit(), fGP, CbmRichRecGeoParPmt::fPhi, CbmRichRecGeoPar::fPmt, fRichHits, CbmRichRecGeoParPmt::fTheta, CbmRichRing::GetHit(), CbmRichRing::GetNofHits(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), and CbmHit::GetZ().
|
inline |
Definition at line 126 of file CbmRichPMTMapping.h.
References fDrawHist.
|
inline |
Definition at line 116 of file CbmRichPMTMapping.h.
References fOutputDir.
|
inline |
Definition at line 121 of file CbmRichPMTMapping.h.
References fRunTitle.
|
private |
Definition at line 148 of file CbmRichPMTMapping.h.
Referenced by CbmRichPMTMapping().
|
private |
Definition at line 156 of file CbmRichPMTMapping.h.
Referenced by Init(), and ProjectionProducer2().
|
private |
Definition at line 144 of file CbmRichPMTMapping.h.
Referenced by CbmRichPMTMapping().
|
private |
Definition at line 146 of file CbmRichPMTMapping.h.
Referenced by Finish(), and SetDrawHist().
|
private |
Definition at line 143 of file CbmRichPMTMapping.h.
Referenced by Exec().
|
private |
Definition at line 139 of file CbmRichPMTMapping.h.
Referenced by Init(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 141 of file CbmRichPMTMapping.h.
Referenced by Exec(), ProjectionProducer2(), and RotateAndCopyHitsToRingLight().
|
private |
Definition at line 140 of file CbmRichPMTMapping.h.
Referenced by DrawHist(), DrawHistFromFile(), FillPMTMap(), FillPMTMapEllipse(), InitHist(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 147 of file CbmRichPMTMapping.h.
Referenced by CalculateSphereParameters(), CalculateSphereParameters2(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 135 of file CbmRichPMTMapping.h.
Referenced by Exec(), GetPmtNormal(), Init(), MatchFinder(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 145 of file CbmRichPMTMapping.h.
Referenced by CbmRichPMTMapping(), FillPMTMap(), and Finish().
|
private |
Definition at line 153 of file CbmRichPMTMapping.h.
Referenced by DrawHist(), and SetOutputDir().
|
private |
Definition at line 150 of file CbmRichPMTMapping.h.
Referenced by FillPMTMap(), FillPMTMapEllipse(), Init(), and InitHist().
|
private |
Definition at line 151 of file CbmRichPMTMapping.h.
Referenced by Init(), and InitHist().
|
private |
Definition at line 130 of file CbmRichPMTMapping.h.
Referenced by Exec(), Init(), and RotateAndCopyHitsToRingLight().
|
private |
Definition at line 134 of file CbmRichPMTMapping.h.
Referenced by Exec(), Init(), and MatchFinder().
|
private |
Definition at line 132 of file CbmRichPMTMapping.h.
Referenced by Exec(), Init(), MatchFinder(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 138 of file CbmRichPMTMapping.h.
Referenced by GetPmtNormal(), Init(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 133 of file CbmRichPMTMapping.h.
Referenced by Init().
|
private |
Definition at line 137 of file CbmRichPMTMapping.h.
Referenced by Init(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 136 of file CbmRichPMTMapping.h.
Referenced by Init(), and MatchFinder().
|
private |
Definition at line 131 of file CbmRichPMTMapping.h.
Referenced by Exec(), Init(), MatchFinder(), ProjectionProducer(), and ProjectionProducer2().
|
private |
Definition at line 154 of file CbmRichPMTMapping.h.
Referenced by DrawHist(), and SetRunTitle().
|
private |
Definition at line 157 of file CbmRichPMTMapping.h.
Referenced by Init(), MatchFinder(), ProjectionProducer(), and ProjectionProducer2().
|
staticprivate |
Definition at line 31 of file CbmRichPMTMapping.h.