#include "DataFormats/DetId/interface/DetId.h"
#include <ostream>
#include <vector>
Go to the source code of this file.
std::ostream& operator<< |
( |
std::ostream & |
s, |
|
|
const CaloSamples & |
samps |
|
) |
| |
Definition at line 115 of file CaloSamples.cc.
References mps_fire::i, CaloSamples::id(), dqmiolumiharvest::j, CaloSamples::preciseSize(), alignCSCRings::s, and CaloSamples::size().
116 s <<
"DetId " << samples.id();
118 float preciseStep = samples.preciseSize() / samples.size();
119 s <<
", " << samples.size() <<
" samples";
121 s <<
", " << samples.preciseSize() <<
" preciseSamples"
122 <<
", " << preciseStep <<
" preciseStep";
124 for (
int i = 0;
i < samples.size();
i++) {
125 s <<
i <<
":" << samples[
i] <<
" precise:";
126 int precise_start(
i * preciseStep), precise_end(precise_start + preciseStep);
127 for (
int j(precise_start); ((
j < precise_end) && (
j < samples.preciseSize())); ++
j)
128 s <<
" " << samples.preciseAt(
j);