ATLAS Offline Software
VisualizationHelpers.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONR4_MUONVISUALIZATIONHELPERS_H
5 #define MUONR4_MUONVISUALIZATIONHELPERS_H
6 
7 #include <memory>
10 
11 
12 #include "TEllipse.h"
13 #include "TBox.h"
14 #include "TLatex.h"
15 #include "TLine.h"
16 
17 namespace MuonValR4 {
19  constexpr int hollowFilling = 0;
20  constexpr int fullFilling = 1001;
21  constexpr int hatchedFilling = 3344;
22 
26 
34  std::unique_ptr<TEllipse> drawDriftCircle(const Amg::Vector3D& center,
35  const double radius,
36  const int color = kViolet,
37  const int fillStyle = hollowFilling);
38 
39 
47  std::unique_ptr<TBox> drawBox(const Amg::Vector3D& boxCenter,
48  const double boxWidth,
49  const double boxHeight,
50  const int color = kGreen +2,
51  const int fillStyle = hollowFilling,
52  const int view = objViewEta);
53 
54  std::unique_ptr<TLine> drawLine(const MuonR4::SegmentFit::Parameters& pars,
55  const double lowEnd, const double highEnd,
56  const int color = kRed +1,
57  const int lineStyle = kDashed,
58  const int view = objViewEta);
64  std::unique_ptr<TLatex> drawLabel(const std::string& text,
65  const double xPos,
66  const double yPos,
67  const unsigned int fontSize = 18);
68 
69 
70 }
71 #endif
MuonValR4::fullFilling
constexpr int fullFilling
Definition: VisualizationHelpers.h:20
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
color
Definition: jFexInputByteStreamTool.cxx:25
MuonR4::SegmentFit::Parameters
AmgVector(toInt(ParamDefs::nPars)) Parameters
Definition: MuonHoughDefs.h:48
MuonValR4::drawBox
std::unique_ptr< TBox > drawBox(const Amg::Vector3D &boxCenter, const double boxWidth, const double boxHeight, const int color=kGreen+2, const int fillStyle=hollowFilling, const int view=objViewEta)
Creates a box for drawing, e.g strip measurements.
Definition: VisualizationHelpers.cxx:31
MuonValR4::drawLine
std::unique_ptr< TLine > drawLine(const MuonR4::SegmentFit::Parameters &pars, const double lowEnd, const double highEnd, const int color=kRed+1, const int lineStyle=kDashed, const int view=objViewEta)
Definition: VisualizationHelpers.cxx:43
MuonValR4::drawLabel
std::unique_ptr< TLatex > drawLabel(const std::string &text, const double xPos, const double yPos, const unsigned int fontSize=18)
Create a TLatex label,.
Definition: VisualizationHelpers.cxx:22
MuonR4::SegmentFit::AxisDefs::phi
@ phi
GeoPrimitives.h
MuonValR4::objViewPhi
constexpr int objViewPhi
Definition: VisualizationHelpers.h:25
MuonR4::SegmentFit::AxisDefs::eta
@ eta
MuonValR4
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
Definition: IPatternVisualizationTool.h:23
MuonValR4::objViewEta
constexpr int objViewEta
ObjectView.
Definition: VisualizationHelpers.h:24
MuonR4::SegmentFit::toInt
constexpr int toInt(const ParamDefs p)
Definition: MuonHoughDefs.h:42
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
ParticleGun_SamplingFraction.radius
radius
Definition: ParticleGun_SamplingFraction.py:96
SegmentFitterEventData.h
MuonValR4::hollowFilling
constexpr int hollowFilling
Filling codes for hollow / fullFilling / hatched filling.
Definition: VisualizationHelpers.h:19
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11
MuonValR4::drawDriftCircle
std::unique_ptr< TEllipse > drawDriftCircle(const Amg::Vector3D &center, const double radius, const int color=kViolet, const int fillStyle=hollowFilling)
Create a TEllipse for drawing a drift circle.
Definition: VisualizationHelpers.cxx:11
MuonValR4::hatchedFilling
constexpr int hatchedFilling
Definition: VisualizationHelpers.h:21
drawFromPickle.view
view
Definition: drawFromPickle.py:294