ATLAS Offline Software
Functions
MmDigitContainer.cxx File Reference
#include "MuonDigitContainer/MmDigitContainer.h"
#include "EventContainers/SelectAllObject.h"
#include <map>
#include <cassert>
#include <iostream>
Include dependency graph for MmDigitContainer.cxx:

Go to the source code of this file.

Functions

ostream & operator<< (ostream &lhs, const MmDigitContainer &rhs)
 

Function Documentation

◆ operator<<()

ostream& operator<< ( ostream &  lhs,
const MmDigitContainer rhs 
)

Definition at line 72 of file MmDigitContainer.cxx.

72  {
73  lhs << "MmDigitContainer has " << rhs.digit_size() << " digits:" << endl;
74  typedef SelectAllObject<MmDigitContainer> SELECTOR;
75  SELECTOR sel(&rhs);
76  SELECTOR::const_iterator it = sel.begin();
77  SELECTOR::const_iterator it_end = sel.end();
78 
79  bool first = true;
80  for ( ; it!=it_end;++it)
81  {
82  if ( first ) {
83  first = false;
84  } else {
85  lhs << endl;
86  }
87  lhs << " " << *it;
88  }
89  return lhs;
90 }
skel.it
it
Definition: skel.GENtoEVGEN.py:423
SelectAllObjectMT
Definition: SelectAllObjectMT.h:11
sel
sel
Definition: SUSYToolsTester.cxx:92
DeMoScan.first
bool first
Definition: DeMoScan.py:534
MmDigitContainer::digit_size
size_type digit_size() const
Definition: MmDigitContainer.cxx:54