ATLAS Offline Software
Loading...
Searching...
No Matches
RpcPadContainer.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include "GaudiKernel/Bootstrap.h"
6#include "GaudiKernel/ISvcLocator.h"
7#include "GaudiKernel/IMessageSvc.h"
9
12#include <map>
13#include <cassert>
14#include <iostream>
15
18{
19}
20
25
26//**********************************************************************
27
32
33
35{
36 static const CLID cid = classID();
37 return cid;
38}
39
40
41// Insert a pad.
42
45
46//**********************************************************************
47
48// Return the total number of cma in the container.
49
54
55 for (; it != iend; ++it ) {
56 count += (*it)->size();
57 }
58 return count;
59}
60
61
62//**********************************************************************
63// Free functions.
64//**********************************************************************
65
66// Output stream.
67
68std::ostream& operator<<(std::ostream& lhs, const RpcPadContainer& rhs) {
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}
87
88//**********************************************************************
89
90
uint32_t CLID
The Class ID type.
IdentifiableContainerMT< T > IdentifiableContainer
std::ostream & operator<<(std::ostream &lhs, const RpcPadContainer &rhs)
EventContainers::IdentifiableCache< RpcPad > RpcPad_Cache
SelectAllObjectMT< DCC, OBJECT > SelectAllObject
const_iterator end() const
return const_iterator for end of container
const_iterator begin() const
return const_iterator for first entry
Use IdentifiableContainer with RpcPad.
RpcPad::size_type size_type
virtual const CLID & clID() const override
return class ID
RpcPadContainer(unsigned int hashmax)
void push_back(RpcCoinMatrix *cm)
Convert identifier to idhash.
size_type pad_size() const
static CLID classID()
int count(std::string s, const std::string &regx)
count how many occurances of a regx are in a string
Definition hcg.cxx:146