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

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 71 of file MdtDigitContainer.cxx.

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