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 68 of file RpcPadContainer.cxx.

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