CbmRoot
CbmRichMCbmQaReal Class Reference

#include <CbmRichMCbmQaReal.h>

Inheritance diagram for CbmRichMCbmQaReal:
[legend]
Collaboration diagram for CbmRichMCbmQaReal:
[legend]

Public Member Functions

 CbmRichMCbmQaReal ()
 Standard constructor. More...
 
virtual ~CbmRichMCbmQaReal ()
 Standard destructor. More...
 
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 SetOutputDir (const string &dir)
 Set output directory where you want to write results (figures and json). More...
 
void DrawFromFile (const string &fileName, const string &outputDir)
 Draw histogram from file. More...
 
void DoRestrictToAcc ()
 
void DoRestrictToFullAcc (bool val=true)
 
void DoDrawCanvas (bool val=true)
 
void DoWriteHistToFile (bool val=true)
 
void XOffsetHistos (Double_t val=0.)
 
void SetMaxNofDrawnEvents (Int_t val=100)
 
void SetTriggerTofHits (Int_t val=0)
 
void SetTriggerRichHits (Int_t val=0)
 
void SetTotRich (Double_t min, Double_t max)
 
bool isOnTarget (CbmTofTracklet *tTrack)
 

Private Member Functions

bool RestrictToFullAcc (CbmTofTracklet *track)
 
bool RestrictToFullAcc (TVector3 &pos)
 
bool RestrictToFullAcc (Double_t x, Double_t y)
 
void InitHistograms ()
 Initialize histograms. More...
 
void DrawHist ()
 Draw histograms. More...
 
void RichRings ()
 
void DrawRing (CbmRichRing *ring)
 
void DrawEvent (CbmEvent *ev, std::vector< int > &ringIndx, bool full)
 
void DrawRing (CbmRichRing *ring, std::vector< CbmTofTracklet * > track)
 
void DrawRing (CbmRichRing *ring, std::vector< CbmTofTracklet * > track, bool full)
 
void DrawRichTofEv (const std::vector< int > richHitIndx, const std::vector< int > tofTrackIndx)
 
std::pair< int, double > FindClosestTrack (const CbmRichRing *ring, const std::vector< CbmTofTracklet * > track)
 
std::pair< int, double > FindClosestRing (CbmTofTracklet *track, std::vector< int > &ringIndx)
 
bool isAccmRICH (CbmTofTracklet *track)
 
template<typename T = CbmRichHit>
bool doToT (T *hit)
 
Double_t getBeta (CbmTofTracklet *track)
 
Double_t getBeta (CbmRichRing *ring)
 
void analyseRing (CbmRichRing *ring, CbmEvent *ev, std::pair< int, double > &clTrack)
 
Bool_t cutRadius (CbmRichRing *ring)
 
Bool_t cutDistance (std::pair< int, double > &clTrack)
 
 CbmRichMCbmQaReal (const CbmRichMCbmQaReal &)
 Copy constructor. More...
 
CbmRichMCbmQaRealoperator= (const CbmRichMCbmQaReal &)
 Assignment operator. More...
 

Private Attributes

CbmDigiManagerfDigiMan = nullptr
 
const std::vector< CbmTofDigi > * fT0Digis = nullptr
 
TClonesArray * fRichHits
 
TClonesArray * fRichRings
 
TClonesArray * fTofHits
 
TClonesArray * fTofTracks
 
TClonesArray * fCbmEvent
 
CbmHistManagerfHM
 
Double_t fXOffsetHisto
 
Double_t fTotRichMin
 
Double_t fTotRichMax
 
Int_t fEventNum
 
Int_t fNofDrawnRings
 
Int_t fNofDrawnRichTofEv
 
Int_t fMaxNofDrawnEvents
 
Int_t fTriggerRichHits
 
Int_t fTriggerTofHits
 
Int_t fTracksinRich = 0
 
Int_t fRingsWithTrack [6]
 
Int_t fTracksinRichWithRichHits [4] = {0, 0, 0, 0}
 
string fOutputDir
 
bool fRestrictToAcc = false
 
bool fRestrictToFullAcc = false
 
bool fDoWriteHistToFile = true
 
