CbmRoot
Loading...
Searching...
No Matches
CbmRichEventDisplay Class Reference

Event display for the RICH detector. More...

#include <CbmRichEventDisplay.h>

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

Public Member Functions

 CbmRichEventDisplay ()
 
 ~CbmRichEventDisplay ()=default
 
 CbmRichEventDisplay (const CbmRichEventDisplay &)=delete
 
CbmRichEventDisplayoperator= (const CbmRichEventDisplay &)=delete
 
InitStatus Init ()
 
void Exec (Option_t *opt)
 
void Finish ()
 
void SetDrawRings (bool b)
 
void SetDrawHits (bool b)
 
void SetDrawPoints (bool b)
 
void SetDrawProjections (bool b)
 
void SetOutputDir (const std::string &dir)
 Set output directory where you want to write results (figures and json).
 
void SetOutputFormat (const std::string &format)
 Set output file format (any combination of png, gif, eps, svg and pdf).
 

Private Member Functions

void DrawOneEvent (CbmEvent *event)
 
void DrawOnePmtPlane (const std::string &plane, CbmEvent *event)
 
void DrawEllipse (CbmRichRing *ring)
 
 ClassDef (CbmRichEventDisplay, 2)
 

Private Attributes

int fEventNum {}
 
CbmDigiManagerfDigiManager {nullptr}
 
CbmHistManagerfHM {nullptr}
 
TClonesArray * fCbmEvents {nullptr}
 
TClonesArray * fRichPoints {nullptr}
 
TClonesArray * fRichHits {nullptr}
 
TClonesArray * fRichRings {nullptr}
 
TClonesArray * fRichMatches {nullptr}
 
TClonesArray * fRichProjections {nullptr}
 
std::string fOutputDir {"RichEventDisplays"}
 
std::string fOutputFormat {"png,pdf"}
 
bool fDrawRings {true}
 
bool fDrawHits {true}
 
bool fDrawPoints {false}
 
bool fDrawProjections {true}
 

Detailed Description

Event display for the RICH detector.

Author
Semen Lebedev
Date
2012

Definition at line 37 of file CbmRichEventDisplay.h.

Constructor & Destructor Documentation

◆ CbmRichEventDisplay() [1/2]

CbmRichEventDisplay::CbmRichEventDisplay ( )
inline

Default constructor

Definition at line 40 of file CbmRichEventDisplay.h.

◆ ~CbmRichEventDisplay()

CbmRichEventDisplay::~CbmRichEventDisplay ( )
default

Destructor

◆ CbmRichEventDisplay() [2/2]

CbmRichEventDisplay::CbmRichEventDisplay ( const CbmRichEventDisplay & )
delete

Copy constructor (disabled)

Member Function Documentation

◆ ClassDef()

CbmRichEventDisplay::ClassDef ( CbmRichEventDisplay ,
2  )
private

◆ DrawEllipse()

void CbmRichEventDisplay::DrawEllipse ( CbmRichRing * ring)
private

◆ DrawOneEvent()

void CbmRichEventDisplay::DrawOneEvent ( CbmEvent * event)
private

Definition at line 72 of file CbmRichEventDisplay.cxx.

References CbmHistManager::CreateCanvas(), DrawH2(), DrawOnePmtPlane(), fEventNum, and fHM.

Referenced by Exec().

◆ DrawOnePmtPlane()

◆ Exec()

void CbmRichEventDisplay::Exec ( Option_t * opt)

Inherited from FairTask

Definition at line 62 of file CbmRichEventDisplay.cxx.

References DrawOneEvent(), fCbmEvents, fEventNum, and SetDefaultDrawStyle().

◆ Finish()

void CbmRichEventDisplay::Finish ( )

Inherited from FairTask

Definition at line 176 of file CbmRichEventDisplay.cxx.

References fHM, fOutputDir, fOutputFormat, and CbmHistManager::SaveCanvasToImage().

◆ Init()

◆ operator=()

CbmRichEventDisplay & CbmRichEventDisplay::operator= ( const CbmRichEventDisplay & )
delete

Assignment operator (disabled)

◆ SetDrawHits()

void CbmRichEventDisplay::SetDrawHits ( bool b)
inline

Draw hits (Enabled by default)

Definition at line 64 of file CbmRichEventDisplay.h.

References fDrawHits.

◆ SetDrawPoints()

void CbmRichEventDisplay::SetDrawPoints ( bool b)
inline

Draw points (Disabled by default)

