#include <ostream>
#include <vector>
#include "DataFormats/DetId/interface/DetId.h"
Go to the source code of this file.
std::ostream& operator<< |
( |
std::ostream & |
s, |
|
|
const CaloSamples & |
samps |
|
) |
| |
Definition at line 104 of file CaloSamples.cc.
References i, CaloSamples::id(), j, CaloSamples::preciseSize(), alignCSCRings::s, and CaloSamples::size().
105 s <<
"DetId " << samples.id();
107 float preciseStep = samples.preciseSize()/samples.size();
108 s <<
", "<< samples.size() <<
" samples";
110 s <<
", " << samples.preciseSize() <<
" preciseSamples"
111 <<
", " << preciseStep <<
" preciseStep";
113 for (
int i=0;
i<samples.size();
i++) {
114 s <<
i <<
":" << samples[
i] <<
" precise:";
115 int precise_start(
i*preciseStep), precise_end(precise_start + preciseStep);
116 for (
int j(precise_start); ((
j<precise_end) && (
j< samples.preciseSize()));
118 s <<
" " << samples.preciseAt(
j);