ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonDigitContainer
MuonDigitContainer
TgcDigitContainer.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
// TgcDigitContainer.h
6
7
#ifndef MUONDIGITCONTAINER_TGCDIGITCONAINTER_H
8
#define MUONDIGITCONTAINER_TGCDIGITCONAINTER_H
9
10
// David Adams
11
// November 2001
12
13
// Ketevi A. Assamagan, September 27 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
// TgcModuleId bil11(T1E,1,4);
29
// TgcModuleId bml11(T4E,-1,10);
30
// TgcModuleId bol11(T1F,1,1);
31
// // Insert some digits.
32
// digs.push_back(TgcDigit(TgcChannelId(bil11, 1, 0, 1)));
33
// digs.push_back(TgcDigit(TgcChannelId(bil11, 2, 1, 2)));
34
// digs.push_back(TgcDigit(TgcChannelId(bml11, 3, 0, 5)));
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>
46
#include "
MuonDigitContainer/TgcDigitCollection.h
"
47
#include "
AthenaKernel/CLASS_DEF.h
"
48
#include "
EventContainers/IdentifiableContainer.h
"
49
50
51
class
TgcDigitContainer
52
:
public
IdentifiableContainer
<TgcDigitCollection>
53
{
54
public
:
55
TgcDigitContainer
(
unsigned
int
hash_max) ;
56
~TgcDigitContainer
() ;
57
58
typedef
TgcDigitCollection::size_type
size_type
;
59
typedef
IdentifiableContainer<TgcDigitCollection>
MyBase
;
60
61
size_type
digit_size
()
const
;
62
63
// IdentifiableContainer is still a DataObject
64
// Put CLID here.
65
static
CLID
classID
();
66
68
virtual
const
CLID
&
clID
()
const override
;
69
70
private
:
71
72
73
};
74
75
CLASS_DEF
(
TgcDigitContainer
,4193,0)
76
77
// Output stream.
78
std
::
ostream
& operator<<(
std
::
ostream
& lhs,
const
TgcDigitContainer
& rhs);
79
80
#endif
81
82
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
TgcDigitCollection.h
DataVector< TgcDigit >::size_type
typename DataVectorBase< TgcDigit >::Base::size_type size_type
Definition
DataVector.h:814
TgcDigitContainer
Use IdentifiableContainer with TgcDigitCollection.
Definition
TgcDigitContainer.h:53
TgcDigitContainer::clID
virtual const CLID & clID() const override
return class ID
Definition
TgcDigitContainer.cxx:47
TgcDigitContainer::size_type
TgcDigitCollection::size_type size_type
Definition
TgcDigitContainer.h:58
TgcDigitContainer::~TgcDigitContainer
~TgcDigitContainer()
TgcDigitContainer::MyBase
IdentifiableContainer< TgcDigitCollection > MyBase
Definition
TgcDigitContainer.h:59
TgcDigitContainer::digit_size
size_type digit_size() const
Definition
TgcDigitContainer.cxx:57
TgcDigitContainer::classID
static CLID classID()
Definition
TgcDigitContainer.cxx:42
TgcDigitContainer::TgcDigitContainer
TgcDigitContainer(unsigned int hash_max)
Definition
TgcDigitContainer.cxx:26
ostream
STL class.
const
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0