ATLAS Offline Software
Loading...
Searching...
No Matches
ShapeDrawer.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
9
10
11#ifndef LArSamples_ShapeDrawer_H
12#define LArSamples_ShapeDrawer_H
13
14#include <vector>
15#include <memory>
16#include "LArCafJobs/AbsShape.h"
18
19class TGraphErrors;
20class TLegend;
21
22namespace LArSamples {
23
25
27
28 public:
29
31 ShapeDrawer(int pars) : m_pars(pars) { }
32
33 TGraphErrors* graph(const AbsShape& shape, const char* title = "") const;
34
35 TGraphErrors* draw(const AbsShape* shape, const char* title = "", bool drawAxes = true, const char* gopt = "P") const;
36
37 bool draw(const char* title, const std::vector<const AbsShape*>& shapes,
38 const AbsShape* reference = 0, const AbsShape* refSamples = 0) const;
39 bool draw(const char* title, const AbsShape* shape, const AbsShape* reference = 0, const AbsShape* refSamples = 0) const;
40
41 bool drawAndDelete(const char* title,
42 std::vector<std::unique_ptr<const AbsShape> >&& shapes,
43 std::unique_ptr<const AbsShape> reference = 0,
44 std::unique_ptr<const AbsShape> refSamples = 0) const;
45 bool drawAndDelete(const char* title,
46 std::unique_ptr<const AbsShape> shape,
47 std::unique_ptr<const AbsShape> reference = nullptr,
48 std::unique_ptr<const AbsShape> refSamples = nullptr) const;
49
50 bool colorize(TGraphErrors* data, unsigned int index) const;
51
52 bool yAxisLimits(const std::vector<const AbsShape*>& shapes, double& yMin, double& yMax) const;
53
54 private:
55
56 bool drawRef(const char* title, const AbsShape* reference, const AbsShape* refSamples, bool first = true, TLegend* legend = 0) const;
57 bool drawData(const char* title, const std::vector<const AbsShape*>& shapes, const AbsShape* reference, bool first = true, TLegend* legend = 0) const;
58
59 int m_pars;
60 };
61}
62#endif
char data[hepevt_bytes_allocation_ATLAS]
Definition HepEvt.cxx:11
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
ShapeDrawer(int pars)
Constructor (takes ownership of LArCellInfo object)
Definition ShapeDrawer.h:31
@ SamplingTimeUnits
Definition ShapeDrawer.h:24
Definition index.py:1