CbmRoot
|
#include <CbmRichMCbmQaReal.h>
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... | |
CbmRichMCbmQaReal & | operator= (const CbmRichMCbmQaReal &) |
Assignment operator. More... | |
Private Attributes | |
CbmDigiManager * | fDigiMan = nullptr |
const std::vector< CbmTofDigi > * | fT0Digis = nullptr |
TClonesArray * | fRichHits |
TClonesArray * | fRichRings |
TClonesArray * | fTofHits |
TClonesArray * | fTofTracks |
TClonesArray * | fCbmEvent |
CbmHistManager * | fHM |
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. |
CbmEvent * | fEventPnt = nullptr |
std::array< Double_t, 2304 > | offset_read |
std::array< Double_t, 2304 > | offset |
std::array< uint32_t, 2304 > | offset_cnt |
CbmRichMCbmSEDisplay * | fSeDisplay = nullptr |
CbmRichMCbmSEDisplay * | fSeDsply_TR = nullptr |
Definition at line 25 of file CbmRichMCbmQaReal.h.
CbmRichMCbmQaReal::CbmRichMCbmQaReal | ( | ) |
Standard constructor.
Definition at line 65 of file CbmRichMCbmQaReal.cxx.
|
inlinevirtual |
Standard destructor.
Definition at line 36 of file CbmRichMCbmQaReal.h.
|
private |
Copy constructor.
|
private |
Definition at line 3095 of file CbmRichMCbmQaReal.cxx.
References cutDistance(), cutRadius(), fHM, fRichHits, CbmHit::GetAddress(), CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmRichUtil::GetDirichId(), CbmRichRing::GetHit(), CbmEvent::GetIndex(), CbmEvent::GetNofData(), CbmRichRing::GetNofHits(), CbmEvent::GetStartTime(), CbmHit::GetTime(), CbmRichHit::GetToT(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHistManager::H1(), CbmHistManager::H2(), i, kRichHit, and max().
Referenced by Exec().
|
private |
Definition at line 3212 of file CbmRichMCbmQaReal.cxx.
Referenced by analyseRing().
|
private |
Definition at line 3205 of file CbmRichMCbmQaReal.cxx.
References CbmRichRing::GetRadius().
Referenced by analyseRing(), Exec(), and FindClosestRing().
|
inline |
Apply restriction to full mRICH Acceptance (for Simulations)
Definition at line 80 of file CbmRichMCbmQaReal.h.
|
inline |
Apply restriction to current mRICH Acceptance (for Simulations)
Definition at line 68 of file CbmRichMCbmQaReal.h.
|
inline |
Apply restriction to full mRICH Acceptance (for Simulations)
Definition at line 74 of file CbmRichMCbmQaReal.h.
|
inlineprivate |
Definition at line 232 of file CbmRichMCbmQaReal.h.
Referenced by DrawRichTofEv(), DrawRing(), and Exec().
|
inline |
Apply restriction to full mRICH Acceptance (for Simulations)
Definition at line 85 of file CbmRichMCbmQaReal.h.
|
private |
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().
|
private |
Draw histograms.
Definition at line 1877 of file CbmRichMCbmQaReal.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawH2(), fHM, fRestrictToAcc, fRestrictToFullAcc, CbmHistManager::H1(), CbmHistManager::H2(), CbmHistManager::H3(), kLinear, kLog, max(), and CbmHistManager::ScaleByPattern().
Referenced by DrawFromFile(), and Finish().
|
private |
Definition at line 2860 of file CbmRichMCbmQaReal.cxx.
References CbmHistManager::CreateCanvas(), doToT(), fHM, fNofDrawnRichTofEv, fOutputDir, fRichHits, fTofTracks, getBeta(), CbmTofTracklet::GetFitX(), CbmTofTracklet::GetFitY(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHit::GetZ(), i, and RichZPos.
Referenced by Exec().
|
private |
Definition at line 2689 of file CbmRichMCbmQaReal.cxx.
|
inlineprivate |
Definition at line 212 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 2694 of file CbmRichMCbmQaReal.cxx.
References CbmHistManager::CreateCanvas(), doToT(), fHM, fNofDrawnRings, fRichHits, getBeta(), CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmRichRing::GetHit(), CbmRichRing::GetNofHits(), CbmRichRing::GetRadius(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHit::GetZ(), i, and sqrt().
|
virtual |
Inherited from FairTask.
Definition at line 1085 of file CbmRichMCbmQaReal.cxx.
References analyseRing(), cutRadius(), doToT(), CbmRichMCbmSEDisplay::DrawEvent(), DrawRichTofEv(), fabs(), fCbmEvent, fCbmEventStartTime, fDigiHitsInitialized, fDigiMan, fEventNum, fEventPnt, fHM, FindClosestRing(), FindClosestTrack(), first, fRichHits, fRichRings, fRingsWithTrack, fSeDisplay, fSeDsply_TR, fT0Digis, fTofHits, fTofTracks, fTracksinRich, fTracksinRichWithRichHits, fTriggerRichHits, fTriggerTofHits, fXOffsetHisto, CbmDigiManager::Get(), CbmHit::GetAddress(), getBeta(), CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmRichRing::GetChi2(), CbmTofTracklet::GetFitX(), CbmTofTracklet::GetFitY(), CbmRichRing::GetHit(), CbmTofTracklet::GetHitIndex(), CbmEvent::GetIndex(), CbmEvent::GetNofData(), CbmDigiManager::GetNofDigis(), CbmRichRing::GetNofHits(), CbmTofTracklet::GetNofHits(), CbmRichRing::GetRadius(), CbmEvent::GetStartTime(), CbmRichDigi::GetTime(), CbmHit::GetTime(), CbmStsDigi::GetTime(), CbmRichRing::GetTime(), CbmTofDigi::GetTime(), CbmTofTracklet::GetTime(), CbmRichHit::GetToT(), CbmRichDigi::GetToT(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHit::GetZ(), CbmHistManager::H1(), CbmHistManager::H2(), CbmHistManager::H3(), i, isAccmRICH(), isOnTarget(), CbmDigiManager::IsPresent(), kRich, kRichHit, kSts, kTof, kTofHit, kTofTrack, m, max(), RestrictToFullAcc(), RichRings(), RichZPos, rings, and sqrt().
|
private |
Definition at line 1831 of file CbmRichMCbmQaReal.cxx.
References cutRadius(), fRichRings, CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmTofTracklet::GetFitX(), CbmTofTracklet::GetFitY(), RichZPos, and sqrt().
Referenced by Exec().
|
private |
Definition at line 1789 of file CbmRichMCbmQaReal.cxx.
References CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), RichZPos, and sqrt().
Referenced by Exec().
|
virtual |
Inherited from FairTask.
Definition at line 2940 of file CbmRichMCbmQaReal.cxx.
References DrawHist(), fDoDrawCanvas, fDoWriteHistToFile, fHM, fOutputDir, fRingsWithTrack, fTracksinRich, fTracksinRichWithRichHits, CbmHistManager::SaveCanvasToImage(), and CbmHistManager::WriteToFile().
|
private |
Definition at line 3040 of file CbmRichMCbmQaReal.cxx.
References CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmRichRing::GetRadius(), RichZPos, and sqrt().
|
private |
Definition at line 3033 of file CbmRichMCbmQaReal.cxx.
References CbmTofTracklet::GetTt().
Referenced by DrawRichTofEv(), DrawRing(), and Exec().
|
virtual |
Inherited from FairTask.
Definition at line 85 of file CbmRichMCbmQaReal.cxx.
References fCbmEvent, fDigiMan, fHM, fMaxNofDrawnEvents, fOutputDir, fRichHits, fRichRings, fSeDisplay, fSeDsply_TR, fT0Digis, fTofHits, fTofTracks, fTotRichMax, fTotRichMin, fXOffsetHisto, CbmDigiManager::Init(), InitHistograms(), CbmDigiManager::Instance(), CbmDigiManager::IsPresent(), kRich, kTof, CbmRichMCbmSEDisplay::SetCanvasDir(), CbmRichMCbmSEDisplay::SetMaxNofDrawnEvents(), CbmRichMCbmSEDisplay::SetOutDir(), CbmRichMCbmSEDisplay::SetRichHits(), CbmRichMCbmSEDisplay::SetRichRings(), CbmRichMCbmSEDisplay::SetTofTracks(), CbmRichMCbmSEDisplay::SetTotRich(), and CbmRichMCbmSEDisplay::XOffsetHistos().
|
private |
Initialize histograms.
Definition at line 177 of file CbmRichMCbmQaReal.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), CbmHistManager::Create3(), fHM, and fXOffsetHisto.
Referenced by Init().
|
private |
Definition at line 3014 of file CbmRichMCbmQaReal.cxx.
References fRestrictToAcc, CbmTofTracklet::GetFitX(), CbmTofTracklet::GetFitY(), RichZPos, x, and y.
Referenced by Exec().
|
inline |
Definition at line 116 of file CbmRichMCbmQaReal.h.
References CbmTofTracklet::GetFitX(), CbmTofTracklet::GetFitY(), and sqrt().
Referenced by Exec().
|
private |
Assignment operator.
|
private |
Definition at line 3067 of file CbmRichMCbmQaReal.cxx.
References CbmTofTracklet::GetFitX(), CbmTofTracklet::GetFitY(), RichZPos, x, and y.
Referenced by Exec(), and RestrictToFullAcc().
|
private |
Definition at line 3082 of file CbmRichMCbmQaReal.cxx.
References fRestrictToFullAcc, x, and y.
|
private |
Definition at line 3075 of file CbmRichMCbmQaReal.cxx.
References pos, RestrictToFullAcc(), x, and y.
|
private |
Definition at line 1772 of file CbmRichMCbmQaReal.cxx.
References fHM, fRichRings, CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmRichRing::GetNofHits(), CbmRichRing::GetRadius(), CbmHistManager::H1(), CbmHistManager::H2(), and i.
Referenced by Exec().
|
inline |
Limit of Single Event Displays that should be drawn
Definition at line 96 of file CbmRichMCbmQaReal.h.
|
inline |
Set output directory where you want to write results (figures and json).
[in] | dir | Path to the output directory. |
Definition at line 57 of file CbmRichMCbmQaReal.h.
|
inline |
Set an ToT cut of the RICH Hits.
Definition at line 111 of file CbmRichMCbmQaReal.h.
|
inline |
Set an trigger on the RICH Hits.
Definition at line 106 of file CbmRichMCbmQaReal.h.
|
inline |
Set an trigger on the tof Hits.
Definition at line 101 of file CbmRichMCbmQaReal.h.
|
inline |
Move X-Position of mRICH in Histograms (e.g. for Geometry changes)
Definition at line 91 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 139 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 185 of file CbmRichMCbmQaReal.h.
Referenced by Exec().
|
private |
Definition at line 179 of file CbmRichMCbmQaReal.h.
Referenced by Exec().
|
private |
Definition at line 126 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 177 of file CbmRichMCbmQaReal.h.
Referenced by Finish().
|
private |
Definition at line 176 of file CbmRichMCbmQaReal.h.
Referenced by Finish().
|
private |
Definition at line 151 of file CbmRichMCbmQaReal.h.
Referenced by Exec().
|
private |
Definition at line 186 of file CbmRichMCbmQaReal.h.
Referenced by Exec().
|
private |
Definition at line 142 of file CbmRichMCbmQaReal.h.
Referenced by analyseRing(), DrawFromFile(), DrawHist(), DrawRichTofEv(), DrawRing(), Exec(), Finish(), Init(), InitHistograms(), and RichRings().
|
private |
Definition at line 157 of file CbmRichMCbmQaReal.h.
Referenced by Init().
|
private |
Definition at line 155 of file CbmRichMCbmQaReal.h.
Referenced by DrawRichTofEv().
|
private |
Definition at line 153 of file CbmRichMCbmQaReal.h.
Referenced by DrawRing().
|
private |
Definition at line 171 of file CbmRichMCbmQaReal.h.
Referenced by DrawFromFile(), DrawRichTofEv(), Finish(), and Init().
|
private |
Definition at line 173 of file CbmRichMCbmQaReal.h.
Referenced by DrawHist(), and isAccmRICH().
|
private |
Definition at line 174 of file CbmRichMCbmQaReal.h.
Referenced by DrawHist(), and RestrictToFullAcc().
|
private |
Definition at line 131 of file CbmRichMCbmQaReal.h.
Referenced by analyseRing(), DrawRichTofEv(), DrawRing(), Exec(), and Init().
|
private |
Definition at line 133 of file CbmRichMCbmQaReal.h.
Referenced by Exec(), FindClosestRing(), Init(), and RichRings().
|
private |
Definition at line 165 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 192 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 194 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 129 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 135 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 137 of file CbmRichMCbmQaReal.h.
Referenced by DrawRichTofEv(), Exec(), and Init().
|
private |
Definition at line 149 of file CbmRichMCbmQaReal.h.
Referenced by Init().
|
private |
Definition at line 147 of file CbmRichMCbmQaReal.h.
Referenced by Init().
|
private |
Definition at line 163 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 168 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 159 of file CbmRichMCbmQaReal.h.
Referenced by Exec().
|
private |
Definition at line 161 of file CbmRichMCbmQaReal.h.
Referenced by Exec().
|
private |
Definition at line 145 of file CbmRichMCbmQaReal.h.
Referenced by Exec(), Init(), and InitHistograms().
|
private |
Definition at line 189 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 190 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 188 of file CbmRichMCbmQaReal.h.