CMS 3D CMS Logo

Classes | Functions
EcalEBTriggerPrimitiveDigi.h File Reference
#include <ostream>
#include <vector>
#include "DataFormats/EcalDetId/interface/EBDetId.h"
#include "DataFormats/EcalDigi/interface/EcalEBTriggerPrimitiveSample.h"

Go to the source code of this file.

Classes

class  EcalEBTriggerPrimitiveDigi
 

Functions

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

Function Documentation

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

Definition at line 78 of file EcalEBTriggerPrimitiveDigi.cc.

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

Referenced by swap().

78  {
79  s << digi.id() << " " << digi.size() << " samples " << std::endl;
80  for (int i=0; i<digi.size(); i++)
81  s << " " << digi.sample(i) << std::endl;
82  return s;
83 }
const EcalEBTriggerPrimitiveSample & sample(int i) const
void swap ( EcalEBTriggerPrimitiveDigi lh,
EcalEBTriggerPrimitiveDigi rh 
)
inline

Definition at line 66 of file EcalEBTriggerPrimitiveDigi.h.

References operator<<(), alignCSCRings::s, and EcalEBTriggerPrimitiveDigi::swap().

66  {
67  lh.swap(rh);
68 }
void swap(EcalEBTriggerPrimitiveDigi &rh)