EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbmRichUrqmdTest Class Reference

RICH geometry testing in Urqmd collisions. More...

#include <EicRoot/blob/master/rich/qa/CbmRichUrqmdTest.h>

+ Inheritance diagram for CbmRichUrqmdTest:
+ Collaboration diagram for CbmRichUrqmdTest:

Public Member Functions

 CbmRichUrqmdTest ()
 Standard constructor.
 
virtual ~CbmRichUrqmdTest ()
 Standard destructor.
 
virtual InitStatus Init ()
 Inherited from FairTask.
 
virtual void Exec (Option_t *option)
 Inherited from FairTask.
 
virtual void Finish ()
 Inherited from FairTask.
 
void SetOutputDir (const string &dir)
 Set output directory where you want to write results (figures and json).
 
- Public Member Functions inherited from FairTask
 FairTask ()
 
 FairTask (const char *name, Int_t iVerbose=1)
 
virtual ~FairTask ()
 
void InitTask ()
 
void ReInitTask ()
 
void SetParTask ()
 
virtual void FinishTask ()
 
virtual void FinishEvent ()
 
void SetVerbose (Int_t iVerbose)
 
void SetInputPersistance (Bool_t val)
 
void CheckInputPersistance (TString branchName)
 

Private Member Functions

void InitHistograms ()
 Initialize histograms.
 
void FillRichRingNofHits ()
 
void NofRings ()
 
void NofHits ()
 
void NofProjections ()
 
void Vertex ()
 
void DrawHist ()
 Draw histograms.
 
TCanvas * CreateCanvas (const string &name, const string &title, int width, int height)
 
void SaveCanvasToImage ()
 
 CbmRichUrqmdTest (const CbmRichUrqmdTest &)
 Copy constructor.
 
CbmRichUrqmdTestoperator= (const CbmRichUrqmdTest &)
 Assignment operator.
 

Private Attributes

string fOutputDir
 
TClonesArray * fRichHits
 
TClonesArray * fRichRings
 
TClonesArray * fRichPoints
 
TClonesArray * fMcTracks
 
TClonesArray * fRichRingMatches
 
TClonesArray * fRichProjections
 
vector< TCanvas * > fCanvas
 
Int_t fEventNum
 
Int_t fMinNofHits
 
std::map< Int_t, Int_t > fNofHitsInRingMap
 
TH1 * fh_vertex_z
 
TH1 * fh_nof_rings_1hit
 
TH1 * fh_nof_rings_7hits
 
TH1 * fh_nof_rings_prim_1hit
 
TH1 * fh_nof_rings_prim_7hits
 
TH1 * fh_nof_rings_target_1hit
 
TH1 * fh_nof_rings_target_7hits
 
TH1 * fh_secel_mom
 
TH1 * fh_gamma_target_mom
 
TH1 * fh_gamma_nontarget_mom
 
TH1 * fh_pi_mom
 
TH1 * fh_kaon_mom
 
TH1 * fh_mu_mom
 
TH1 * fh_nof_hits_per_event
 
TH2D * fh_hits_xy_u
 
TH2D * fh_hits_xy_d
 
TH2D * fh_hitrate_xy_u
 
TH2D * fh_hitrate_xy_d
 
TH1 * fh_nof_proj_per_event
 
TH2D * fh_proj_xy_u
 
TH2D * fh_proj_xy_d
 
vector< TH1 * > fHists
 

Additional Inherited Members

- Protected Member Functions inherited from FairTask
virtual InitStatus ReInit ()
 
virtual void SetParContainers ()
 
void InitTasks ()
 
void ReInitTasks ()
 
void SetParTasks ()
 
void FinishTasks ()
 
void FinishEvents ()
 
- Protected Attributes inherited from FairTask
Int_t fVerbose
 
Int_t fInputPersistance
 Indicates if input branch is persistant.
 
FairLoggerfLogger
 

Detailed Description

RICH geometry testing in Urqmd collisions.

Author
Semen Lebedev s.leb.nosp@m.edev.nosp@m.@gsi..nosp@m.de
Date
2012

Definition at line 35 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 35 of file CbmRichUrqmdTest.h

Constructor & Destructor Documentation

CbmRichUrqmdTest::CbmRichUrqmdTest ( )

Standard constructor.

Definition at line 33 of file CbmRichUrqmdTest.cxx.

View newest version in sPHENIX GitHub at line 33 of file CbmRichUrqmdTest.cxx

