CbmRoot
|
#include <CbmRichMCbmQaReal.h>
Public Member Functions | |
CbmRichMCbmQaReal () | |
Standard constructor. | |
virtual | ~CbmRichMCbmQaReal () |
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). | |
void | DrawFromFile (const string &fileName, const string &outputDir) |
Draw histogram from file. | |
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 | SetSEDisplayRingOnly (bool val=true) |
void | ActivateTimeHistograms (bool val=true) |
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) |
TVector3 | extrapolate (CbmTofHit *tofHit, Double_t Z) |
void | InitHistograms () |
Initialize histograms. | |
void | DrawHist () |
Draw histograms. | |
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 (const CbmRichRing *ring) |
void | analyseRing (const CbmRichRing *ring, CbmEvent *ev, std::pair< int, double > &clTrack) |
Bool_t | cutRadius (const CbmRichRing *ring) |
Bool_t | cutDistance (std::pair< int, double > &clTrack) |
CbmRichMCbmQaReal (const CbmRichMCbmQaReal &) | |
Copy constructor. | |
CbmRichMCbmQaReal & | operator= (const CbmRichMCbmQaReal &) |
Assignment operator. | |
Private Attributes | |
CbmDigiManager * | fDigiMan = nullptr |
const std::vector< CbmTofDigi > * | fBmonDigis = nullptr |
TClonesArray * | fRichHits |
TClonesArray * | fRichRings |
TClonesArray * | fTofHits |
TClonesArray * | fTofTracks |
const CbmTsEventHeader * | fTSHeader |
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] = {0, 0, 0, 0, 0, 0} |
Int_t | fTracksinRichWithRichHits [4] = {0, 0, 0, 0} |
uint64_t | fTSMinTime = 0 |
string | fOutputDir |
bool | fRestrictToAcc = false |
bool | fRestrictToFullAcc = false |
bool | fDoWriteHistToFile = true |
bool | fDoDrawCanvas = true |
bool | bSeDisplayRingOnly = false |
bool | fDigiHitsInitialized = false |
bool | fDoTimePlots = 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 29 of file CbmRichMCbmQaReal.h.
CbmRichMCbmQaReal::CbmRichMCbmQaReal | ( | ) |
Standard constructor.
Definition at line 66 of file CbmRichMCbmQaReal.cxx.
|
inlinevirtual |
Standard destructor.
Definition at line 40 of file CbmRichMCbmQaReal.h.
|
private |
Copy constructor.
|
inline |
Activate generation of Time related histograms
Definition at line 121 of file CbmRichMCbmQaReal.h.
References fDoTimePlots.
|
private |
Definition at line 2627 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(), and kRichHit.
Referenced by Exec().
|
private |
Definition at line 2731 of file CbmRichMCbmQaReal.cxx.
Referenced by analyseRing().
|
private |
Definition at line 2723 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 84 of file CbmRichMCbmQaReal.h.
References fDoDrawCanvas.
|
inline |
Apply restriction to current mRICH Acceptance (for Simulations)
Definition at line 72 of file CbmRichMCbmQaReal.h.
References fRestrictToAcc.
|
inline |
Apply restriction to full mRICH Acceptance (for Simulations)
Definition at line 78 of file CbmRichMCbmQaReal.h.
References fRestrictToFullAcc.
|
inlineprivate |
Definition at line 249 of file CbmRichMCbmQaReal.h.
References fTotRichMax, and fTotRichMin.
Referenced by DrawRichTofEv(), DrawRing(), and Exec().
|
inline |
Apply restriction to full mRICH Acceptance (for Simulations)
Definition at line 89 of file CbmRichMCbmQaReal.h.
References fDoWriteHistToFile.
|
private |
void CbmRichMCbmQaReal::DrawFromFile | ( | const string & | fileName, |
const string & | outputDir ) |
Draw histogram from file.
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 2518 of file CbmRichMCbmQaReal.cxx.
References DrawHist(), fHM, fOutputDir, CbmHistManager::ReadFromFile(), and CbmHistManager::SaveCanvasToImage().
|
private |
Draw histograms.
Definition at line 1395 of file CbmRichMCbmQaReal.cxx.
References CbmHistManager::CreateCanvas(), DrawH1(), DrawH2(), fHM, fRestrictToAcc, fRestrictToFullAcc, CbmHistManager::H1(), CbmHistManager::H2(), CbmHistManager::H3(), kLinear, kLog, and CbmHistManager::ScaleByPattern().
Referenced by DrawFromFile(), and Finish().
|
private |
Definition at line 2392 of file CbmRichMCbmQaReal.cxx.
References CbmHistManager::CreateCanvas(), doToT(), fHM, fNofDrawnRichTofEv, fOutputDir, fRichHits, fTofTracks, getBeta(), CbmTofTracklet::GetFitX(), CbmTofTracklet::GetFitY(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHit::GetZ(), and RichZPos.
Referenced by Exec().
|
private |
Definition at line 2237 of file CbmRichMCbmQaReal.cxx.
References DrawRing().
Referenced by DrawRing().
|
inlineprivate |
Definition at line 236 of file CbmRichMCbmQaReal.h.
References DrawRing().
Referenced by DrawRing().
|
private |
Definition at line 2243 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(), and CbmHit::GetZ().
|
virtual |
Inherited from FairTask.
Definition at line 567 of file CbmRichMCbmQaReal.cxx.
References analyseRing(), bSeDisplayRingOnly, cutRadius(), doToT(), CbmRichMCbmSEDisplay::DrawEvent(), DrawRichTofEv(), extrapolate(), fBmonDigis, fCbmEvent, fCbmEventStartTime, fDigiHitsInitialized, fDigiMan, fDoTimePlots, fEventNum, fEventPnt, fHM, FindClosestRing(), FindClosestTrack(), first, fRichHits, fRichRings, fRingsWithTrack, fSeDisplay, fSeDsply_TR, fTofHits, fTofTracks, fTracksinRich, fTracksinRichWithRichHits, fTriggerRichHits, fTSHeader, fTSMinTime, fXOffsetHisto, CbmDigiManager::Get(), CbmHit::GetAddress(), getBeta(), CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmRichRing::GetChi2(), CbmTofTracklet::GetFitX(), CbmTofTracklet::GetFitY(), CbmRichRing::GetHit(), CbmEvent::GetIndex(), CbmEvent::GetNofData(), CbmDigiManager::GetNofDigis(), CbmRichRing::GetNofHits(), CbmTofTracklet::GetNofHits(), CbmRichRing::GetRadius(), CbmEvent::GetStartTime(), CbmHit::GetTime(), CbmRichDigi::GetTime(), CbmRichRing::GetTime(), CbmTofDigi::GetTime(), CbmTofTracklet::GetTime(), CbmTrdDigi::GetTime(), CbmRichDigi::GetToT(), CbmRichHit::GetToT(), CbmTsEventHeader::GetTsStartTime(), CbmTrdDigi::GetType(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHit::GetZ(), CbmHistManager::H1(), CbmHistManager::H2(), CbmHistManager::H3(), isAccmRICH(), isOnTarget(), CbmDigiManager::IsPresent(), kBmonDigi, CbmTrdDigi::kFASP, kRich, kRichHit, CbmTrdDigi::kSPADIC, kSts, kTof, kTofHit, kTofTrack, kTrd, RestrictToFullAcc(), RichRings(), RichZPos, and rings.
|
private |
Definition at line 2739 of file CbmRichMCbmQaReal.cxx.
References CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHit::GetZ(), x, and y.
Referenced by Exec().
|
private |
Definition at line 1350 of file CbmRichMCbmQaReal.cxx.
References cutRadius(), fRichRings, CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmTofTracklet::GetFitX(), CbmTofTracklet::GetFitY(), and RichZPos.
Referenced by Exec().
|
private |
Definition at line 1308 of file CbmRichMCbmQaReal.cxx.
References CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), and RichZPos.
Referenced by Exec().
|
virtual |
Inherited from FairTask.
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 2466 of file CbmRichMCbmQaReal.cxx.
References DrawHist(), fDoDrawCanvas, fDoWriteHistToFile, fHM, fOutputDir, fRingsWithTrack, fTracksinRich, fTracksinRichWithRichHits, CbmHistManager::SaveCanvasToImage(), and CbmHistManager::WriteToFile().
|
private |
Definition at line 2565 of file CbmRichMCbmQaReal.cxx.
References CbmTofTracklet::GetTt().
Referenced by DrawRichTofEv(), DrawRing(), and Exec().
|
private |
Definition at line 2573 of file CbmRichMCbmQaReal.cxx.
References CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmRichRing::GetRadius(), and RichZPos.
|
virtual |
Inherited from FairTask.
Definition at line 89 of file CbmRichMCbmQaReal.cxx.
References fBmonDigis, fCbmEvent, fDigiMan, fHM, fMaxNofDrawnEvents, fOutputDir, fRichHits, fRichRings, fSeDisplay, fSeDsply_TR, fTofHits, fTofTracks, fTotRichMax, fTotRichMin, fTSHeader, fXOffsetHisto, CbmDigiManager::Init(), InitHistograms(), CbmDigiManager::Instance(), CbmDigiManager::IsPresent(), kRich, kTof, CbmRichMCbmSEDisplay::SetCanvasDir(), CbmRichMCbmSEDisplay::SetLELimits(), CbmRichMCbmSEDisplay::SetMaxNofDrawnEvents(), CbmRichMCbmSEDisplay::SetOutDir(), CbmRichMCbmSEDisplay::SetRichHits(), CbmRichMCbmSEDisplay::SetRichRings(), CbmRichMCbmSEDisplay::SetTofTracks(), CbmRichMCbmSEDisplay::SetTotRich(), and CbmRichMCbmSEDisplay::XOffsetHistos().
|
private |
Initialize histograms.
Definition at line 176 of file CbmRichMCbmQaReal.cxx.
References CbmHistManager::Create1(), CbmHistManager::Create2(), CbmHistManager::Create3(), fDoTimePlots, fHM, and fXOffsetHisto.
Referenced by Init().
|
private |
Definition at line 2540 of file CbmRichMCbmQaReal.cxx.
References fRestrictToAcc, CbmTofTracklet::GetFitX(), CbmTofTracklet::GetFitY(), RichZPos, x, and y.
Referenced by Exec().
|
inline |
Definition at line 132 of file CbmRichMCbmQaReal.h.
References CbmTofTracklet::GetFitX(), and CbmTofTracklet::GetFitY().
Referenced by Exec().
|
private |
Assignment operator.
|
private |
Definition at line 2596 of file CbmRichMCbmQaReal.cxx.
References CbmTofTracklet::GetFitX(), CbmTofTracklet::GetFitY(), RestrictToFullAcc(), RichZPos, x, and y.
Referenced by Exec(), RestrictToFullAcc(), and RestrictToFullAcc().
|
private |
Definition at line 2613 of file CbmRichMCbmQaReal.cxx.
References fRestrictToFullAcc, x, and y.
|
private |
Definition at line 2605 of file CbmRichMCbmQaReal.cxx.
References pos, RestrictToFullAcc(), x, and y.
|
private |
Definition at line 1292 of file CbmRichMCbmQaReal.cxx.
References fHM, fRichRings, CbmRichRing::GetCenterX(), CbmRichRing::GetCenterY(), CbmRichRing::GetNofHits(), CbmRichRing::GetRadius(), CbmHistManager::H1(), and CbmHistManager::H2().
Referenced by Exec().
|
inline |
Limit of Single Event Displays that should be drawn
Definition at line 100 of file CbmRichMCbmQaReal.h.
References fMaxNofDrawnEvents.
|
inline |
Set output directory where you want to write results (figures and json).
[in] | dir | Path to the output directory. |
Definition at line 61 of file CbmRichMCbmQaReal.h.
References fOutputDir.
|
inline |
Set a flag to draw only Single Event Displays with minimum one ring.
Definition at line 116 of file CbmRichMCbmQaReal.h.
References bSeDisplayRingOnly.
|
inline |
Set an ToT cut of the RICH Hits.
Definition at line 126 of file CbmRichMCbmQaReal.h.
References fTotRichMax, fTotRichMin, max(), and min().
|
inline |
Set an trigger on the RICH Hits.
Definition at line 110 of file CbmRichMCbmQaReal.h.
References fTriggerRichHits.
|
inline |
Set an trigger on the tof Hits.
Definition at line 105 of file CbmRichMCbmQaReal.h.
References fTriggerTofHits.
|
inline |
Move X-Position of mRICH in Histograms (e.g. for Geometry changes)
Definition at line 95 of file CbmRichMCbmQaReal.h.
References fXOffsetHisto.
|
private |
Definition at line 197 of file CbmRichMCbmQaReal.h.
Referenced by Exec(), and SetSEDisplayRingOnly().
|
private |
Definition at line 145 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 157 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 209 of file CbmRichMCbmQaReal.h.
Referenced by Exec().
|
private |
Definition at line 199 of file CbmRichMCbmQaReal.h.
Referenced by Exec().
|
private |
Definition at line 142 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 195 of file CbmRichMCbmQaReal.h.
Referenced by DoDrawCanvas(), and Finish().
|
private |
Definition at line 201 of file CbmRichMCbmQaReal.h.
Referenced by ActivateTimeHistograms(), Exec(), and InitHistograms().
|
private |
Definition at line 194 of file CbmRichMCbmQaReal.h.
Referenced by DoWriteHistToFile(), and Finish().
|
private |
Definition at line 169 of file CbmRichMCbmQaReal.h.
Referenced by Exec().
|
private |
Definition at line 210 of file CbmRichMCbmQaReal.h.
Referenced by Exec().
|
private |
Definition at line 160 of file CbmRichMCbmQaReal.h.
Referenced by analyseRing(), DrawFromFile(), DrawHist(), DrawRichTofEv(), DrawRing(), Exec(), Finish(), Init(), InitHistograms(), and RichRings().
|
private |
Definition at line 175 of file CbmRichMCbmQaReal.h.
Referenced by Init(), and SetMaxNofDrawnEvents().
|
private |
Definition at line 173 of file CbmRichMCbmQaReal.h.
Referenced by DrawRichTofEv().
|
private |
Definition at line 171 of file CbmRichMCbmQaReal.h.
Referenced by DrawRing().
|
private |
Definition at line 189 of file CbmRichMCbmQaReal.h.
Referenced by DrawFromFile(), DrawRichTofEv(), Finish(), Init(), and SetOutputDir().
|
private |
Definition at line 191 of file CbmRichMCbmQaReal.h.
Referenced by DoRestrictToAcc(), DrawHist(), and isAccmRICH().
|
private |
Definition at line 192 of file CbmRichMCbmQaReal.h.
Referenced by DoRestrictToFullAcc(), DrawHist(), and RestrictToFullAcc().
|
private |
Definition at line 147 of file CbmRichMCbmQaReal.h.
Referenced by analyseRing(), DrawRichTofEv(), DrawRing(), Exec(), and Init().
|
private |
Definition at line 149 of file CbmRichMCbmQaReal.h.
Referenced by Exec(), FindClosestRing(), Init(), and RichRings().
|
private |
Definition at line 183 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 216 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 218 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 151 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 153 of file CbmRichMCbmQaReal.h.
Referenced by DrawRichTofEv(), Exec(), and Init().
|
private |
Definition at line 167 of file CbmRichMCbmQaReal.h.
Referenced by doToT(), Init(), and SetTotRich().
|
private |
Definition at line 165 of file CbmRichMCbmQaReal.h.
Referenced by doToT(), Init(), and SetTotRich().
|
private |
Definition at line 181 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 185 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 177 of file CbmRichMCbmQaReal.h.
Referenced by Exec(), and SetTriggerRichHits().
|
private |
Definition at line 179 of file CbmRichMCbmQaReal.h.
Referenced by SetTriggerTofHits().
|
private |
Definition at line 155 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 187 of file CbmRichMCbmQaReal.h.
Referenced by Exec().
|
private |
Definition at line 163 of file CbmRichMCbmQaReal.h.
Referenced by Exec(), Init(), InitHistograms(), and XOffsetHistos().
|
private |
Definition at line 213 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 214 of file CbmRichMCbmQaReal.h.
|
private |
Definition at line 212 of file CbmRichMCbmQaReal.h.