ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonDigitContainer
MuonDigitContainer
MdtDigitContainer.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// MdtDigitContainer.h
6
7
#ifndef MUONDIGITCONTAINER_MDTDIGITCONAINTER_H
8
#define MUONDIGITCONTAINER_MDTDIGITCONAINTER_H
9
10
// David Adams
11
// November 2001
12
//
13
// Muon digit container.
14
//
15
// This container provides access to muon digits and provides
16
// a mechanism for recording them.
17
//
18
// Converters will enable reading from raw data, zebra and
19
// conventional StoreGate technologies (Objectivty, root).
20
// They will also enable writing to all but zebra.
21
//
22
// Usage:
23
//
24
// // Create module ID's.
25
// MdtModuleId bil11(BIL,1,1);
26
// MdtModuleId bml11(BML,1,1);
27
// MdtModuleId bol11(BOL,1,1);
28
// // Insert some digits.
29
// digs.push_back(MdtDigit(MdtChannelId(bil11, 0, 0, 8), 101));
30
// digs.push_back(MdtDigit(MdtChannelId(bil11, 0, 1, 16), 101));
31
// digs.push_back(MdtDigit(MdtChannelId(bml11, 1, 0, 12), 72));
32
// // Check subcontainers.
33
// assert( digs.digits(bil11).size() == 2 );
34
// assert( digs.digits(bml11).size() == 1 );
35
// assert( digs.digits(bol11).size() == 0 );
36
40
41
#include <vector>
42
#include <string>
43
#include "
MuonDigitContainer/MdtDigitCollection.h
"
44
#include "
AthenaKernel/CLASS_DEF.h
"
45
#include "
EventContainers/IdentifiableContainer.h
"
46
47
48
class
MdtDigitContainer
49
:
public
IdentifiableContainer
<MdtDigitCollection>
50
{
51
public
:
52
MdtDigitContainer
(
unsigned
int
hash_max) ;
53
~MdtDigitContainer
() ;
54
55
typedef
MdtDigitCollection::size_type
size_type
;
56
typedef
IdentifiableContainer<MdtDigitCollection>
MyBase
;
57
58
size_type
digit_size
()
const
;
59
60
// IdentifiableContainer is still a DataObject
61
// Put CLID here.
62
static
CLID
classID
();
63
65
virtual
const
CLID
&
clID
()
const override
;
66
67
private
:
68
69
70
};
71
72
CLASS_DEF
(
MdtDigitContainer
,4191,0)
73
74
// Output stream.
75
std
::
ostream
& operator<<(
std
::
ostream
& lhs,
const
MdtDigitContainer
& rhs);
76
77
#endif
78
79
CLASS_DEF.h
macros to associate a CLID to a type
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
CLID
uint32_t CLID
The Class ID type.
Definition
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
IdentifiableContainer.h
This class is a general container which can hold objects of accessed by an IdentifierHash For more in...
IdentifiableContainer
IdentifiableContainerMT< T > IdentifiableContainer
Definition
IdentifiableContainer.h:11
MdtDigitCollection.h
DataVector< MdtDigit >::size_type
typename DataVectorBase< MdtDigit >::Base::size_type size_type
Definition
DataVector.h:814
MdtDigitContainer
Use IdentifiableContainer with MdtDigitCollection.
Definition
MdtDigitContainer.h:50
MdtDigitContainer::classID
static CLID classID()
Definition
MdtDigitContainer.cxx:42
MdtDigitContainer::size_type
MdtDigitCollection::size_type size_type
Definition
MdtDigitContainer.h:55
MdtDigitContainer::MdtDigitContainer
MdtDigitContainer(unsigned int hash_max)
Definition
MdtDigitContainer.cxx:26
MdtDigitContainer::~MdtDigitContainer
~MdtDigitContainer()
MdtDigitContainer::clID
virtual const CLID & clID() const override
return class ID
Definition
MdtDigitContainer.cxx:47
MdtDigitContainer::digit_size
size_type digit_size() const
Definition
MdtDigitContainer.cxx:57
MdtDigitContainer::MyBase
IdentifiableContainer< MdtDigitCollection > MyBase
Definition
MdtDigitContainer.h:56
ostream
STL class.
const
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0