ATLAS Offline Software
TileBeamElemCollection.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 /*
5  */
15 
16 
25 {
26  // Copy flags from the base class.
27  setLvl1Id (other.getLvl1Id());
28  setLvl1Type (other.getLvl1Type());
29  setDetEvType (other.getDetEvType());
30  setRODBCID (other.getRODBCID());
31 
32  // Copy the collection contents.
33  reserve (other.size());
34  for (const TileBeamElem* chan : other) {
35  push_back (std::make_unique<TileBeamElem> (*chan));
36  }
37 }
DataVector< TileBeamElem >::reserve
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
TileRawDataCollection< TileBeamElem >::setRODBCID
void setRODBCID(uint32_t rodBCID)
Setter for BCID from ROD header.
Definition: TileRawDataCollection.h:104
TileRawDataCollection< TileBeamElem >::setDetEvType
void setDetEvType(uint32_t detEvType)
Setter for detector event type from ROD header.
Definition: TileRawDataCollection.h:98
TileBeamElemCollection
Definition: TileBeamElemCollection.h:12
TileBeamElemCollection::TileBeamElemCollection
TileBeamElemCollection(ID id, SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Definition: TileBeamElemCollection.h:20
TileBeamElemCollection.h
ReadCellNoiseFromCool.chan
chan
Definition: ReadCellNoiseFromCool.py:52
TileRawDataCollection
Definition: TileRawDataCollection.h:37
DataVector< TileBeamElem >::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
TileRawDataCollection< TileBeamElem >::setLvl1Id
void setLvl1Id(uint32_t lvl1Id)
Setter for level1 id from ROD header.
Definition: TileRawDataCollection.h:86
TileBeamElem
Definition: TileBeamElem.h:27
TileRawDataCollection< TileBeamElem >::setLvl1Type
void setLvl1Type(uint32_t lvl1Type)
Setter for level1 type from ROD header.
Definition: TileRawDataCollection.h:92