bool fDoDrawCanvas = true
 
bool fDigiHitsInitialized = false
 
Double_t fCbmEventStartTime = 0.
 
CbmEventfEventPnt = nullptr
 
std::array< Double_t, 2304 > offset_read
 
std::array< Double_t, 2304 > offset
 
std::array< uint32_t, 2304 > offset_cnt
 
CbmRichMCbmSEDisplayfSeDisplay = nullptr
 
CbmRichMCbmSEDisplayfSeDsply_TR = nullptr
 

Detailed Description

Definition at line 25 of file CbmRichMCbmQaReal.h.

Constructor & Destructor Documentation

◆ CbmRichMCbmQaReal() [1/2]

CbmRichMCbmQaReal::CbmRichMCbmQaReal ( )

Standard constructor.

Definition at line 65 of file CbmRichMCbmQaReal.cxx.

◆ ~CbmRichMCbmQaReal()

virtual CbmRichMCbmQaReal::~CbmRichMCbmQaReal ( )
inlinevirtual

Standard destructor.

Definition at line 36 of file CbmRichMCbmQaReal.h.

◆ CbmRichMCbmQaReal() [2/2]

CbmRichMCbmQaReal::CbmRichMCbmQaReal ( const CbmRichMCbmQaReal )
private

Copy constructor.

Member Function Documentation

◆ analyseRing()

◆ cutDistance()

Bool_t CbmRichMCbmQaReal::cutDistance ( std::pair< int, double > &  clTrack)
private

Definition at line 3212 of file CbmRichMCbmQaReal.cxx.

Referenced by analyseRing().

◆ cutRadius()

Bool_t CbmRichMCbmQaReal::cutRadius ( CbmRichRing ring)
private

Definition at line 3205 of file CbmRichMCbmQaReal.cxx.

References CbmRichRing::GetRadius().

Referenced by analyseRing(), Exec(), and FindClosestRing().

◆ DoDrawCanvas()

void CbmRichMCbmQaReal::DoDrawCanvas ( bool  val = true)
inline

Apply restriction to full mRICH Acceptance (for Simulations)

Definition at line 80 of file CbmRichMCbmQaReal.h.

◆ DoRestrictToAcc()

void CbmRichMCbmQaReal::DoRestrictToAcc ( )
inline

Apply restriction to current mRICH Acceptance (for Simulations)

Definition at line 68 of file CbmRichMCbmQaReal.h.

◆ DoRestrictToFullAcc()

void CbmRichMCbmQaReal::DoRestrictToFullAcc ( bool  val = true)
inline

Apply restriction to full mRICH Acceptance (for Simulations)

Definition at line 74 of file CbmRichMCbmQaReal.h.

◆ doToT()

template<typename T = CbmRichHit>
bool CbmRichMCbmQaReal::doToT ( T *  hit)
inlineprivate

Definition at line 232 of file CbmRichMCbmQaReal.h.

Referenced by DrawRichTofEv(), DrawRing(), and Exec().

◆ DoWriteHistToFile()

void CbmRichMCbmQaReal::DoWriteHistToFile ( bool  val = true)
inline

Apply restriction to full mRICH Acceptance (for Simulations)

Definition at line 85 of file CbmRichMCbmQaReal.h.

◆ DrawEvent()

void CbmRichMCbmQaReal::DrawEvent ( CbmEvent ev,
std::vector< int > &  ringIndx,
bool  full 
)
private

◆ DrawFromFile()

void CbmRichMCbmQaReal::DrawFromFile ( const string &  fileName,
const string &  outputDir 
)

Draw histogram from file.

Definition at line 3000 of file CbmRichMCbmQaReal.cxx.

References DrawHist(), fHM, fOutputDir, CbmHistManager::ReadFromFile(), and CbmHistManager::SaveCanvasToImage().

◆ DrawHist()

◆ DrawRichTofEv()

void CbmRichMCbmQaReal::DrawRichTofEv ( const std::vector< int >  richHitIndx,
const std::vector< int >  tofTrackIndx 
)
private

◆ DrawRing() [1/3]

