ATLAS Offline Software
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 
18  m_word(0)
19 {
20 
21 }
22 
23 InDetSimData::InDetSimData (const std::vector<Deposit>& deposits,
24  int simDataWord)
25  : m_word((deposits.size()<<29 & 0xe0000000) | (simDataWord & 0x1fffffff)),
26  m_deposits (deposits)
27 {
28 }
29 
30 InDetSimData::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::InDetSimData
InDetSimData()
Definition: InDetSimData.cxx:17
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
InDetSimData
Definition: InDetSimData.h:42
InDetSimData.h
InDetSimData::m_deposits
std::vector< Deposit > m_deposits
Definition: InDetSimData.h:66
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
InDetSimData::m_word
int m_word
Definition: InDetSimData.h:64
InDetSimData::operator=
InDetSimData & operator=(const InDetSimData &other)
Definition: InDetSimData.cxx:42