CMS 3D CMS Logo

EcalPulseSymmCovariances.h
Go to the documentation of this file.
1 #ifndef EcalPulseSymmCovariances_h
2 #define EcalPulseSymmCovariances_h
3 
5 
8 
9 #include <algorithm>
10 
12 public:
14 
16 
17  int indexFor(int i, int j) const {
18  int m = std::min(i, j);
19  int n = std::max(i, j);
20  return n + EcalPulseShape::TEMPLATESAMPLES * m - m * (m + 1) / 2;
21  }
22 
23  float val(int i, int j) const { return covval[indexFor(i, j)]; }
24  float& val(int i, int j) { return covval[indexFor(i, j)]; }
25 
27 };
28 
32 
33 #endif
mps_fire.i
i
Definition: mps_fire.py:428
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
min
T min(T a, T b)
Definition: MathUtil.h:58
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
EcalPulseSymmCovariance::EcalPulseSymmCovariance
EcalPulseSymmCovariance()
Definition: EcalPulseSymmCovariances.cc:3
EcalPulseSymmCovariancesMap
EcalCondObjectContainer< EcalPulseSymmCovariance > EcalPulseSymmCovariancesMap
Definition: EcalPulseSymmCovariances.h:29
EcalCondObjectContainer
Definition: EcalCondObjectContainer.h:13
EcalCondObjectContainer.h
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:78
EcalPulseSymmCovariance::indexFor
int indexFor(int i, int j) const
Definition: EcalPulseSymmCovariances.h:17
EcalPulseSymmCovariance::val
float val(int i, int j) const
Definition: EcalPulseSymmCovariances.h:23
EcalPulseSymmCovariance
Definition: EcalPulseSymmCovariances.h:11
EcalPulseSymmCovariance::covval
float covval[EcalPulseShape::TEMPLATESAMPLES *(EcalPulseShape::TEMPLATESAMPLES+1)/2]
Definition: EcalPulseSymmCovariances.h:15
EcalPulseShapes.h
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
Serializable.h
EcalPulseSymmCovariances
EcalPulseSymmCovariancesMap EcalPulseSymmCovariances
Definition: EcalPulseSymmCovariances.h:31
EcalPulseSymmCovariance::val
float & val(int i, int j)
Definition: EcalPulseSymmCovariances.h:24
EcalPulseShape::TEMPLATESAMPLES
static const int TEMPLATESAMPLES
Definition: EcalPulseShapes.h:10
EcalCondObjectContainer::const_iterator
std::vector< Item >::const_iterator const_iterator
Definition: EcalCondObjectContainer.h:19
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
EcalPulseSymmCovariancesMapIterator
EcalPulseSymmCovariancesMap::const_iterator EcalPulseSymmCovariancesMapIterator
Definition: EcalPulseSymmCovariances.h:30