void CbmRichMCbmQaReal::DrawRing ( CbmRichRing ring)
private

Definition at line 2689 of file CbmRichMCbmQaReal.cxx.

◆ DrawRing() [2/3]

void CbmRichMCbmQaReal::DrawRing ( CbmRichRing ring,
std::vector< CbmTofTracklet * >  track 
)
inlineprivate

Definition at line 212 of file CbmRichMCbmQaReal.h.

◆ DrawRing() [3/3]

◆ Exec()

◆ FindClosestRing()

std::pair< int, double > CbmRichMCbmQaReal::FindClosestRing ( CbmTofTracklet track,
std::vector< int > &  ringIndx 
)
private

◆ FindClosestTrack()

std::pair< int, double > CbmRichMCbmQaReal::FindClosestTrack ( const CbmRichRing ring,
const std::vector< CbmTofTracklet * >  track 
)
private

Definition at line 1789 of file CbmRichMCbmQaReal.cxx.

References CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), RichZPos, and sqrt().

Referenced by Exec().

◆ Finish()

void CbmRichMCbmQaReal::Finish ( )
virtual

◆ getBeta() [1/2]

Double_t CbmRichMCbmQaReal::getBeta ( CbmRichRing ring)
private

◆ getBeta() [2/2]

Double_t CbmRichMCbmQaReal::getBeta ( CbmTofTracklet track)
private

Definition at line 3033 of file CbmRichMCbmQaReal.cxx.

References CbmTofTracklet::GetTt().

Referenced by DrawRichTofEv(), DrawRing(), and Exec().

◆ Init()

◆ InitHistograms()

void CbmRichMCbmQaReal::InitHistograms ( )
private

Initialize histograms.

Definition at line 177 of file CbmRichMCbmQaReal.cxx.

References CbmHistManager::Create1(), CbmHistManager::Create2(), CbmHistManager::Create3(), fHM, and fXOffsetHisto.

Referenced by Init().

◆ isAccmRICH()

bool CbmRichMCbmQaReal::isAccmRICH ( CbmTofTracklet track)
private

Definition at line 3014 of file CbmRichMCbmQaReal.cxx.

References fRestrictToAcc, CbmTofTracklet::GetFitX(), CbmTofTracklet::GetFitY(), RichZPos, x, and y.

Referenced by Exec().

◆ isOnTarget()

bool CbmRichMCbmQaReal::isOnTarget ( CbmTofTracklet tTrack)
inline

Definition at line 116 of file CbmRichMCbmQaReal.h.

References CbmTofTracklet::GetFitX(), CbmTofTracklet::GetFitY(), and sqrt().

Referenced by Exec().

◆ operator=()

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

Assignment operator.

◆ RestrictToFullAcc() [1/3]

bool CbmRichMCbmQaReal::RestrictToFullAcc ( CbmTofTracklet track)
private

Definition at line 3067 of file CbmRichMCbmQaReal.cxx.

References CbmTofTracklet::GetFitX(), CbmTofTracklet::GetFitY(), RichZPos, x, and y.

Referenced by Exec(), and RestrictToFullAcc().

◆ RestrictToFullAcc() [2/3]

bool CbmRichMCbmQaReal::RestrictToFullAcc ( Double_t  x,
Double_t  y 
)
private

Definition at line 3082 of file CbmRichMCbmQaReal.cxx.

References fRestrictToFullAcc, x, and y.

◆ RestrictToFullAcc() [3/3]

bool CbmRichMCbmQaReal::RestrictToFullAcc ( TVector3 &  pos)
private

Definition at line 3075 of file CbmRichMCbmQaReal.cxx.

References pos, RestrictToFullAcc(), x, and y.

◆ RichRings()

void CbmRichMCbmQaReal::RichRings ( )
private

◆ SetMaxNofDrawnEvents()

void CbmRichMCbmQaReal::SetMaxNofDrawnEvents ( Int_t  val = 100)
inline

Limit of Single Event Displays that should be drawn

Definition at line 96 of file CbmRichMCbmQaReal.h.

◆ SetOutputDir()

void CbmRichMCbmQaReal::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 57 of file CbmRichMCbmQaReal.h.

