ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LVL1::MuCTPIL1Topo Class Reference

MuCTPI input class to the L1Topo simulation. More...

#include <MuCTPIL1Topo.h>

Collaboration diagram for LVL1::MuCTPIL1Topo:

Public Member Functions

 MuCTPIL1Topo ()
 
 MuCTPIL1Topo (const std::vector< MuCTPIL1TopoCandidate > &candList)
 
 MuCTPIL1Topo (const MuCTPIL1Topo &)=default
 
 ~MuCTPIL1Topo ()=default
 
const std::vector< MuCTPIL1TopoCandidate > & getCandidates () const
 
void setCandidates (const std::vector< MuCTPIL1TopoCandidate > &candList)
 
void addCandidate (const MuCTPIL1TopoCandidate &candidate)
 
void clearCandidates ()
 
void setBcidOffset (int bcidOffset)
 
int getBcidOffset () const
 
MuCTPIL1Topooperator= (const MuCTPIL1Topo &)
 Assignment operators. More...
 
MuCTPIL1Topooperator+= (const MuCTPIL1Topo &)
 
MuCTPIL1Topo operator+ (const MuCTPIL1Topo &)
 
void print () const
 

Private Attributes

std::vector< MuCTPIL1TopoCandidatem_muonTopoCandidates
 
int m_bcidOffset {0}
 

Detailed Description

MuCTPI input class to the L1Topo simulation.

   This class is used to send the LVL1 muon candidate information
   from the MuCTPI simulation to the L1Topo simulation.

$author Thorsten Wengler

Definition at line 24 of file MuCTPIL1Topo.h.

Constructor & Destructor Documentation

◆ MuCTPIL1Topo() [1/3]

LVL1::MuCTPIL1Topo::MuCTPIL1Topo ( )

Definition at line 9 of file MuCTPIL1Topo.cxx.

9 {}

◆ MuCTPIL1Topo() [2/3]

LVL1::MuCTPIL1Topo::MuCTPIL1Topo ( const std::vector< MuCTPIL1TopoCandidate > &  candList)

Definition at line 12 of file MuCTPIL1Topo.cxx.

13  : m_muonTopoCandidates(candList)
14  {}

◆ MuCTPIL1Topo() [3/3]

LVL1::MuCTPIL1Topo::MuCTPIL1Topo ( const MuCTPIL1Topo )
default

◆ ~MuCTPIL1Topo()

LVL1::MuCTPIL1Topo::~MuCTPIL1Topo ( )
default

Member Function Documentation

◆ addCandidate()

void LVL1::MuCTPIL1Topo::addCandidate ( const MuCTPIL1TopoCandidate candidate)

Definition at line 51 of file MuCTPIL1Topo.cxx.

51  {
52  m_muonTopoCandidates.push_back(candidate);
53  }

◆ clearCandidates()

void LVL1::MuCTPIL1Topo::clearCandidates ( )

Definition at line 56 of file MuCTPIL1Topo.cxx.

56  {
57  m_muonTopoCandidates.clear();
58  }

◆ getBcidOffset()

int LVL1::MuCTPIL1Topo::getBcidOffset ( ) const
inline

Definition at line 46 of file MuCTPIL1Topo.h.

46 { return m_bcidOffset;}

◆ getCandidates()

const std::vector< MuCTPIL1TopoCandidate > & LVL1::MuCTPIL1Topo::getCandidates ( ) const

Definition at line 41 of file MuCTPIL1Topo.cxx.

41  {
42  return m_muonTopoCandidates;
43  }

◆ operator+()

LVL1::MuCTPIL1Topo LVL1::MuCTPIL1Topo::operator+ ( const MuCTPIL1Topo a)

Definition at line 34 of file MuCTPIL1Topo.cxx.

34  {
35  MuCTPIL1Topo result = *this;
36  result += a;
37  return result;
38  }

◆ operator+=()

LVL1::MuCTPIL1Topo & LVL1::MuCTPIL1Topo::operator+= ( const MuCTPIL1Topo a)

Definition at line 25 of file MuCTPIL1Topo.cxx.

25  {
26  for(const MuCTPIL1TopoCandidate & muCand : a.getCandidates())
27  {
28  addCandidate( muCand );
29  }
30  return *this;
31  }

◆ operator=()

LVL1::MuCTPIL1Topo & LVL1::MuCTPIL1Topo::operator= ( const MuCTPIL1Topo a)

Assignment operators.

Definition at line 17 of file MuCTPIL1Topo.cxx.

17  {
18  if( this != &a ) {
19  m_muonTopoCandidates = a.getCandidates();
20  }
21  return *this;
22  }

◆ print()

void LVL1::MuCTPIL1Topo::print ( ) const

Definition at line 61 of file MuCTPIL1Topo.cxx.

61  {
62  for (const MuCTPIL1TopoCandidate & muCand : m_muonTopoCandidates)
63  {
64  muCand.print();
65  }
66  }

◆ setBcidOffset()

void LVL1::MuCTPIL1Topo::setBcidOffset ( int  bcidOffset)
inline

Definition at line 45 of file MuCTPIL1Topo.h.

45 {m_bcidOffset = bcidOffset;}

◆ setCandidates()

void LVL1::MuCTPIL1Topo::setCandidates ( const std::vector< MuCTPIL1TopoCandidate > &  candList)

Definition at line 46 of file MuCTPIL1Topo.cxx.

46  {
47  m_muonTopoCandidates = candList;
48  }

Member Data Documentation

◆ m_bcidOffset

int LVL1::MuCTPIL1Topo::m_bcidOffset {0}
private

Definition at line 59 of file MuCTPIL1Topo.h.

◆ m_muonTopoCandidates

std::vector<MuCTPIL1TopoCandidate> LVL1::MuCTPIL1Topo::m_muonTopoCandidates
private

Definition at line 58 of file MuCTPIL1Topo.h.


The documentation for this class was generated from the following files:
get_generator_info.result
result
Definition: get_generator_info.py:21
LVL1::MuCTPIL1Topo::MuCTPIL1Topo
MuCTPIL1Topo()
Definition: MuCTPIL1Topo.cxx:9
LVL1::MuCTPIL1Topo::m_muonTopoCandidates
std::vector< MuCTPIL1TopoCandidate > m_muonTopoCandidates
Definition: MuCTPIL1Topo.h:58
LVL1::MuCTPIL1Topo::m_bcidOffset
int m_bcidOffset
Definition: MuCTPIL1Topo.h:59
LVL1::MuCTPIL1Topo::addCandidate
void addCandidate(const MuCTPIL1TopoCandidate &candidate)
Definition: MuCTPIL1Topo.cxx:51
a
TList * a
Definition: liststreamerinfos.cxx:10