Definition at line 67 of file CbmRichEventDisplay.h.

References fDrawPoints.

◆ SetDrawProjections()

void CbmRichEventDisplay::SetDrawProjections ( bool b)
inline

Draw projections (Enabled by default)

Definition at line 70 of file CbmRichEventDisplay.h.

References fDrawProjections.

◆ SetDrawRings()

void CbmRichEventDisplay::SetDrawRings ( bool b)
inline

Draw rings (Enabled by default)

Definition at line 61 of file CbmRichEventDisplay.h.

References fDrawRings.

◆ SetOutputDir()

void CbmRichEventDisplay::SetOutputDir ( const std::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 76 of file CbmRichEventDisplay.h.

References fOutputDir.

◆ SetOutputFormat()

void CbmRichEventDisplay::SetOutputFormat ( const std::string & format)
inline

Set output file format (any combination of png, gif, eps, svg and pdf).

Parameters
[in]formatFile format, e.g. png or png,pdf. (Default: png,pdf)

Definition at line 82 of file CbmRichEventDisplay.h.

References fOutputFormat.

Member Data Documentation

◆ fCbmEvents

TClonesArray* CbmRichEventDisplay::fCbmEvents {nullptr}
private

Definition at line 90 of file CbmRichEventDisplay.h.

Referenced by Exec(), and Init().

◆ fDigiManager

CbmDigiManager* CbmRichEventDisplay::fDigiManager {nullptr}
private

Definition at line 87 of file CbmRichEventDisplay.h.

Referenced by Init().

◆ fDrawHits

bool CbmRichEventDisplay::fDrawHits {true}
private

Definition at line 101 of file CbmRichEventDisplay.h.

Referenced by DrawOnePmtPlane(), Init(), and SetDrawHits().

◆ fDrawPoints

bool CbmRichEventDisplay::fDrawPoints {false}
private

Definition at line 102 of file CbmRichEventDisplay.h.

Referenced by DrawOnePmtPlane(), Init(), and SetDrawPoints().

◆ fDrawProjections

bool CbmRichEventDisplay::fDrawProjections {true}
private

Definition at line 103 of file CbmRichEventDisplay.h.

Referenced by DrawOnePmtPlane(), Init(), and SetDrawProjections().

◆ fDrawRings

bool CbmRichEventDisplay::fDrawRings {true}
private

Definition at line 100 of file CbmRichEventDisplay.h.

Referenced by DrawOnePmtPlane(), Init(), and SetDrawRings().

◆ fEventNum

int CbmRichEventDisplay::fEventNum {}
private

Definition at line 85 of file CbmRichEventDisplay.h.

Referenced by DrawOneEvent(), and Exec().

◆ fHM

CbmHistManager* CbmRichEventDisplay::fHM {nullptr}
private

Definition at line 88 of file CbmRichEventDisplay.h.

Referenced by DrawOneEvent(), Finish(), and Init().

◆ fOutputDir

std::string CbmRichEventDisplay::fOutputDir {"RichEventDisplays"}
private

Definition at line 97 of file CbmRichEventDisplay.h.

Referenced by Finish(), and SetOutputDir().

◆ fOutputFormat

std::string CbmRichEventDisplay::fOutputFormat {"png,pdf"}
private

Definition at line 98 of file CbmRichEventDisplay.h.

Referenced by Finish(), and SetOutputFormat().

◆ fRichHits

TClonesArray* CbmRichEventDisplay::fRichHits {nullptr}
private

Definition at line 92 of file CbmRichEventDisplay.h.

Referenced by DrawOnePmtPlane(), and Init().

◆ fRichMatches

TClonesArray* CbmRichEventDisplay::fRichMatches {nullptr}
private

Definition at line 94 of file CbmRichEventDisplay.h.

◆ fRichPoints

TClonesArray* CbmRichEventDisplay::fRichPoints {nullptr}
private

Definition at line 91 of file CbmRichEventDisplay.h.

Referenced by DrawOnePmtPlane(), and Init().

◆ fRichProjections

TClonesArray* CbmRichEventDisplay::fRichProjections {nullptr}
private

Definition at line 95 of file CbmRichEventDisplay.h.

Referenced by DrawOnePmtPlane(), and Init().

◆ fRichRings

TClonesArray* CbmRichEventDisplay::fRichRings {nullptr}
private

Definition at line 93 of file CbmRichEventDisplay.h.

Referenced by DrawOnePmtPlane(), and Init().


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