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

◆ operator<<()

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

Definition at line 69 of file EcalTriggerPrimitiveDigi.cc.

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

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

◆ swap()

void swap ( EcalTriggerPrimitiveDigi lh,
EcalTriggerPrimitiveDigi rh 
)
inline

Definition at line 73 of file EcalTriggerPrimitiveDigi.h.

73 { lh.swap(rh); }

References mathSSE::lh.

EcalTriggerPrimitiveDigi::size
int size() const
Definition: EcalTriggerPrimitiveDigi.h:30
mps_fire.i
i
Definition: mps_fire.py:428
mathSSE::lh
bool int lh
Definition: SIMDVec.h:20
alignCSCRings.s
s
Definition: alignCSCRings.py:92
EcalTriggerPrimitiveDigi::sample
const EcalTriggerPrimitiveSample & sample(int i) const
Definition: EcalTriggerPrimitiveDigi.h:33
EcalTriggerPrimitiveDigi::id
const EcalTrigTowerDetId & id() const
Definition: EcalTriggerPrimitiveDigi.h:29