4#ifndef MUONR4_MUONVISUALIZATIONHELPERS_H
5#define MUONR4_MUONVISUALIZATIONHELPERS_H
28 constexpr int objViewEta = Acts::toUnderlying(MuonR4::SegmentFit::AxisDefs::etaCov);
29 constexpr int objViewPhi = Acts::toUnderlying(MuonR4::SegmentFit::AxisDefs::phiCov);
32 std::vector<std::unique_ptr<TObject>>
clone(
const std::vector<std::unique_ptr<TObject>>& cloneMe);
42 const int color = kViolet,
52 const double boxWidth,
53 const double boxHeight,
54 const int color = kGreen +2,
65 std::unique_ptr<TBox>
drawBox(
const double x1,
69 const int color = kGreen +2,
79 const double lowEnd,
const double highEnd,
80 const int color = kRed +1,
81 const int lineStyle = kDashed,
91 const int color = kRed + 1,
92 const int lineStyle = kSolid,
102 const int color = kRed +1,
103 const int lineStyle = kDashed,
110 std::unique_ptr<TLatex>
drawLabel(
const std::string& text,
113 const unsigned int fontSize = 18);
119 std::unique_ptr<TLatex>
drawLabelNDC(
const std::string& text,
122 const unsigned int fontSize = 18);
129 const std::string& status =
"Internal");
137 const std::string_view sqrtS=
"14",
138 const std::string_view lumi =
"");
Eigen::Matrix< double, 3, 1 > Vector3D
Acts::Experimental::CompositeSpacePointLineFitter::ParamVec_t Parameters
Lightweight algorithm to read xAOD MDT sim hits and (fast-digitised) drift circles from SG and fill a...
constexpr int objViewEta
ObjectView.
constexpr int hollowFilling
Filling codes for hollow / fullFilling / hatched filling.
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.
constexpr int hatchedFilling
std::vector< std::unique_ptr< TObject > > clone(const std::vector< std::unique_ptr< TObject > > &cloneMe)
std::unique_ptr< TEllipse > drawDriftCircle(const Amg::Vector3D ¢er, const double radius, const int color=kViolet, const int fillStyle=hollowFilling)
Create a TEllipse for drawing a drift circle.
constexpr int fullFilling
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)
Draw an arror between two endpoints in the y-z or the x-z plane.
std::unique_ptr< TLatex > drawLabel(const std::string &text, const double xPos, const double yPos, const unsigned int fontSize=18)
Create a TLatex label,.
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.
std::unique_ptr< TLatex > drawAtlasLabel(const double xPos, const double yPos, const std::string &status="Internal")
Create a ATLAS label.
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.
std::unique_ptr< TLatex > drawLabelNDC(const std::string &text, const double xPos, const double yPos, const unsigned int fontSize=18)
Create a TLatex label,.