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 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