ATLAS Offline Software
Loading...
Searching...
No Matches
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
12
15
16#include <map>
17#include <vector>
18
27
28class 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
43 {
44 };
45
47 ID identify() const { return m_id;}
48
50 void setTT(const TT_ID& id,
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
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
77};
78
80
81#endif
82
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
An STL vector of pointers that by default owns its pointed-to elements.
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
Container Class for LArCell in a ROB used by EF.
ID identify() const
return identity of the FEB corresponding to this container
ID m_id
internal map for TTs
HWIdentifier ID
required for a Digit Collection
std::map< TT_ID, ITPAIR > ID_IT_MAP
ID to Iterator Map.
virtual ~LArCellCollection()
destructor
std::pair< const_iterator, const_iterator > ITPAIR
iterator pair for begin and end
void getTT(const TT_ID &id, const_iterator &b, const_iterator &e) const
get the TriggerTower
LArCellCollection(const ID &id)
construct a container for a given Front End Board
void setTT(const TT_ID &id, const_iterator b, const_iterator e)
set the TriggerTower
void addfebenergy(LArFebEnergy &larfebenergy)
set the feb energy
ID_IT_MAP m_Map
ID to Iterator Map.
std::vector< LArFebEnergy > m_febE
vector of FEB energies
Data object for LAr calorimeter readout cell.
Definition LArCell.h:53
Holds partial energy sums Ex,Ey,Ez for each Feb.
Forward declaration.