ATLAS Offline Software
Loading...
Searching...
No Matches
MmDigitContainer.h File Reference
#include <vector>
#include <string>
#include "MuonDigitContainer/MmDigitCollection.h"
#include "AthenaKernel/CLASS_DEF.h"
#include "EventContainers/IdentifiableContainer.h"
Include dependency graph for MmDigitContainer.h:

Go to the source code of this file.

Classes

class  MmDigitContainer
 Use IdentifiableContainer with MmDigitCollection. More...

Functions

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

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::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