◆ SetTotRich()

void CbmRichMCbmQaReal::SetTotRich ( Double_t  min,
Double_t  max 
)
inline

Set an ToT cut of the RICH Hits.

Definition at line 111 of file CbmRichMCbmQaReal.h.

References max(), and min().

◆ SetTriggerRichHits()

void CbmRichMCbmQaReal::SetTriggerRichHits ( Int_t  val = 0)
inline

Set an trigger on the RICH Hits.

Definition at line 106 of file CbmRichMCbmQaReal.h.

◆ SetTriggerTofHits()

void CbmRichMCbmQaReal::SetTriggerTofHits ( Int_t  val = 0)
inline

Set an trigger on the tof Hits.

Definition at line 101 of file CbmRichMCbmQaReal.h.

◆ XOffsetHistos()

void CbmRichMCbmQaReal::XOffsetHistos ( Double_t  val = 0.)
inline

Move X-Position of mRICH in Histograms (e.g. for Geometry changes)

Definition at line 91 of file CbmRichMCbmQaReal.h.

Member Data Documentation

◆ fCbmEvent

TClonesArray* CbmRichMCbmQaReal::fCbmEvent
private

Definition at line 139 of file CbmRichMCbmQaReal.h.

Referenced by Exec(), and Init().

◆ fCbmEventStartTime

Double_t CbmRichMCbmQaReal::fCbmEventStartTime = 0.
private

Definition at line 185 of file CbmRichMCbmQaReal.h.

Referenced by Exec().

◆ fDigiHitsInitialized

bool CbmRichMCbmQaReal::fDigiHitsInitialized = false
private

Definition at line 179 of file CbmRichMCbmQaReal.h.

Referenced by Exec().

◆ fDigiMan

CbmDigiManager* CbmRichMCbmQaReal::fDigiMan = nullptr
private

Definition at line 126 of file CbmRichMCbmQaReal.h.

Referenced by Exec(), and Init().

◆ fDoDrawCanvas

bool CbmRichMCbmQaReal::fDoDrawCanvas = true
private

Definition at line 177 of file CbmRichMCbmQaReal.h.

Referenced by Finish().

◆ fDoWriteHistToFile

bool CbmRichMCbmQaReal::fDoWriteHistToFile = true
private

Definition at line 176 of file CbmRichMCbmQaReal.h.

Referenced by Finish().

◆ fEventNum

Int_t CbmRichMCbmQaReal::fEventNum
private

Definition at line 151 of file CbmRichMCbmQaReal.h.

Referenced by Exec().

◆ fEventPnt

CbmEvent* CbmRichMCbmQaReal::fEventPnt = nullptr
private

Definition at line 186 of file CbmRichMCbmQaReal.h.

Referenced by Exec().

◆ fHM

CbmHistManager* CbmRichMCbmQaReal::fHM
private

◆ fMaxNofDrawnEvents

Int_t CbmRichMCbmQaReal::fMaxNofDrawnEvents
private

Definition at line 157 of file CbmRichMCbmQaReal.h.

Referenced by Init().

◆ fNofDrawnRichTofEv

Int_t CbmRichMCbmQaReal::fNofDrawnRichTofEv
private

Definition at line 155 of file CbmRichMCbmQaReal.h.

Referenced by DrawRichTofEv().

◆ fNofDrawnRings

Int_t CbmRichMCbmQaReal::fNofDrawnRings
private

Definition at line 153 of file CbmRichMCbmQaReal.h.

Referenced by DrawRing().

◆ fOutputDir

string CbmRichMCbmQaReal::fOutputDir
private

Definition at line 171 of file CbmRichMCbmQaReal.h.

Referenced by DrawFromFile(), DrawRichTofEv(), Finish(), and Init().

◆ fRestrictToAcc

bool CbmRichMCbmQaReal::fRestrictToAcc = false
private

Definition at line 173 of file CbmRichMCbmQaReal.h.

Referenced by DrawHist(), and isAccmRICH().

◆ fRestrictToFullAcc

bool CbmRichMCbmQaReal::fRestrictToFullAcc = false
private

