CbmRoot
Loading...
Searching...
No Matches
CbmRichEventDisplay.h
Go to the documentation of this file.
1/* Copyright (C) 2012-2023 UGiessen/JINR-LIT, Giessen/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Semen Lebedev [committer], Martin Beyer */
4
14#ifndef CBM_RICH_EVENT_DISPLAY
15#define CBM_RICH_EVENT_DISPLAY
16
17#include "CbmDigiManager.h"
18#include "CbmHistManager.h"
19
20#include <FairTask.h>
21
22#include <TClonesArray.h>
23
24#include <string>
25
26class CbmRichRing;
27class CbmEvent;
28
37class CbmRichEventDisplay : public FairTask {
38public:
40 CbmRichEventDisplay() : FairTask("CbmRichEventDisplay") {};
41
44
47
50
52 InitStatus Init();
53
55 void Exec(Option_t* opt);
56
58 void Finish();
59
61 void SetDrawRings(bool b) { fDrawRings = b; }
62
64 void SetDrawHits(bool b) { fDrawHits = b; }
65
67 void SetDrawPoints(bool b) { fDrawPoints = b; }
68
71
76 void SetOutputDir(const std::string& dir) { fOutputDir = dir; }
77
82 void SetOutputFormat(const std::string& format) { fOutputFormat = format; }
83
84private:
85 int fEventNum {};
86
88 CbmHistManager* fHM {nullptr};
89
90 TClonesArray* fCbmEvents {nullptr};
91 TClonesArray* fRichPoints {nullptr};
92 TClonesArray* fRichHits {nullptr};
93 TClonesArray* fRichRings {nullptr};
94 TClonesArray* fRichMatches {nullptr};
95 TClonesArray* fRichProjections {nullptr};
96
97 std::string fOutputDir {"RichEventDisplays"};
98 std::string fOutputFormat {"png,pdf"};
99
100 bool fDrawRings {true};
101 bool fDrawHits {true};
102 bool fDrawPoints {false};
103 bool fDrawProjections {true};
104
105 void DrawOneEvent(CbmEvent* event);
106
107 void DrawOnePmtPlane(const std::string& plane, CbmEvent* event);
108
109 void DrawEllipse(CbmRichRing* ring);
110
112};
113
114#endif
Histogram manager.
CbmDigiManager.
Class characterising one event by a collection of links (indices) to data objects,...
Definition CbmEvent.h:34
Histogram manager.
Event display for the RICH detector.
ClassDef(CbmRichEventDisplay, 2)
void SetOutputFormat(const std::string &format)
Set output file format (any combination of png, gif, eps, svg and pdf).
CbmRichEventDisplay & operator=(const CbmRichEventDisplay &)=delete
CbmRichEventDisplay(const CbmRichEventDisplay &)=delete
~CbmRichEventDisplay()=default
TClonesArray * fRichMatches
void DrawOnePmtPlane(const std::string &plane, CbmEvent *event)
void SetOutputDir(const std::string &dir)
Set output directory where you want to write results (figures and json).
void DrawEllipse(CbmRichRing *ring)
void SetDrawProjections(bool b)
void DrawOneEvent(CbmEvent *event)
CbmDigiManager * fDigiManager
void Exec(Option_t *opt)
TClonesArray * fRichProjections