CalibFormats
CaloObjects
interface
IntegerCaloSamples.h
Go to the documentation of this file.
1
#ifndef INTEGERCALOSAMPLES_H
2
#define INTEGERCALOSAMPLES_H 1
3
4
#include "
DataFormats/DetId/interface/DetId.h
"
5
#include <ostream>
6
16
class
IntegerCaloSamples
{
17
public
:
18
IntegerCaloSamples
();
19
explicit
IntegerCaloSamples
(
const
DetId
&
id
,
int
size
);
20
22
DetId
id
()
const
{
return
id_
; }
23
25
int
size
()
const
{
return
size_
; }
27
uint32_t &
operator[]
(
int
i
) {
return
data_
[
i
]; }
29
uint32_t
operator[]
(
int
i
)
const
{
return
data_
[
i
]; }
30
32
int
presamples
()
const
{
return
presamples_
; }
34
void
setPresamples
(
int
pre);
35
36
static
const
int
MAXSAMPLES
= 10;
37
38
private
:
39
DetId
id_
;
40
uint32_t
data_
[
MAXSAMPLES
];
//
41
int
size_
,
presamples_
;
42
};
43
44
std::ostream &
operator<<
(std::ostream &
s
,
const
IntegerCaloSamples
&samps);
45
46
#endif
mps_fire.i
i
Definition:
mps_fire.py:355
IntegerCaloSamples
Definition:
IntegerCaloSamples.h:16
IntegerCaloSamples::id_
DetId id_
Definition:
IntegerCaloSamples.h:39
DetId
Definition:
DetId.h:17
alignCSCRings.s
s
Definition:
alignCSCRings.py:92
IntegerCaloSamples::presamples_
int presamples_
Definition:
IntegerCaloSamples.h:41
IntegerCaloSamples::size_
int size_
Definition:
IntegerCaloSamples.h:41
IntegerCaloSamples::size
int size() const
get the size
Definition:
IntegerCaloSamples.h:25
IntegerCaloSamples::presamples
int presamples() const
access presample information
Definition:
IntegerCaloSamples.h:32
operator<<
std::ostream & operator<<(std::ostream &s, const IntegerCaloSamples &samps)
Definition:
IntegerCaloSamples.cc:15
IntegerCaloSamples::operator[]
uint32_t operator[](int i) const
const operator to access samples
Definition:
IntegerCaloSamples.h:29
IntegerCaloSamples::id
DetId id() const
get the (generic) id
Definition:
IntegerCaloSamples.h:22
DetId.h
IntegerCaloSamples::IntegerCaloSamples
IntegerCaloSamples()
Definition:
IntegerCaloSamples.cc:3
IntegerCaloSamples::setPresamples
void setPresamples(int pre)
set presample information
Definition:
IntegerCaloSamples.cc:13
IntegerCaloSamples::operator[]
uint32_t & operator[](int i)
mutable operator to access samples
Definition:
IntegerCaloSamples.h:27
IntegerCaloSamples::data_
uint32_t data_[MAXSAMPLES]
Definition:
IntegerCaloSamples.h:40
IntegerCaloSamples::MAXSAMPLES
static const int MAXSAMPLES
Definition:
IntegerCaloSamples.h:36
Generated for CMSSW Reference Manual by
1.8.16