ATLAS Offline Software
Loading...
Searching...
No Matches
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

ostreamoperator<< (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}
SelectAllObjectMT< DCC, OBJECT > SelectAllObject
size_type digit_size() const
bool first
Definition DeMoScan.py:534