ATLAS Offline Software
Loading...
Searching...
No Matches
RpcPadContainer.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 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
34// Insert a pad.
35
38
39//**********************************************************************
40
41// Return the total number of cma in the container.
42
47
48 for (; it != iend; ++it ) {
49 count += (*it)->size();
50 }
51 return count;
52}
53
54
55//**********************************************************************
56// Free functions.
57//**********************************************************************
58
59// Output stream.
60
61std::ostream& operator<<(std::ostream& lhs, const RpcPadContainer& rhs) {
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}
80
81//**********************************************************************
82
83
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
RpcPadContainer(unsigned int hashmax)
void push_back(RpcCoinMatrix *cm)
Convert identifier to idhash.
size_type pad_size() const
static const 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