CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/DataFormats/EcalDigi/interface/EcalTriggerPrimitiveDigi.h File Reference

#include <ostream>
#include <vector>
#include "DataFormats/EcalDetId/interface/EcalTrigTowerDetId.h"
#include "DataFormats/EcalDigi/interface/EcalTriggerPrimitiveSample.h"

Go to the source code of this file.

Classes

class  EcalTriggerPrimitiveDigi

Functions

std::ostream & operator<< (std::ostream &s, const EcalTriggerPrimitiveDigi &digi)
void swap (EcalTriggerPrimitiveDigi &lh, EcalTriggerPrimitiveDigi &rh)

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const EcalTriggerPrimitiveDigi digi 
)

Definition at line 75 of file EcalTriggerPrimitiveDigi.cc.

References i, EcalTriggerPrimitiveDigi::id(), alignCSCRings::s, EcalTriggerPrimitiveDigi::sample(), and EcalTriggerPrimitiveDigi::size().

                                                                            {
  s << digi.id() << " " << digi.size() << " samples " << std::endl;
  for (int i=0; i<digi.size(); i++) 
    s << "  " << digi.sample(i) << std::endl;
  return s;
}
void swap ( EcalTriggerPrimitiveDigi lh,
EcalTriggerPrimitiveDigi rh 
) [inline]

Definition at line 79 of file EcalTriggerPrimitiveDigi.h.

References EcalTriggerPrimitiveDigi::swap().

                                                                             {
  lh.swap(rh);
}