ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArRecEvent
LArRecEvent
LArCellCollection.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
#ifndef LArCellCollection_H
6
#define LArCellCollection_H
7
8
#include "
Identifier/HWIdentifier.h
"
9
#include "
LArRecEvent/LArCell.h
"
10
#include "
AthContainers/DataVector.h
"
11
#include "
AthenaKernel/CLASS_DEF.h
"
12
13
#include "
Identifier/IdentifierHash.h
"
14
#include "
LArRecEvent/LArFebEnergy.h
"
15
16
#include <map>
17
#include <vector>
18
27
28
class
LArCellCollection
:
public
DataVector
<LArCell> {
29
30
public
:
31
33
typedef
HWIdentifier
ID
;
34
typedef
unsigned
int
TT_ID
;
35
typedef
LArCell
OBJECT
;
36
38
LArCellCollection
(
const
ID
&
id
) :
39
DataVector
<
LArCell
>(
SG
::VIEW_ELEMENTS),
m_id
(id) { };
40
42
virtual
~LArCellCollection
()
43
{
44
};
45
47
ID
identify
()
const
{
return
m_id
;}
48
50
void
setTT
(
const
TT_ID
&
id
,
51
const_iterator
b,
const_iterator
e);
52
54
void
getTT
(
const
TT_ID
&
id
,
const_iterator
& b,
55
const_iterator
& e)
const
;
56
58
void
addfebenergy
(
LArFebEnergy
& larfebenergy){
59
m_febE
.push_back(larfebenergy);
60
}
61
62
private
:
63
65
ID
m_id
;
66
68
typedef
std::pair<const_iterator,const_iterator>
ITPAIR
;
70
typedef
std::map<TT_ID,ITPAIR>
ID_IT_MAP
;
71
73
std::vector<LArFebEnergy>
m_febE
;
74
76
ID_IT_MAP
m_Map
;
77
};
78
79
CLASS_DEF
(
LArCellCollection
,2724,0)
80
81
#endif
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
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
HWIdentifier.h
IdentifierHash.h
LArCell.h
LArFebEnergy.h
const_iterator
DataVector< LArCell >::DataVector
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
HWIdentifier
Definition
HWIdentifier.h:13
LArCellCollection
Container Class for LArCell in a ROB used by EF.
Definition
LArCellCollection.h:28
LArCellCollection::identify
ID identify() const
return identity of the FEB corresponding to this container
Definition
LArCellCollection.h:47
LArCellCollection::m_id
ID m_id
internal map for TTs
Definition
LArCellCollection.h:65
LArCellCollection::TT_ID
unsigned int TT_ID
Definition
LArCellCollection.h:34
LArCellCollection::ID
HWIdentifier ID
required for a Digit Collection
Definition
LArCellCollection.h:33
LArCellCollection::ID_IT_MAP
std::map< TT_ID, ITPAIR > ID_IT_MAP
ID to Iterator Map.
Definition
LArCellCollection.h:70
LArCellCollection::~LArCellCollection
virtual ~LArCellCollection()
destructor
Definition
LArCellCollection.h:42
LArCellCollection::ITPAIR
std::pair< const_iterator, const_iterator > ITPAIR
iterator pair for begin and end
Definition
LArCellCollection.h:68
LArCellCollection::getTT
void getTT(const TT_ID &id, const_iterator &b, const_iterator &e) const
get the TriggerTower
Definition
LArCellCollection.cxx:19
LArCellCollection::LArCellCollection
LArCellCollection(const ID &id)
construct a container for a given Front End Board
Definition
LArCellCollection.h:38
LArCellCollection::setTT
void setTT(const TT_ID &id, const_iterator b, const_iterator e)
set the TriggerTower
Definition
LArCellCollection.cxx:11
LArCellCollection::addfebenergy
void addfebenergy(LArFebEnergy &larfebenergy)
set the feb energy
Definition
LArCellCollection.h:58
LArCellCollection::m_Map
ID_IT_MAP m_Map
ID to Iterator Map.
Definition
LArCellCollection.h:76
LArCellCollection::m_febE
std::vector< LArFebEnergy > m_febE
vector of FEB energies
Definition
LArCellCollection.h:73
LArCellCollection::OBJECT
LArCell OBJECT
Definition
LArCellCollection.h:35
LArCell
Data object for LAr calorimeter readout cell.
Definition
LArCell.h:53
LArFebEnergy
Holds partial energy sums Ex,Ey,Ez for each Feb.
Definition
LArFebEnergy.h:21
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
Generated on
for ATLAS Offline Software by
1.17.0