Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
VisualizationHelpers.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 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 #include "TArrow.h"
17 
18 namespace MuonValR4 {
20  constexpr int hollowFilling = 0;
21  constexpr int fullFilling = 1001;
22  constexpr int hatchedFilling = 3344;
23 
27 
35  std::unique_ptr<TEllipse> drawDriftCircle(const Amg::Vector3D& center,
36  const double radius,
37  const int color = kViolet,
38  const int fillStyle = hollowFilling);
39 
40 
48  std::unique_ptr<TBox> drawBox(const Amg::Vector3D& boxCenter,
49  const double boxWidth,
50  const double boxHeight,
51  const int color = kGreen +2,
52  const int fillStyle = hollowFilling,
53  const int view = objViewEta);
62  std::unique_ptr<TBox> drawBox(const double x1,
63  const double y1,
64  const double x2,
65  const double y2,
66  const int color = kGreen +2,
67  const int fillStyle = hollowFilling);
75  std::unique_ptr<TLine> drawLine(const MuonR4::SegmentFit::Parameters& pars,
76  const double lowEnd, const double highEnd,
77  const int color = kRed +1,
78  const int lineStyle = kDashed,
79  const int view = objViewEta);
80 
81  std::unique_ptr<TArrow> drawArrow(const Amg::Vector3D& start,
82  const Amg::Vector3D& dir,
83  const int color = kRed +1,
84  const int lineStyle = kDashed,
85  const int view = objViewEta);
91  std::unique_ptr<TLatex> drawLabel(const std::string& text,
92  const double xPos,
93  const double yPos,
94  const unsigned int fontSize = 18);
99  std::unique_ptr<TLatex> drawAtlasLabel(const double xPos,
100  const double yPos,
101  const std::string& status = "Internal");
107  std::unique_ptr<TLatex> drawLumiSqrtS(const double xPos,
108  const double yPos,
109  const std::string_view sqrtS="14",
110  const std::string_view lumi = "");
111 }
112 #endif
MuonValR4::fullFilling
constexpr int fullFilling
Definition: VisualizationHelpers.h:21
make_hlt_rep.pars
pars
Definition: make_hlt_rep.py:90
plotBeamSpotCompare.x1
x1
Definition: plotBeamSpotCompare.py:216
color
Definition: jFexInputByteStreamTool.cxx:25
MuonR4::SegmentFit::Parameters
AmgVector(toInt(ParamDefs::nPars)) Parameters
Definition: MuonHoughDefs.h:48
mergePhysValFiles.start
start
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:14
plotBeamSpotCompare.x2
x2
Definition: plotBeamSpotCompare.py:218
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:41
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)
Draws a line from the segment fit parameters.
Definition: VisualizationHelpers.cxx:59
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:32
makeTRTBarrelCans.y1
tuple y1
Definition: makeTRTBarrelCans.py:15
MuonR4::SegmentFit::AxisDefs::phi
@ phi
GeoPrimitives.h
makeTRTBarrelCans.y2
tuple y2
Definition: makeTRTBarrelCans.py:18
MuonValR4::objViewPhi
constexpr int objViewPhi
Definition: VisualizationHelpers.h:26
MuonR4::SegmentFit::AxisDefs::eta
@ eta
beamspotman.dir
string dir
Definition: beamspotman.py:623
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:25
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
lumiFormat.lumi
lumi
Definition: lumiFormat.py:106
MuonValR4::drawArrow
std::unique_ptr< TArrow > drawArrow(const Amg::Vector3D &start, const Amg::Vector3D &dir, const int color=kRed+1, const int lineStyle=kDashed, const int view=objViewEta)
Definition: VisualizationHelpers.cxx:22
SegmentFitterEventData.h
MuonValR4::hollowFilling
constexpr int hollowFilling
Filling codes for hollow / fullFilling / hatched filling.
Definition: VisualizationHelpers.h:20
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:12
MuonValR4::drawAtlasLabel
std::unique_ptr< TLatex > drawAtlasLabel(const double xPos, const double yPos, const std::string &status="Internal")
Create a ATLAS label.
Definition: VisualizationHelpers.cxx:72
merge.status
status
Definition: merge.py:17
MuonValR4::drawLumiSqrtS
std::unique_ptr< TLatex > drawLumiSqrtS(const double xPos, const double yPos, const std::string_view sqrtS="14", const std::string_view lumi="")
Create a luminosity sqrtS label.
Definition: VisualizationHelpers.cxx:76
MuonValR4::hatchedFilling
constexpr int hatchedFilling
Definition: VisualizationHelpers.h:22
drawFromPickle.view
view
Definition: drawFromPickle.py:294