ATLAS Offline Software
MuCTPIL1Topo.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 namespace LVL1 {
8 
10 
11 
12  LVL1::MuCTPIL1Topo::MuCTPIL1Topo(const std::vector<MuCTPIL1TopoCandidate> & candList)
13  : m_muonTopoCandidates(candList)
14  {}
15 
18  if( this != &a ) {
19  m_muonTopoCandidates = a.getCandidates();
20  }
21  return *this;
22  }
23 
26  for(const MuCTPIL1TopoCandidate & muCand : a.getCandidates())
27  {
28  addCandidate( muCand );
29  }
30  return *this;
31  }
32 
35  MuCTPIL1Topo result = *this;
36  result += a;
37  return result;
38  }
39 
40  const std::vector<MuCTPIL1TopoCandidate> &
42  return m_muonTopoCandidates;
43  }
44 
45  void
46  LVL1::MuCTPIL1Topo::setCandidates(const std::vector<MuCTPIL1TopoCandidate> & candList) {
47  m_muonTopoCandidates = candList;
48  }
49 
50  void
52  m_muonTopoCandidates.push_back(candidate);
53  }
54 
55  void
57  m_muonTopoCandidates.clear();
58  }
59 
60  void
62  for (const MuCTPIL1TopoCandidate & muCand : m_muonTopoCandidates)
63  {
64  muCand.print();
65  }
66  }
67 
68 } // namespace LVL1
LVL1::MuCTPIL1Topo::clearCandidates
void clearCandidates()
Definition: MuCTPIL1Topo.cxx:56
LVL1::MuCTPIL1Topo::operator+
MuCTPIL1Topo operator+(const MuCTPIL1Topo &)
Definition: MuCTPIL1Topo.cxx:34
get_generator_info.result
result
Definition: get_generator_info.py:21
LVL1::MuCTPIL1Topo::MuCTPIL1Topo
MuCTPIL1Topo()
Definition: MuCTPIL1Topo.cxx:9
LVL1::MuCTPIL1Topo::setCandidates
void setCandidates(const std::vector< MuCTPIL1TopoCandidate > &candList)
Definition: MuCTPIL1Topo.cxx:46
LVL1::MuCTPIL1Topo
MuCTPI input class to the L1Topo simulation.
Definition: MuCTPIL1Topo.h:24
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::MuCTPIL1Topo::getCandidates
const std::vector< MuCTPIL1TopoCandidate > & getCandidates() const
Definition: MuCTPIL1Topo.cxx:41
LVL1::MuCTPIL1TopoCandidate
MuCTPI input class to the L1Topo simulation.
Definition: MuCTPIL1TopoCandidate.h:23
LVL1::MuCTPIL1Topo::operator=
MuCTPIL1Topo & operator=(const MuCTPIL1Topo &)
Assignment operators.
Definition: MuCTPIL1Topo.cxx:17
LVL1::MuCTPIL1Topo::addCandidate
void addCandidate(const MuCTPIL1TopoCandidate &candidate)
Definition: MuCTPIL1Topo.cxx:51
a
TList * a
Definition: liststreamerinfos.cxx:10
LVL1::MuCTPIL1Topo::operator+=
MuCTPIL1Topo & operator+=(const MuCTPIL1Topo &)
Definition: MuCTPIL1Topo.cxx:25
MuCTPIL1Topo.h
LVL1::MuCTPIL1Topo::print
void print() const
Definition: MuCTPIL1Topo.cxx:61