Main Page
Namespaces
Classes
Package Documentation
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
14
content
[
i
]; }
15
16
private
:
17
T
content
[
S
];
18
19
COND_SERIALIZABLE
;
20
};
21
#endif
mps_fire.i
i
Definition:
mps_fire.py:269
fixedArray::fixedArray
fixedArray()
Definition:
fixedArray.h:8
fixedArray::operator[]
T & operator[](const unsigned int i)
Definition:
fixedArray.h:12
S
double S(const TLorentzVector &, const TLorentzVector &)
Definition:
Particle.cc:99
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:38
Serializable.h
T
long double T
Definition:
Basic3DVectorLD.h:57
fixedArray::content
T content[S]
Definition:
fixedArray.h:17
fixedArray
Definition:
fixedArray.h:6
Generated for CMSSW Reference Manual by
1.8.11