CondFormats
EcalObjects
interface
EcalPulseSymmCovariances.h
Go to the documentation of this file.
1
#ifndef EcalPulseSymmCovariances_h
2
#define EcalPulseSymmCovariances_h
3
4
#include "
CondFormats/Serialization/interface/Serializable.h
"
5
6
#include "
CondFormats/EcalObjects/interface/EcalPulseShapes.h
"
7
#include "
CondFormats/EcalObjects/interface/EcalCondObjectContainer.h
"
8
9
struct
EcalPulseSymmCovariance
{
10
public
:
11
EcalPulseSymmCovariance
();
12
13
float
covval
[
EcalPulseShape::TEMPLATESAMPLES
* (
EcalPulseShape::TEMPLATESAMPLES
+ 1) / 2];
14
15
float
val
(
int
i
,
int
j
)
const
{
16
int
k
= -1;
17
if
(
j
>=
i
)
18
k
=
j
+ (
EcalPulseShape::TEMPLATESAMPLES
- 1) *
i
;
19
else
20
k
=
i
+ (
EcalPulseShape::TEMPLATESAMPLES
- 1) *
j
;
21
return
covval
[
k
];
22
}
23
24
COND_SERIALIZABLE
;
25
};
26
27
typedef
EcalCondObjectContainer<EcalPulseSymmCovariance>
EcalPulseSymmCovariancesMap
;
28
typedef
EcalPulseSymmCovariancesMap::const_iterator
EcalPulseSymmCovariancesMapIterator
;
29
typedef
EcalPulseSymmCovariancesMap
EcalPulseSymmCovariances
;
30
31
#endif
mps_fire.i
i
Definition:
mps_fire.py:355
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:39
EcalPulseSymmCovariance::EcalPulseSymmCovariance
EcalPulseSymmCovariance()
Definition:
EcalPulseSymmCovariances.cc:3
EcalPulseSymmCovariancesMap
EcalCondObjectContainer< EcalPulseSymmCovariance > EcalPulseSymmCovariancesMap
Definition:
EcalPulseSymmCovariances.h:27
EcalCondObjectContainer< EcalPulseSymmCovariance >
EcalCondObjectContainer.h
EcalPulseSymmCovariance::val
float val(int i, int j) const
Definition:
EcalPulseSymmCovariances.h:15
EcalPulseSymmCovariance
Definition:
EcalPulseSymmCovariances.h:9
dqmdumpme.k
k
Definition:
dqmdumpme.py:60
EcalPulseSymmCovariance::covval
float covval[EcalPulseShape::TEMPLATESAMPLES *(EcalPulseShape::TEMPLATESAMPLES+1)/2]
Definition:
EcalPulseSymmCovariances.h:13
EcalPulseShapes.h
Serializable.h
EcalPulseSymmCovariances
EcalPulseSymmCovariancesMap EcalPulseSymmCovariances
Definition:
EcalPulseSymmCovariances.h:29
EcalPulseShape::TEMPLATESAMPLES
static const int TEMPLATESAMPLES
Definition:
EcalPulseShapes.h:10
EcalCondObjectContainer< EcalPulseSymmCovariance >::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:28
Generated for CMSSW Reference Manual by
1.8.16