Definition at line 174 of file CbmRichMCbmQaReal.h.

Referenced by DrawHist(), and RestrictToFullAcc().

◆ fRichHits

TClonesArray* CbmRichMCbmQaReal::fRichHits
private

Definition at line 131 of file CbmRichMCbmQaReal.h.

Referenced by analyseRing(), DrawRichTofEv(), DrawRing(), Exec(), and Init().

◆ fRichRings

TClonesArray* CbmRichMCbmQaReal::fRichRings
private

Definition at line 133 of file CbmRichMCbmQaReal.h.

Referenced by Exec(), FindClosestRing(), Init(), and RichRings().

◆ fRingsWithTrack

Int_t CbmRichMCbmQaReal::fRingsWithTrack[6]
private
Initial value:
=
{0, 0, 0, 0, 0, 0}

Definition at line 165 of file CbmRichMCbmQaReal.h.

Referenced by Exec(), and Finish().

◆ fSeDisplay

CbmRichMCbmSEDisplay* CbmRichMCbmQaReal::fSeDisplay = nullptr
private

Definition at line 192 of file CbmRichMCbmQaReal.h.

Referenced by Exec(), and Init().

◆ fSeDsply_TR

CbmRichMCbmSEDisplay* CbmRichMCbmQaReal::fSeDsply_TR = nullptr
private

Definition at line 194 of file CbmRichMCbmQaReal.h.

Referenced by Exec(), and Init().

◆ fT0Digis

const std::vector<CbmTofDigi>* CbmRichMCbmQaReal::fT0Digis = nullptr
private

Definition at line 129 of file CbmRichMCbmQaReal.h.

Referenced by Exec(), and Init().

◆ fTofHits

TClonesArray* CbmRichMCbmQaReal::fTofHits
private

Definition at line 135 of file CbmRichMCbmQaReal.h.

Referenced by Exec(), and Init().

◆ fTofTracks

TClonesArray* CbmRichMCbmQaReal::fTofTracks
private

Definition at line 137 of file CbmRichMCbmQaReal.h.

Referenced by DrawRichTofEv(), Exec(), and Init().

◆ fTotRichMax

Double_t CbmRichMCbmQaReal::fTotRichMax
private

Definition at line 149 of file CbmRichMCbmQaReal.h.

Referenced by Init().

◆ fTotRichMin

Double_t CbmRichMCbmQaReal::fTotRichMin
private

Definition at line 147 of file CbmRichMCbmQaReal.h.

Referenced by Init().

◆ fTracksinRich

Int_t CbmRichMCbmQaReal::fTracksinRich = 0
private

Definition at line 163 of file CbmRichMCbmQaReal.h.

Referenced by Exec(), and Finish().

◆ fTracksinRichWithRichHits

Int_t CbmRichMCbmQaReal::fTracksinRichWithRichHits[4] = {0, 0, 0, 0}
private

Definition at line 168 of file CbmRichMCbmQaReal.h.

Referenced by Exec(), and Finish().

◆ fTriggerRichHits

Int_t CbmRichMCbmQaReal::fTriggerRichHits
private

Definition at line 159 of file CbmRichMCbmQaReal.h.

Referenced by Exec().

◆ fTriggerTofHits

Int_t CbmRichMCbmQaReal::fTriggerTofHits
private

Definition at line 161 of file CbmRichMCbmQaReal.h.

Referenced by Exec().

◆ fXOffsetHisto

Double_t CbmRichMCbmQaReal::fXOffsetHisto
private

Definition at line 145 of file CbmRichMCbmQaReal.h.

Referenced by Exec(), Init(), and InitHistograms().

◆ offset

std::array<Double_t, 2304> CbmRichMCbmQaReal::offset
private

Definition at line 189 of file CbmRichMCbmQaReal.h.

◆ offset_cnt

std::array<uint32_t, 2304> CbmRichMCbmQaReal::offset_cnt
private

Definition at line 190 of file CbmRichMCbmQaReal.h.

◆ offset_read

std::array<Double_t, 2304> CbmRichMCbmQaReal::offset_read
private

Definition at line 188 of file CbmRichMCbmQaReal.h.


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