ATLAS Offline Software
Loading...
Searching...
No Matches
Analysis::ISvxConstituent Class Reference

#include <ISvxConstituent.h>

Inheritance diagram for Analysis::ISvxConstituent:
Collaboration diagram for Analysis::ISvxConstituent:

Public Member Functions

 ISvxConstituent ()
 constructor
 ISvxConstituent (NameType &name)
 constructor
 ISvxConstituent (NameType &name, const ISvxConstituent &rhs)
 ISvxConstituent (const ISvxConstituent &rhs)
 ~ISvxConstituent ()
 destructor
virtual void setName (NameType &name)
 to set the name
virtual NameType name () const
 returns the infoType of the info objects.
virtual ISvxConstituentclone () const
 a clone method for the proper workings of the copy constructor
ISvxConstituentoperator= (const ISvxConstituent &)
const Trk::VxSecVertexInfovertexInfo () const
void setVertexInfo (const Trk::VxSecVertexInfo *)
virtual void fillToken (INavigationToken &) const
virtual void fillToken (INavigationToken &, const std::any &) const

Private Attributes

std::string m_name
const Trk::VxSecVertexInfom_vertexInfo

Detailed Description

Definition at line 40 of file ISvxConstituent.h.

Constructor & Destructor Documentation

◆ ISvxConstituent() [1/4]

Analysis::ISvxConstituent::ISvxConstituent ( )

constructor

Definition at line 24 of file ISvxConstituent.cxx.

24 :
25 m_vertexInfo(0) {}
const Trk::VxSecVertexInfo * m_vertexInfo

◆ ISvxConstituent() [2/4]

Analysis::ISvxConstituent::ISvxConstituent ( NameType & name)

constructor

Definition at line 27 of file ISvxConstituent.cxx.

27 :
28 m_name(name),
30 { }
virtual NameType name() const
returns the infoType of the info objects.

◆ ISvxConstituent() [3/4]

Analysis::ISvxConstituent::ISvxConstituent ( NameType & name,
const ISvxConstituent & rhs )

Definition at line 48 of file ISvxConstituent.cxx.

48 :
49 IConstituent(rhs),
50 m_name(name),
51 m_vertexInfo(rhs.m_vertexInfo!=0 ? rhs.m_vertexInfo->clone() : 0)
52 { }

◆ ISvxConstituent() [4/4]

Analysis::ISvxConstituent::ISvxConstituent ( const ISvxConstituent & rhs)

Definition at line 42 of file ISvxConstituent.cxx.

42 :
43 INavigable(rhs),
44 IConstituent(rhs),
45 m_vertexInfo(rhs.m_vertexInfo!=0 ? rhs.m_vertexInfo->clone() : 0)
46 { }

◆ ~ISvxConstituent()

Analysis::ISvxConstituent::~ISvxConstituent ( )

destructor

Definition at line 32 of file ISvxConstituent.cxx.

33 {
34
35 //delete the vertexInfo (if there)
36 if (m_vertexInfo) {
37 delete m_vertexInfo;
39 }
40 }

Member Function Documentation

◆ clone()

ISvxConstituent * Analysis::ISvxConstituent::clone ( ) const
virtual

a clone method for the proper workings of the copy constructor

Implements Analysis::IConstituent.

Definition at line 59 of file ISvxConstituent.cxx.

60 { return new ISvxConstituent( *this );}

◆ fillToken() [1/2]

virtual void Analysis::ISvxConstituent::fillToken ( INavigationToken & ) const
inlinevirtual

Implements INavigable.

Definition at line 71 of file ISvxConstituent.h.

71 {
72 return;
73 }

◆ fillToken() [2/2]

virtual void Analysis::ISvxConstituent::fillToken ( INavigationToken & ,
const std::any &  ) const
inlinevirtual

Implements INavigable.

Definition at line 76 of file ISvxConstituent.h.

77 {
78 return;
79 }

◆ name()

NameType Analysis::ISvxConstituent::name ( ) const
virtual

returns the infoType of the info objects.

This has to be set by the tagger.

Implements Analysis::IConstituent.

Definition at line 57 of file ISvxConstituent.cxx.

57{ return m_name;}

◆ operator=()

ISvxConstituent & Analysis::ISvxConstituent::operator= ( const ISvxConstituent & rhs)

Definition at line 62 of file ISvxConstituent.cxx.

63 {
64 if (this!=&rhs) {
65 m_name=rhs.m_name;
66 if (m_vertexInfo) {
67 delete m_vertexInfo;
69 }
70 if (rhs.m_vertexInfo) {
71 m_vertexInfo=rhs.m_vertexInfo->clone();
72 }
73 }
74 return *this;
75 }

◆ setName()

void Analysis::ISvxConstituent::setName ( NameType & name)
virtual

to set the name

Implements Analysis::IConstituent.

Definition at line 55 of file ISvxConstituent.cxx.

55{m_name = name;}

◆ setVertexInfo()

void Analysis::ISvxConstituent::setVertexInfo ( const Trk::VxSecVertexInfo * vertexInfo)

Definition at line 84 of file ISvxConstituent.cxx.

84 {
85 if (m_vertexInfo) {
86 delete m_vertexInfo;
88 }
90 }
const Trk::VxSecVertexInfo * vertexInfo() const

◆ vertexInfo()

const Trk::VxSecVertexInfo * Analysis::ISvxConstituent::vertexInfo ( ) const

Definition at line 77 of file ISvxConstituent.cxx.

77 {
78 return m_vertexInfo;
79 }

Member Data Documentation

◆ m_name

std::string Analysis::ISvxConstituent::m_name
private

Definition at line 83 of file ISvxConstituent.h.

◆ m_vertexInfo

const Trk::VxSecVertexInfo* Analysis::ISvxConstituent::m_vertexInfo
private

Definition at line 84 of file ISvxConstituent.h.


The documentation for this class was generated from the following files: