ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArSamplesMon
LArSamplesMon
ScaledShiftedShape.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
9
10
#ifndef LArSamples_ScaledShiftedShape_H
11
#define LArSamples_ScaledShiftedShape_H
12
13
#include "
LArCafJobs/AbsShape.h
"
14
15
namespace
LArSamples
{
16
17
class
ATLAS_NOT_THREAD_SAFE
ScaledShiftedShape
:
public
AbsShape
{
18
19
public
:
20
22
ScaledShiftedShape
(
const
AbsShape
&
base
,
double
scaling
= 1,
double
shift
= 0)
23
:
m_base
(&
base
),
m_scaling
(
scaling
),
m_shift
(
shift
) { }
24
25
ScaledShiftedShape
(
const
ScaledShiftedShape
& other)
26
:
AbsShape
(),
m_base
(&other.
base
()),
m_scaling
(other.
scaling
()),
m_shift
(other.
shift
()) { }
27
28
virtual
~ScaledShiftedShape
() { }
29
30
const
AbsShape
&
base
()
const
{
return
*
m_base
; }
31
double
scaling
()
const
{
return
m_scaling
; }
32
double
shift
()
const
{
return
m_shift
; }
33
34
unsigned
int
nPoints
()
const
{
return
base
().nPoints(); }
35
double
value
(
unsigned
int
i)
const
{
return
scaling
()*
base
().value(i); }
36
double
error
(
unsigned
int
i)
const
{
return
scaling
()*
base
().error(i); }
37
double
time
(
unsigned
int
i)
const
{
return
base
().time(i) +
shift
(); }
38
double
covariance
(
unsigned
int
i,
unsigned
int
j)
const
{
return
base
().covariance(i, j)*
scaling
()*
scaling
(); }
39
40
private
:
41
42
const
AbsShape
*
m_base
;
43
double
m_scaling
,
m_shift
;
44
};
45
}
46
47
#endif
48
AbsShape.h
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::AbsShape
AbsShape()
Definition
AbsShape.h:72
LArSamples::ScaledShiftedShape::time
double time(unsigned int i) const
Definition
ScaledShiftedShape.h:37
LArSamples::ScaledShiftedShape::m_shift
double m_shift
Definition
ScaledShiftedShape.h:43
LArSamples::ScaledShiftedShape::value
double value(unsigned int i) const
Definition
ScaledShiftedShape.h:35
LArSamples::ScaledShiftedShape::ScaledShiftedShape
ScaledShiftedShape(const AbsShape &base, double scaling=1, double shift=0)
Constructor.
Definition
ScaledShiftedShape.h:22
LArSamples::ScaledShiftedShape::~ScaledShiftedShape
virtual ~ScaledShiftedShape()
Definition
ScaledShiftedShape.h:28
LArSamples::ScaledShiftedShape::covariance
double covariance(unsigned int i, unsigned int j) const
Definition
ScaledShiftedShape.h:38
LArSamples::ScaledShiftedShape::m_scaling
double m_scaling
Definition
ScaledShiftedShape.h:43
LArSamples::ScaledShiftedShape::shift
double shift() const
Definition
ScaledShiftedShape.h:32
LArSamples::ScaledShiftedShape::nPoints
unsigned int nPoints() const
Definition
ScaledShiftedShape.h:34
LArSamples::ScaledShiftedShape::m_base
const AbsShape * m_base
Definition
ScaledShiftedShape.h:42
LArSamples::ScaledShiftedShape::base
const AbsShape & base() const
Definition
ScaledShiftedShape.h:30
LArSamples::ScaledShiftedShape::error
double error(unsigned int i) const
Definition
ScaledShiftedShape.h:36
LArSamples::ScaledShiftedShape::scaling
double scaling() const
Definition
ScaledShiftedShape.h:31
LArSamples::ScaledShiftedShape::ScaledShiftedShape
ScaledShiftedShape(const ScaledShiftedShape &other)
Definition
ScaledShiftedShape.h:25
base
std::string base
Definition
hcg.cxx:83
LArSamples
Definition
AbsShape.h:24
Generated on
for ATLAS Offline Software by
1.17.0