ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArSamplesMon
LArSamplesMon
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
"
17
#include "
CxxUtils/checker_macros.h
"
18
19
class
TGraphErrors;
20
class
TLegend;
21
22
namespace
LArSamples
{
23
24
enum
DrawParams
{
DataFirst
= 1,
SamplingTimeUnits
= 2,
Legend
= 4,
AtlasStyle
= 8 };
25
26
class
ATLAS_NOT_THREAD_SAFE
ShapeDrawer
{
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
AbsShape.h
checker_macros.h
Define macros for attributes used to control the static checker.
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition
checker_macros.h:212
LArSamples::AbsShape
Definition
AbsShape.h:28
LArSamples::ShapeDrawer::ShapeDrawer
ShapeDrawer(int pars)
Constructor (takes ownership of LArCellInfo object).
Definition
ShapeDrawer.h:31
LArSamples::ShapeDrawer::m_pars
int m_pars
Definition
ShapeDrawer.h:59
reference
Definition
hcg.cxx:440
LArSamples
Definition
AbsShape.h:24
LArSamples::DrawParams
DrawParams
Definition
ShapeDrawer.h:24
LArSamples::SamplingTimeUnits
@ SamplingTimeUnits
Definition
ShapeDrawer.h:24
LArSamples::DataFirst
@ DataFirst
Definition
ShapeDrawer.h:24
LArSamples::AtlasStyle
@ AtlasStyle
Definition
ShapeDrawer.h:24
LArSamples::Legend
@ Legend
Definition
ShapeDrawer.h:24
index
Definition
index.py:1
Generated on
for ATLAS Offline Software by
1.17.0