CbmRichUrqmdTest::~CbmRichUrqmdTest ( )
virtual

Standard destructor.

Definition at line 71 of file CbmRichUrqmdTest.cxx.

View newest version in sPHENIX GitHub at line 71 of file CbmRichUrqmdTest.cxx

CbmRichUrqmdTest::CbmRichUrqmdTest ( const CbmRichUrqmdTest )
private

Copy constructor.

Member Function Documentation

TCanvas * CbmRichUrqmdTest::CreateCanvas ( const string &  name,
const string &  title,
int  width,
int  height 
)
private

Definition at line 459 of file CbmRichUrqmdTest.cxx.

View newest version in sPHENIX GitHub at line 459 of file CbmRichUrqmdTest.cxx

References c, fCanvas, and width().

Referenced by DrawHist().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CbmRichUrqmdTest::DrawHist ( )
private

Draw histograms.

Definition at line 330 of file CbmRichUrqmdTest.cxx.

View newest version in sPHENIX GitHub at line 330 of file CbmRichUrqmdTest.cxx

References c2, c3, c4, c5, c6, CreateCanvas(), DrawH1(), DrawH2(), fEventNum, fh_gamma_nontarget_mom, fh_gamma_target_mom, fh_hitrate_xy_d, fh_hitrate_xy_u, fh_hits_xy_d, fh_hits_xy_u, fh_kaon_mom, fh_mu_mom, fh_nof_hits_per_event, fh_nof_proj_per_event, fh_nof_rings_1hit, fh_nof_rings_7hits, fh_nof_rings_prim_1hit, fh_nof_rings_prim_7hits, fh_nof_rings_target_1hit, fh_nof_rings_target_7hits, fh_pi_mom, fh_proj_xy_d, fh_proj_xy_u, fh_secel_mom, fh_vertex_z, kLinear, kLog, and SetDefaultDrawStyle().

Referenced by Finish().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CbmRichUrqmdTest::Exec ( Option_t *  option)
virtual

Inherited from FairTask.

Definition at line 105 of file CbmRichUrqmdTest.cxx.

View newest version in sPHENIX GitHub at line 105 of file CbmRichUrqmdTest.cxx

References fEventNum, FillRichRingNofHits(), NofHits(), NofProjections(), NofRings(), and Vertex().

+ Here is the call graph for this function:

void CbmRichUrqmdTest::FillRichRingNofHits ( )
private

Definition at line 151 of file CbmRichUrqmdTest.cxx.

View newest version in sPHENIX GitHub at line 151 of file CbmRichUrqmdTest.cxx

References fMcTracks, fNofHitsInRingMap, fRichHits, fRichPoints, CbmMCTrack::GetMotherId(), CbmBaseHit::GetRefId(), and FairMCPoint::GetTrackID().

Referenced by Exec().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CbmRichUrqmdTest::Finish ( void  )
virtual

Inherited from FairTask.

Reimplemented from FairTask.

Definition at line 449 of file CbmRichUrqmdTest.cxx.

View newest version in sPHENIX GitHub at line 449 of file CbmRichUrqmdTest.cxx

References DrawHist(), fHists, and SaveCanvasToImage().

+ Here is the call graph for this function:

InitStatus CbmRichUrqmdTest::Init ( void  )
virtual

Inherited from FairTask.

Reimplemented from FairTask.

Definition at line 76 of file CbmRichUrqmdTest.cxx.

View newest version in sPHENIX GitHub at line 76 of file CbmRichUrqmdTest.cxx

References fMcTracks, fRichHits, fRichPoints, fRichProjections, fRichRingMatches, fRichRings, FairRootManager::GetObject(), InitHistograms(), FairRootManager::Instance(), and kSUCCESS.

+ Here is the call graph for this function:

void CbmRichUrqmdTest::InitHistograms ( )
private

Initialize histograms.

Definition at line 121 of file CbmRichUrqmdTest.cxx.

View newest version in sPHENIX GitHub at line 121 of file CbmRichUrqmdTest.cxx

References fh_gamma_nontarget_mom, fh_gamma_target_mom, fh_hitrate_xy_d, fh_hitrate_xy_u, fh_hits_xy_d, fh_hits_xy_u, fh_kaon_mom, fh_mu_mom, fh_nof_hits_per_event, fh_nof_proj_per_event, fh_nof_rings_1hit, fh_nof_rings_7hits, fh_nof_rings_prim_1hit, fh_nof_rings_prim_7hits, fh_nof_rings_target_1hit, fh_nof_rings_target_7hits, fh_pi_mom, fh_proj_xy_d, fh_proj_xy_u, fh_secel_mom, and fh_vertex_z.

