ATLAS Offline Software
TileHitCollection.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 
23  (const TileHitCollection& other)
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 TileHit* chan : other) {
35  push_back (std::make_unique<TileHit> (*chan));
36  }
37 }
DataVector< TileHit >::reserve
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
xAOD::identify
const Identifier & identify(const UncalibratedMeasurement *meas)
Returns the associated identifier from the muon measurement.
Definition: MuonSpectrometer/MuonPhaseII/Event/xAOD/xAODMuonPrepData/Root/UtilFunctions.cxx:61
TileRawDataCollection< TileHit >::setRODBCID
void setRODBCID(uint32_t rodBCID)
Setter for BCID from ROD header.
Definition: TileRawDataCollection.h:104
TileRawDataCollection< TileHit >::setDetEvType
void setDetEvType(uint32_t detEvType)
Setter for detector event type from ROD header.
Definition: TileRawDataCollection.h:98
TileHitCollection.h
TileHitCollection
Definition: TileHitCollection.h:12
ReadCellNoiseFromCool.chan
chan
Definition: ReadCellNoiseFromCool.py:52
TileHitCollection::TileHitCollection
TileHitCollection(ID id, SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS)
Definition: TileHitCollection.h:20
TileRawDataCollection
Definition: TileRawDataCollection.h:37
DataVector< TileHit >::push_back
value_type push_back(value_type pElem)
Add an element to the end of the collection.
TileHit
Definition: TileSimEvent/TileSimEvent/TileHit.h:30
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
TileRawDataCollection< TileHit >::setLvl1Id
void setLvl1Id(uint32_t lvl1Id)
Setter for level1 id from ROD header.
Definition: TileRawDataCollection.h:86
TileRawDataCollection< TileHit >::setLvl1Type
void setLvl1Type(uint32_t lvl1Type)
Setter for level1 type from ROD header.
Definition: TileRawDataCollection.h:92