ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArCafJobs
LArCafJobs
AbsShape.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
10
11
#ifndef LArSamples_AbsShape_H
12
#define LArSamples_AbsShape_H
13
14
#include "TArrayI.h"
15
#include "TVectorD.h"
16
#include "TMatrixD.h"
17
#include "
CxxUtils/checker_macros.h
"
18
19
#include "
LArCafJobs/Definitions.h
"
20
21
class
TH1D;
22
class
TGraphErrors;
23
24
namespace
LArSamples
{
25
26
class
SimpleShape
;
27
28
class
ATLAS_NOT_THREAD_SAFE
AbsShape
{
29
30
public
:
31
32
virtual
~AbsShape
() { }
33
35
virtual
unsigned
int
nPoints
()
const
= 0;
36
virtual
double
value
(
unsigned
int
i)
const
= 0;
37
virtual
double
covariance
(
unsigned
int
i,
unsigned
int
j)
const
= 0;
38
virtual
double
time
(
unsigned
int
i)
const
= 0;
39
40
virtual
double
error
(
unsigned
int
i)
const
;
41
TVectorD
values
(
int
lwb,
int
upb)
const
;
42
43
int
findTimeInterval
(
double
time
)
const
;
44
int
interpolate
(
double
time
,
double
&
value
,
double
&
error
)
const
;
45
int
interpolateDiff
(
double
time
,
double
&
diff
)
const
;
46
bool
interpolate
(
const
AbsShape
& other, TVectorD&
values
,
CovMatrix
& errors,
int
lwb = -1,
int
upb = -1)
const
;
47
bool
interpolateDiff
(
const
AbsShape
& other, TVectorD& diffs,
int
lwb = -1,
int
upb = -1)
const
;
48
49
// From AbsShape
50
CovMatrix
covarianceMatrix
(
int
lwb = -1,
int
upb = -1,
51
const
CovMatrix
& refErr =
CovMatrix
(),
52
bool
withCorrs =
true
)
const
;
53
54
CovMatrix
invCovarianceMatrix
(
int
lwb = -1,
int
upb = -1,
55
const
CovMatrix
& refErr =
CovMatrix
(),
56
bool
withCorrs =
true
)
const
;
57
58
CovMatrix
covarianceMatrix
(
unsigned
int
nPoints
,
bool
withCorrs =
true
)
const
;
59
CovMatrix
invCovarianceMatrix
(
unsigned
int
nPoints
,
bool
withCorrs =
true
)
const
;
60
62
double
maxValue
(
bool
withErrors =
false
)
const
;
63
double
minValue
(
bool
withErrors =
false
)
const
;
64
int
maxPosition
()
const
;
65
int
minPosition
()
const
;
66
67
TGraphErrors*
graph
(
bool
timeInUnitOfSamples =
false
)
const
;
68
SimpleShape
*
resample
(
unsigned
int
nPts)
const
;
69
70
protected
:
71
72
AbsShape
() { }
73
};
74
}
75
#endif
76
maxValue
#define maxValue(current, test)
Definition
CompoundLayerMaterialCreator.h:22
minValue
#define minValue(current, test)
Definition
CompoundLayerMaterialCreator.h:21
Definitions.h
diff
void diff(const Jet &rJet1, const Jet &rJet2, std::map< std::string, double > varDiff)
Difference between jets - Non-Class function required by trigger.
Definition
Jet.cxx:631
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::findTimeInterval
int findTimeInterval(double time) const
Definition
AbsShape.cxx:71
LArSamples::AbsShape::nPoints
virtual unsigned int nPoints() const =0
LArSamples::AbsShape::time
virtual double time(unsigned int i) const =0
LArSamples::AbsShape::values
TVectorD values(int lwb, int upb) const
Definition
AbsShape.cxx:135
LArSamples::AbsShape::maxPosition
int maxPosition() const
Definition
AbsShape.cxx:52
LArSamples::AbsShape::invCovarianceMatrix
CovMatrix invCovarianceMatrix(int lwb=-1, int upb=-1, const CovMatrix &refErr=CovMatrix(), bool withCorrs=true) const
Definition
AbsShape.cxx:215
LArSamples::AbsShape::minPosition
int minPosition() const
Definition
AbsShape.cxx:61
LArSamples::AbsShape::AbsShape
AbsShape()
Definition
AbsShape.h:72
LArSamples::AbsShape::value
virtual double value(unsigned int i) const =0
LArSamples::AbsShape::graph
TGraphErrors * graph(bool timeInUnitOfSamples=false) const
Definition
AbsShape.cxx:186
LArSamples::AbsShape::resample
SimpleShape * resample(unsigned int nPts) const
Definition
AbsShape.cxx:237
LArSamples::AbsShape::~AbsShape
virtual ~AbsShape()
Definition
AbsShape.h:32
LArSamples::AbsShape::covarianceMatrix
CovMatrix covarianceMatrix(int lwb=-1, int upb=-1, const CovMatrix &refErr=CovMatrix(), bool withCorrs=true) const
Definition
AbsShape.cxx:198
LArSamples::AbsShape::covariance
virtual double covariance(unsigned int i, unsigned int j) const =0
LArSamples::AbsShape::interpolate
int interpolate(double time, double &value, double &error) const
Definition
AbsShape.cxx:83
LArSamples::AbsShape::interpolateDiff
int interpolateDiff(double time, double &diff) const
Definition
AbsShape.cxx:108
LArSamples::SimpleShape
Definition
SimpleShape.h:25
LArSamples
Definition
AbsShape.h:24
LArSamples::CovMatrix
TMatrixTSym< double > CovMatrix
Definition
LArCalorimeter/LArCafJobs/LArCafJobs/Definitions.h:11
error
Definition
IImpactPoint3dEstimator.h:72
Generated on
for ATLAS Offline Software by
1.17.0