CondFormats
Calibration
interface
fixedArray.h
Go to the documentation of this file.
1
#ifndef FIXEDARRAY_H
2
#define FIXEDARRAY_H
3
4
#include "
CondFormats/Serialization/interface/Serializable.h
"
5
template
<
typename
T,
unsigned
int
S>
6
class
fixedArray
{
7
public
:
8
fixedArray
() {}
9
10
operator
T
*() {
return
content
; }
11
operator
const
T
*()
const
{
return
content
; }
12
T
&
operator[]
(
const
unsigned
int
i
) {
return
content
[
i
]; }
13
const
T
&
operator[]
(
const
unsigned
int
i
)
const
{
return
content
[
i
]; }
14
15
private
:
16
T
content
[
S
];
17
18
COND_SERIALIZABLE
;
19
};
20
#endif
fixedArray::operator[]
const T & operator[](const unsigned int i) const
Definition:
fixedArray.h:13
mps_fire.i
i
Definition:
mps_fire.py:355
fixedArray::operator[]
T & operator[](const unsigned int i)
Definition:
fixedArray.h:12
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:39
fixedArray::fixedArray
fixedArray()
Definition:
fixedArray.h:8
S
double S(const TLorentzVector &, const TLorentzVector &)
Definition:
Particle.cc:97
Serializable.h
fixedArray
Definition:
fixedArray.h:6
T
long double T
Definition:
Basic3DVectorLD.h:48
fixedArray::content
T content[S]
Definition:
fixedArray.h:16
Generated for CMSSW Reference Manual by
1.8.16