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

◆ operator<<()

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

Definition at line 68 of file EcalEBTriggerPrimitiveDigi.cc.

68  {
69  s << digi.id() << " " << digi.size() << " samples " << std::endl;
70  for (int i = 0; i < digi.size(); i++)
71  s << " " << digi.sample(i) << std::endl;
72  return s;
73 }

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

◆ swap()

void swap ( EcalEBTriggerPrimitiveDigi lh,
EcalEBTriggerPrimitiveDigi rh 
)
inline

Definition at line 61 of file EcalEBTriggerPrimitiveDigi.h.

61 { lh.swap(rh); }

References mathSSE::lh.

mps_fire.i
i
Definition: mps_fire.py:355
mathSSE::lh
bool int lh
Definition: SIMDVec.h:20
EcalEBTriggerPrimitiveDigi::size
int size() const
Definition: EcalEBTriggerPrimitiveDigi.h:29
EcalEBTriggerPrimitiveDigi::sample
const EcalEBTriggerPrimitiveSample & sample(int i) const
Definition: EcalEBTriggerPrimitiveDigi.h:32
alignCSCRings.s
s
Definition: alignCSCRings.py:92
EcalEBTriggerPrimitiveDigi::id
const EBDetId & id() const
Definition: EcalEBTriggerPrimitiveDigi.h:28