CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 75 of file EcalTriggerPrimitiveDigi.cc.

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

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

Definition at line 79 of file EcalTriggerPrimitiveDigi.h.

References EcalTriggerPrimitiveDigi::swap().

79  {
80  lh.swap(rh);
81 }
void swap(EcalTriggerPrimitiveDigi &rh)