ATLAS Offline Software
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 
9 #include "LArRecEvent/LArCell.h"
11 #include "AthenaKernel/CLASS_DEF.h"
12 
15 
16 #include <map>
17 #include <vector>
18 
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 ) :
40 
42  virtual ~LArCellCollection()
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 
LArFebEnergy.h
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
LArFebEnergy
Holds partial energy sums Ex,Ey,Ez for each Feb.
Definition: LArFebEnergy.h:21
LArCellCollection::LArCellCollection
LArCellCollection(const ID &id)
construct a container for a given Front End Board
Definition: LArCellCollection.h:38
LArCellCollection::m_febE
std::vector< LArFebEnergy > m_febE
vector of FEB energies
Definition: LArCellCollection.h:73
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
DataVector< LArCell >::const_iterator
DataModel_detail::const_iterator< DataVector > const_iterator
Standard const_iterator.
Definition: DataVector.h:837
SG::VIEW_ELEMENTS
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Definition: OwnershipPolicy.h:18
LArCellCollection::OBJECT
LArCell OBJECT
Definition: LArCellCollection.h:35
LArCellCollection::setTT
void setTT(const TT_ID &id, const_iterator b, const_iterator e)
set the TriggerTower
Definition: LArCellCollection.cxx:11
HWIdentifier
Definition: HWIdentifier.h:13
LArCellCollection::addfebenergy
void addfebenergy(LArFebEnergy &larfebenergy)
set the feb energy
Definition: LArCellCollection.h:58
LArCellCollection::TT_ID
unsigned int TT_ID
Definition: LArCellCollection.h:34
LArCellCollection::getTT
void getTT(const TT_ID &id, const_iterator &b, const_iterator &e) const
get the TriggerTower
Definition: LArCellCollection.cxx:19
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
LArCellCollection
Container Class for LArCell in a ROB used by EF.
Definition: LArCellCollection.h:28
HWIdentifier.h
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
LArCellCollection::m_Map
ID_IT_MAP m_Map
ID to Iterator Map.
Definition: LArCellCollection.h:76
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
IdentifierHash.h
LArCell.h
LArCell
Data object for LAr calorimeter readout cell.
Definition: LArCell.h:53
LArCellCollection::identify
ID identify() const
return identity of the FEB corresponding to this container
Definition: LArCellCollection.h:47
DataVector.h
An STL vector of pointers that by default owns its pointed-to elements.
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:64
LArCellCollection::m_id
ID m_id
internal map for TTs
Definition: LArCellCollection.h:65
LArCellCollection::ITPAIR
std::pair< const_iterator, const_iterator > ITPAIR
iterator pair for begin and end
Definition: LArCellCollection.h:68
LArCellCollection::ID
HWIdentifier ID
required for a Digit Collection
Definition: LArCellCollection.h:33
CLASS_DEF.h
macros to associate a CLID to a type
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