CMS 3D CMS Logo

Classes | Functions
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 77 of file EcalTriggerPrimitiveDigi.cc.

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

Referenced by swap().

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

Definition at line 81 of file EcalTriggerPrimitiveDigi.h.

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

81  {
82  lh.swap(rh);
83 }
void swap(EcalTriggerPrimitiveDigi &rh)