CMS 3D CMS Logo

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

Go to the source code of this file.

Classes

class  EcalEBPhase2TriggerPrimitiveDigi
 

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 56 of file EcalEBPhase2TriggerPrimitiveDigi.cc.

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

56  {
57  s << digi.id() << " " << digi.size() << " samples " << std::endl;
58  for (int i = 0; i < digi.size(); i++)
59  s << " " << digi.sample(i) << std::endl;
60  return s;
61 }
const EcalEBPhase2TriggerPrimitiveSample & sample(int i) const

◆ swap()

Definition at line 59 of file EcalEBPhase2TriggerPrimitiveDigi.h.

References mathSSE::lh.

Referenced by EcalEBPhase2TriggerPrimitiveDigi::swap().

59 { lh.swap(rh); }
bool int lh
Definition: SIMDVec.h:27