Referenced by Init().

+ Here is the caller graph for this function:

void CbmRichUrqmdTest::NofHits ( )
private

Definition at line 241 of file CbmRichUrqmdTest.cxx.

View newest version in sPHENIX GitHub at line 241 of file CbmRichUrqmdTest.cxx

References fh_hitrate_xy_d, fh_hitrate_xy_u, fh_hits_xy_d, fh_hits_xy_u, fh_nof_hits_per_event, fMcTracks, fRichHits, fRichPoints, CbmMCTrack::GetMotherId(), CbmMCTrack::GetPdgCode(), CbmBaseHit::GetRefId(), FairMCPoint::GetTrackID(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), pdg, x, and y.

Referenced by Exec().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CbmRichUrqmdTest::NofProjections ( )
private

Definition at line 296 of file CbmRichUrqmdTest.cxx.

View newest version in sPHENIX GitHub at line 296 of file CbmRichUrqmdTest.cxx

References fh_nof_proj_per_event, fh_proj_xy_d, fh_proj_xy_u, fRichProjections, FairTrackParam::GetX(), FairTrackParam::GetY(), x, and y.

Referenced by Exec().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CbmRichUrqmdTest::NofRings ( )
private

Definition at line 176 of file CbmRichUrqmdTest.cxx.

View newest version in sPHENIX GitHub at line 176 of file CbmRichUrqmdTest.cxx

References fh_gamma_nontarget_mom, fh_gamma_target_mom, fh_kaon_mom, fh_mu_mom, fh_nof_rings_1hit, fh_nof_rings_7hits, fh_nof_rings_prim_1hit, fh_nof_rings_prim_7hits, fh_nof_rings_target_1hit, fh_nof_rings_target_7hits, fh_pi_mom, fh_secel_mom, fMcTracks, fMinNofHits, fRichRingMatches, fRichRings, CbmTrackMatch::GetMCTrackId(), CbmMCTrack::GetMotherId(), CbmRichRing::GetNofHits(), CbmMCTrack::GetP(), CbmMCTrack::GetPdgCode(), CbmMCTrack::GetStartVertex(), charm_jet_coverage::mom, and pdg.

Referenced by Exec().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CbmRichUrqmdTest& CbmRichUrqmdTest::operator= ( const CbmRichUrqmdTest )
private

Assignment operator.

void CbmRichUrqmdTest::SaveCanvasToImage ( )
private

Definition at line 470 of file CbmRichUrqmdTest.cxx.

View newest version in sPHENIX GitHub at line 470 of file CbmRichUrqmdTest.cxx

References fCanvas, fOutputDir, and lit::SaveCanvasAsImage().

Referenced by Finish().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CbmRichUrqmdTest::SetOutputDir ( const string &  dir)
inline

Set output directory where you want to write results (figures and json).

Parameters
[in]dirPath to the output directory.

Definition at line 70 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 70 of file CbmRichUrqmdTest.h

void CbmRichUrqmdTest::Vertex ( )
private

Definition at line 317 of file CbmRichUrqmdTest.cxx.

View newest version in sPHENIX GitHub at line 317 of file CbmRichUrqmdTest.cxx

References fh_vertex_z, fMcTracks, fNofHitsInRingMap, CbmMCTrack::GetStartVertex(), and v.

Referenced by Exec().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

vector<TCanvas*> CbmRichUrqmdTest::fCanvas
private

Definition at line 140 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 140 of file CbmRichUrqmdTest.h

Referenced by CreateCanvas(), and SaveCanvasToImage().

Int_t CbmRichUrqmdTest::fEventNum
private

Definition at line 142 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 142 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), and Exec().

TH1* CbmRichUrqmdTest::fh_gamma_nontarget_mom
private

Definition at line 158 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 158 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofRings().

TH1* CbmRichUrqmdTest::fh_gamma_target_mom
private

Definition at line 157 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 157 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofRings().

TH2D* CbmRichUrqmdTest::fh_hitrate_xy_d
private

Definition at line 168 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 168 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofHits().

TH2D* CbmRichUrqmdTest::fh_hitrate_xy_u
private

