ATLAS Offline Software
ShapeErrorData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
10 #ifndef LArSamples_ShapeErrorData_H
11 #define LArSamples_ShapeErrorData_H
12 
14 #include "TVectorD.h"
15 #include "LArCafJobs/Definitions.h"
16 
17 namespace LArSamples {
18 
19  class ShapeErrorData : public IndexRange {
20 
21  public:
22 
24  ShapeErrorData(const TVectorD& xi = TVectorD(), const TVectorD& xip = TVectorD(),
25  const CovMatrix& xiErr = CovMatrix(),
26  const CovMatrix& xipErr = CovMatrix(),
27  double tbar = Definitions::none, int n = -1)
29 
31  IndexRange(),
34 
35  virtual ~ShapeErrorData() { }
36 
38  unsigned int nSamples() const { return m_xi.GetNrows(); }
39 
40  const TVectorD& xi() const { return m_xi; }
41  const TVectorD& xip() const { return m_xip; }
42  const CovMatrix& xiErr() const { return m_xiErr; }
43  const CovMatrix& xipErr() const { return m_xipErr; }
44 
45  int lwb() const { return m_xi.GetLwb(); }
46  int upb() const { return m_xi.GetUpb(); }
47 
48  const TVectorD xi (int first, int last) const;
49  const TVectorD xip (int first, int last) const;
50  const CovMatrix xiErr (int first, int last) const;
51  const CovMatrix xipErr(int first, int last) const;
52 
53  double tbar() const { return m_tbar; }
54  int n() const { return m_n; }
55 
56  ShapeErrorData* add(const ShapeErrorData& other) const;
57 
60 
61  private:
62 
63  TVectorD m_xi, m_xip;
65  double m_tbar{};
66  int m_n{};
68  };
69 }
70 
71 #endif
72 
LArSamples::ShapeErrorData::~ShapeErrorData
virtual ~ShapeErrorData()
Definition: ShapeErrorData.h:35
LArSamples::ShapeErrorData::tbar
double tbar() const
Definition: ShapeErrorData.h:53
IndexRange.h
LArSamples::ShapeErrorData::ShapeErrorData
ShapeErrorData(const ShapeErrorData &other)
Definition: ShapeErrorData.h:30
LArSamples::ShapeErrorData::add
ShapeErrorData * add(const ShapeErrorData &other) const
Definition: ShapeErrorData.cxx:58
LArSamples::CovMatrix
TMatrixTSym< double > CovMatrix
Definition: LArCalorimeter/LArCafJobs/LArCafJobs/Definitions.h:11
LArSamples
Definition: AbsShape.h:24
LArSamples::ShapeErrorData::m_n
int m_n
Definition: ShapeErrorData.h:66
LArSamples::ShapeErrorData::nSamples
unsigned int nSamples() const
Definition: ShapeErrorData.h:38
LArSamples::ShapeErrorData::xip
const TVectorD & xip() const
Definition: ShapeErrorData.h:41
LArSamples::ShapeErrorData::m_xipErr
CovMatrix m_xipErr
Definition: ShapeErrorData.h:64
LArSamples::Definitions::none
static const double none
Definition: LArCalorimeter/LArCafJobs/LArCafJobs/Definitions.h:17
LArSamples::ShapeErrorData::xipErr
const CovMatrix & xipErr() const
Definition: ShapeErrorData.h:43
LArSamples::ShapeErrorType
ShapeErrorType
Definition: LArCalorimeter/LArCafJobs/LArCafJobs/Definitions.h:21
LArSamples::ShapeErrorData::m_xi
TVectorD m_xi
Definition: ShapeErrorData.h:63
LArSamples::ShapeErrorData::xiErr
const CovMatrix & xiErr() const
Definition: ShapeErrorData.h:42
LArSamples::ShapeErrorData::n
int n() const
Definition: ShapeErrorData.h:54
LArSamples::ShapeErrorData::lwb
int lwb() const
Definition: ShapeErrorData.h:45
LArSamples::ShapeErrorData::m_xip
TVectorD m_xip
Definition: ShapeErrorData.h:63
LArSamples::ShapeErrorData::m_shapeErrorType
ShapeErrorType m_shapeErrorType
Definition: ShapeErrorData.h:67
LArSamples::ShapeErrorData::setShapeErrorType
void setShapeErrorType(ShapeErrorType type)
Definition: ShapeErrorData.h:59
LArSamples::ShapeErrorData::ShapeErrorData
ShapeErrorData(const TVectorD &xi=TVectorD(), const TVectorD &xip=TVectorD(), const CovMatrix &xiErr=CovMatrix(), const CovMatrix &xipErr=CovMatrix(), double tbar=Definitions::none, int n=-1)
Constructor
Definition: ShapeErrorData.h:24
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
LArSamples::ShapeErrorData::shapeErrorType
ShapeErrorType shapeErrorType() const
Definition: ShapeErrorData.h:58
LArSamples::ShapeErrorData::upb
int upb() const
Definition: ShapeErrorData.h:46
LArSamples::ShapeErrorData::m_xiErr
CovMatrix m_xiErr
Definition: ShapeErrorData.h:64
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
DeMoScan.first
bool first
Definition: DeMoScan.py:536
LArSamples::IndexRange
storage of the time histories of all the cells
Definition: IndexRange.h:19
LArSamples::CellShapeError
@ CellShapeError
Definition: LArCalorimeter/LArCafJobs/LArCafJobs/Definitions.h:21
Definitions.h
LArSamples::ShapeErrorData
Definition: ShapeErrorData.h:19
LArSamples::ShapeErrorData::xi
const TVectorD & xi() const
Definition: ShapeErrorData.h:40
LArSamples::ShapeErrorData::m_tbar
double m_tbar
Definition: ShapeErrorData.h:65