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 76 of file MmDigitContainer.cxx.

76 {
77 lhs << "MmDigitContainer has " << rhs.digit_size() << " digits:" << endl;
78 typedef SelectAllObject<MmDigitContainer> SELECTOR;
79 SELECTOR sel(&rhs);
80 SELECTOR::const_iterator it = sel.begin();
81 SELECTOR::const_iterator it_end = sel.end();
82
83 bool first = true;
84 for ( ; it!=it_end;++it)
85 {
86 if ( first ) {
87 first = false;
88 } else {
89 lhs << endl;
90 }
91 lhs << " " << *it;
92 }
93 return lhs;
94}
SelectAllObjectMT< DCC, OBJECT > SelectAllObject
size_type digit_size() const
bool first
Definition DeMoScan.py:534