ATLAS Offline Software
Loading...
Searching...
No Matches
RpcDigitContainer.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5// RpcDigitContainer.h
6
7#ifndef MUONDIGITCONTAINER_RPCDIGITCONAINTER_H
8#define MUONDIGITCONTAINER_RPCDIGITCONAINTER_H
9
10// David Adams
11// November 2001
12
13// Ketevi A. Assamagan, September 25 2002
14
15//
16// Muon digit container.
17//
18// This container provides access to muon digits and provides
19// a mechanism for recording them.
20//
21// Converters will enable reading from raw data, zebra and
22// conventional StoreGate technologies (Objectivty, root).
23// They will also enable writing to all but zebra.
24//
25// Usage:
26//
27// // Create module ID's.
28// RpcModuleId bil11(BIL,1,1);
29// RpcModuleId bml11(BML,1,1);
30// RpcModuleId bol11(BOL,1,1);
31// // Insert some digits.
32// digs.push_back(RpcDigit(RpcChannelId(bil11, 1, 2, 1, 1, 0, 6)));
33// digs.push_back(RpcDigit(RpcChannelId(bil11, 2, 1, 2, 2, 1, 2)));
34// digs.push_back(RpcDigit(RpcChannelId(bml11, 1, 3, 1, 1, 0, 10)));
35// // Check subcontainers.
36// assert( digs.digits(bil11).size() == 2 );
37// assert( digs.digits(bml11).size() == 1 );
38// assert( digs.digits(bol11).size() == 0 );
39
43
44#include <vector>
45#include <string>
49
50
52 :public IdentifiableContainer<RpcDigitCollection>
53{
54public:
55 RpcDigitContainer(unsigned int hash_max) ;
57
60
61 size_type digit_size() const ;
62
63 // IdentifiableContainer is still a DataObject
64 // Put CLID here.
65 static const CLID& classID();
66
68 virtual const CLID& clID() const
69 {
70 return classID();
71 }
72
73 private:
74
75
76};
77
79
80// Output stream.
81std::ostream& operator<<(std::ostream& lhs, const RpcDigitContainer& rhs);
82
83#endif
84
85
86
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
uint32_t CLID
The Class ID type.
This class is a general container which can hold objects of accessed by an IdentifierHash For more in...
IdentifiableContainerMT< T > IdentifiableContainer
typename DataVectorBase< RpcDigit >::Base::size_type size_type
Definition DataVector.h:814
Use IdentifiableContainer with RpcDigitCollection.
RpcDigitCollection::size_type size_type
IdentifiableContainer< RpcDigitCollection > MyBase
RpcDigitContainer(unsigned int hash_max)
size_type digit_size() const
static const CLID & classID()
virtual const CLID & clID() const
return class ID
STL class.
STL namespace.