test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CalibFormats
CaloObjects
src
IntegerCaloSamples.cc
Go to the documentation of this file.
1
#include "
CalibFormats/CaloObjects/interface/IntegerCaloSamples.h
"
2
3
IntegerCaloSamples::IntegerCaloSamples
() : id_(),
size_
(0), presamples_(0) {
4
for
(
int
i
=0;
i
<
MAXSAMPLES
;
i
++)
data_
[
i
]=0;
5
}
6
7
IntegerCaloSamples::IntegerCaloSamples
(
const
DetId
&
id
,
int
size
) : id_(id),
size_
(size), presamples_(0) {
8
for
(
int
i
=0;
i
<
MAXSAMPLES
;
i
++)
data_
[
i
]=0;
9
}
10
11
void
IntegerCaloSamples::setPresamples
(
int
pre) {
12
presamples_
=pre;
13
}
14
15
16
std::ostream&
operator<<
(std::ostream&
s
,
const
IntegerCaloSamples
& samples) {
17
s <<
"DetId="
<< samples.
id
().
rawId
();
18
s <<
", "
<< samples.
size
() <<
"samples"
<< std::endl;
19
for
(
int
i
=0;
i
<samples.
size
();
i
++)
20
s <<
i
<<
":"
<< samples[
i
] << std::endl;
21
return
s
;
22
}
i
int i
Definition:
DBlmapReader.cc:9
IntegerCaloSamples
Definition:
IntegerCaloSamples.h:16
IntegerCaloSamples::data_
uint32_t data_[MAXSAMPLES]
Definition:
IntegerCaloSamples.h:39
IntegerCaloSamples::setPresamples
void setPresamples(int pre)
set presample information
Definition:
IntegerCaloSamples.cc:11
operator<<
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition:
ALILine.cc:187
DetId::rawId
uint32_t rawId() const
get the raw id
Definition:
DetId.h:43
IntegerCaloSamples::size
int size() const
get the size
Definition:
IntegerCaloSamples.h:25
IntegerCaloSamples.h
DetId
Definition:
DetId.h:18
alignCSCRings.s
list s
Definition:
alignCSCRings.py:91
IntegerCaloSamples::MAXSAMPLES
static const int MAXSAMPLES
Definition:
IntegerCaloSamples.h:36
IntegerCaloSamples::IntegerCaloSamples
IntegerCaloSamples()
Definition:
IntegerCaloSamples.cc:3
edm::size_
size_(0)
Definition:
OwnArray.h:181
IntegerCaloSamples::id
DetId id() const
get the (generic) id
Definition:
IntegerCaloSamples.h:22
IntegerCaloSamples::presamples_
int presamples_
Definition:
IntegerCaloSamples.h:40
findQualityFiles.size
tuple size
Write out results.
Definition:
findQualityFiles.py:442
Generated for CMSSW Reference Manual by
1.8.5