CMS 3D CMS Logo

IntegerCaloSamples.cc
Go to the documentation of this file.
2 
3 IntegerCaloSamples::IntegerCaloSamples() : id_(), size_(0), presamples_(0) {
4  for (int i = 0; i < MAXSAMPLES; i++)
5  data_[i] = 0;
6 }
7 
8 IntegerCaloSamples::IntegerCaloSamples(const DetId &id, int size) : id_(id), size_(size), presamples_(0) {
9  for (int i = 0; i < MAXSAMPLES; i++)
10  data_[i] = 0;
11 }
12 
14 
15 std::ostream &operator<<(std::ostream &s, const IntegerCaloSamples &samples) {
16  s << "DetId=" << samples.id().rawId();
17  s << ", " << samples.size() << "samples" << std::endl;
18  for (int i = 0; i < samples.size(); i++)
19  s << i << ":" << samples[i] << std::endl;
20  return s;
21 }
mps_fire.i
i
Definition: mps_fire.py:355
IntegerCaloSamples
Definition: IntegerCaloSamples.h:16
EgammaValidation_cff.samples
samples
Definition: EgammaValidation_cff.py:19
DetId
Definition: DetId.h:17
alignCSCRings.s
s
Definition: alignCSCRings.py:92
IntegerCaloSamples::presamples_
int presamples_
Definition: IntegerCaloSamples.h:41
operator<<
std::ostream & operator<<(std::ostream &s, const IntegerCaloSamples &samples)
Definition: IntegerCaloSamples.cc:15
IntegerCaloSamples.h
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
IntegerCaloSamples::IntegerCaloSamples
IntegerCaloSamples()
Definition: IntegerCaloSamples.cc:3
IntegerCaloSamples::setPresamples
void setPresamples(int pre)
set presample information
Definition: IntegerCaloSamples.cc:13
IntegerCaloSamples::data_
uint32_t data_[MAXSAMPLES]
Definition: IntegerCaloSamples.h:40
IntegerCaloSamples::MAXSAMPLES
static const int MAXSAMPLES
Definition: IntegerCaloSamples.h:36
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443