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);
61  std::unique_ptr<TBox> drawBox(const double x1,
62  const double y1,
63  const double x2,
64  const double y2,
65  const int color = kGreen +2,
66  const int fillStyle = hollowFilling);
67 
68  std::unique_ptr<TLine> drawLine(const MuonR4::SegmentFit::Parameters& pars,
69  const double lowEnd, const double highEnd,
70  const int color = kRed +1,
71  const int lineStyle = kDashed,
72  const int view = objViewEta);
78  std::unique_ptr<TLatex> drawLabel(const std::string& text,
79  const double xPos,
80  const double yPos,
81  const unsigned int fontSize = 18);
86  std::unique_ptr<TLatex> drawAtlasLabel(const double xPos,
87  const double yPos,
88  const std::string& status = "Internal");
94  std::unique_ptr<TLatex> drawLumiSqrtS(const double xPos,
95  const double yPos,
96  const std::string_view sqrtS="14",
97  const std::string_view lumi = "");
98 
99 
100 
101 
102 }
103 #endif
MuonValR4::fullFilling
constexpr int fullFilling
Definition: VisualizationHelpers.h:20
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
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:32
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:50
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:23
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: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
lumiFormat.lumi
lumi
Definition: lumiFormat.py:106
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: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:63
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:67
MuonValR4::hatchedFilling
constexpr int hatchedFilling
Definition: VisualizationHelpers.h:21
drawFromPickle.view
view
Definition: drawFromPickle.py:294