ATLAS Offline Software
Loading...
Searching...
No Matches
InDetSimData.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5/***************************************************************************
6 Simulation data associated with an InDetRawData object
7 ------------------------------------------------------
8 ATLAS Collaboration
9 ***************************************************************************/
10
11// $Id: InDetSimData.cxx,v 1.4 2004-03-01 22:07:07 costanzo Exp $
12
13
15
16
22
23InDetSimData::InDetSimData (const std::vector<Deposit>& deposits,
24 int simDataWord)
25 : m_word((deposits.size()<<29 & 0xe0000000) | (simDataWord & 0x1fffffff)),
27{
28}
29
30InDetSimData::InDetSimData (std::vector<Deposit>&& deposits,
31 int simDataWord)
32 : m_deposits (std::move (deposits))
33{
34 m_word = (m_deposits.size()<<29 & 0xe0000000) | (simDataWord & 0x1fffffff);
35}
36
38
39
40= default;
41
43{
44 if(&other != this)
45 {
46 m_word=other.m_word;
47 m_deposits=other.m_deposits;
48 }
49 return *this;
50}
51
53 if(&other != this)
54 {
55 m_word=other.m_word;
56 m_deposits=std::move(other.m_deposits);
57 }
58 return *this;
59}
InDetSimData & operator=(const InDetSimData &other)
void deposits(std::vector< Deposit > &deposits) const
std::vector< Deposit > m_deposits
STL namespace.