Definition at line 167 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 167 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofHits().

TH2D* CbmRichUrqmdTest::fh_hits_xy_d
private

Definition at line 165 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 165 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofHits().

TH2D* CbmRichUrqmdTest::fh_hits_xy_u
private

Definition at line 164 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 164 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofHits().

TH1* CbmRichUrqmdTest::fh_kaon_mom
private

Definition at line 160 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 160 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofRings().

TH1* CbmRichUrqmdTest::fh_mu_mom
private

Definition at line 161 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 161 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofRings().

TH1* CbmRichUrqmdTest::fh_nof_hits_per_event
private

Definition at line 163 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 163 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofHits().

TH1* CbmRichUrqmdTest::fh_nof_proj_per_event
private

Definition at line 170 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 170 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofProjections().

TH1* CbmRichUrqmdTest::fh_nof_rings_1hit
private

Definition at line 149 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 149 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofRings().

TH1* CbmRichUrqmdTest::fh_nof_rings_7hits
private

Definition at line 150 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 150 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofRings().

TH1* CbmRichUrqmdTest::fh_nof_rings_prim_1hit
private

Definition at line 151 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 151 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofRings().

TH1* CbmRichUrqmdTest::fh_nof_rings_prim_7hits
private

Definition at line 152 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 152 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofRings().

TH1* CbmRichUrqmdTest::fh_nof_rings_target_1hit
private

Definition at line 153 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 153 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofRings().

TH1* CbmRichUrqmdTest::fh_nof_rings_target_7hits
private

Definition at line 154 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 154 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofRings().

TH1* CbmRichUrqmdTest::fh_pi_mom
private

Definition at line 159 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 159 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofRings().

TH2D* CbmRichUrqmdTest::fh_proj_xy_d
private

Definition at line 172 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 172 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofProjections().

TH2D* CbmRichUrqmdTest::fh_proj_xy_u
private

Definition at line 171 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 171 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofProjections().

TH1* CbmRichUrqmdTest::fh_secel_mom
private

Definition at line 156 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 156 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and NofRings().

TH1* CbmRichUrqmdTest::fh_vertex_z
private

Definition at line 148 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 148 of file CbmRichUrqmdTest.h

Referenced by DrawHist(), InitHistograms(), and Vertex().

vector<TH1*> CbmRichUrqmdTest::fHists
private

Definition at line 174 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 174 of file CbmRichUrqmdTest.h

Referenced by Finish().

TClonesArray* CbmRichUrqmdTest::fMcTracks
private

Definition at line 135 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 135 of file CbmRichUrqmdTest.h

Referenced by FillRichRingNofHits(), Init(), NofHits(), NofRings(), and Vertex().

Int_t CbmRichUrqmdTest::fMinNofHits
private

Definition at line 143 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 143 of file CbmRichUrqmdTest.h

Referenced by NofRings().

std::map<Int_t, Int_t> CbmRichUrqmdTest::fNofHitsInRingMap
private

Definition at line 146 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 146 of file CbmRichUrqmdTest.h

Referenced by FillRichRingNofHits(), and Vertex().

string CbmRichUrqmdTest::fOutputDir
private

Definition at line 130 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 130 of file CbmRichUrqmdTest.h

Referenced by SaveCanvasToImage().

TClonesArray* CbmRichUrqmdTest::fRichHits
private

Definition at line 132 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 132 of file CbmRichUrqmdTest.h

Referenced by FillRichRingNofHits(), Init(), and NofHits().

TClonesArray* CbmRichUrqmdTest::fRichPoints
private

Definition at line 134 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 134 of file CbmRichUrqmdTest.h

Referenced by FillRichRingNofHits(), Init(), and NofHits().

TClonesArray* CbmRichUrqmdTest::fRichProjections
private

Definition at line 137 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 137 of file CbmRichUrqmdTest.h

Referenced by Init(), and NofProjections().

TClonesArray* CbmRichUrqmdTest::fRichRingMatches
private

Definition at line 136 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 136 of file CbmRichUrqmdTest.h

Referenced by Init(), and NofRings().

TClonesArray* CbmRichUrqmdTest::fRichRings
private

Definition at line 133 of file CbmRichUrqmdTest.h.

View newest version in sPHENIX GitHub at line 133 of file CbmRichUrqmdTest.h

Referenced by Init(), and NofRings().


The documentation for this class was generated from the following files: