ATLAS Offline Software
Loading...
Searching...
No Matches
RpcPadContainer.cxx File Reference
#include "GaudiKernel/Bootstrap.h"
#include "GaudiKernel/ISvcLocator.h"
#include "GaudiKernel/IMessageSvc.h"
#include "StoreGate/StoreGateSvc.h"
#include "MuonRDO/RpcPadContainer.h"
#include "EventContainers/SelectAllObject.h"
#include <map>
#include <cassert>
#include <iostream>
Include dependency graph for RpcPadContainer.cxx:

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 61 of file RpcPadContainer.cxx.

61 {
62 lhs << "RpcPadContainer has " << rhs.pad_size() << " pads:" << std::endl;
63 typedef SelectAllObject<RpcPadContainer> SELECTOR;
64 SELECTOR sel(&rhs);
65 SELECTOR::const_iterator it = sel.begin();
66 SELECTOR::const_iterator it_end = sel.end();
67
68 bool first = true;
69 for ( ; it!=it_end;++it)
70 {
71 if ( first ) {
72 first = false;
73 } else {
74 lhs << std::endl;
75 }
76 lhs << " " << *it;
77 }
78 return lhs;
79}
SelectAllObjectMT< DCC, OBJECT > SelectAllObject
size_type pad_size() const
bool first
Definition DeMoScan.py:534