ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
10#ifndef LArSamples_ShapeErrorData_H
11#define LArSamples_ShapeErrorData_H
12
14#include "TVectorD.h"
16
17namespace 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(),
32 m_xi(other.m_xi), m_xip(other.m_xip), m_xiErr(other.m_xiErr), m_xipErr(other.m_xipErr),
33 m_tbar(other.m_tbar), m_n(other.m_n) { }
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
storage of the time histories of all the cells
Definition IndexRange.h:19
const TVectorD & xi() const
unsigned int nSamples() const
const TVectorD & xip() const
const CovMatrix & xipErr() const
ShapeErrorData * add(const ShapeErrorData &other) const
void setShapeErrorType(ShapeErrorType type)
ShapeErrorData(const ShapeErrorData &other)
const CovMatrix & xiErr() const
ShapeErrorType shapeErrorType() const
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.
ShapeErrorType m_shapeErrorType