ATLAS Offline Software
Loading...
Searching...
No Matches
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"
18
20
21class TH1D;
22class TGraphErrors;
23
24namespace LArSamples {
25
26 class SimpleShape;
27
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
73 };
74}
75#endif
76
#define maxValue(current, test)
#define minValue(current, test)
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
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
int findTimeInterval(double time) const
Definition AbsShape.cxx:71
virtual unsigned int nPoints() const =0
virtual double time(unsigned int i) const =0
TVectorD values(int lwb, int upb) const
Definition AbsShape.cxx:135
int maxPosition() const
Definition AbsShape.cxx:52
CovMatrix invCovarianceMatrix(int lwb=-1, int upb=-1, const CovMatrix &refErr=CovMatrix(), bool withCorrs=true) const
Definition AbsShape.cxx:215
int minPosition() const
Definition AbsShape.cxx:61
virtual double value(unsigned int i) const =0
TGraphErrors * graph(bool timeInUnitOfSamples=false) const
Definition AbsShape.cxx:186
SimpleShape * resample(unsigned int nPts) const
Definition AbsShape.cxx:237
virtual ~AbsShape()
Definition AbsShape.h:32
CovMatrix covarianceMatrix(int lwb=-1, int upb=-1, const CovMatrix &refErr=CovMatrix(), bool withCorrs=true) const
Definition AbsShape.cxx:198
virtual double covariance(unsigned int i, unsigned int j) const =0
int interpolate(double time, double &value, double &error) const
Definition AbsShape.cxx:83
int interpolateDiff(double time, double &diff) const
Definition AbsShape.cxx:108