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

#include <JpsiUpsilonCommon.h>

Collaboration diagram for Analysis::CleanUpVertex:

Public Member Functions

const xAOD::Vertexget () const
 
 ~CleanUpVertex ()
 
 CleanUpVertex (const xAOD::Vertex *vtx, bool cleanup)
 
 CleanUpVertex (const CleanUpVertex &)=delete
 
 CleanUpVertex (CleanUpVertex &&vtx) noexcept
 
CleanUpVertexoperator= (const CleanUpVertex &)=delete
 

Private Attributes

const xAOD::Vertexm_vtx
 
bool m_cleanup
 

Detailed Description

Definition at line 22 of file JpsiUpsilonCommon.h.

Constructor & Destructor Documentation

◆ ~CleanUpVertex()

Analysis::CleanUpVertex::~CleanUpVertex ( )
inline

Definition at line 27 of file JpsiUpsilonCommon.h.

27 { if (m_cleanup) delete m_vtx; }

◆ CleanUpVertex() [1/3]

Analysis::CleanUpVertex::CleanUpVertex ( const xAOD::Vertex vtx,
bool  cleanup 
)
inline

Definition at line 28 of file JpsiUpsilonCommon.h.

28 : m_vtx(vtx), m_cleanup(cleanup) {}

◆ CleanUpVertex() [2/3]

Analysis::CleanUpVertex::CleanUpVertex ( const CleanUpVertex )
delete

◆ CleanUpVertex() [3/3]

Analysis::CleanUpVertex::CleanUpVertex ( CleanUpVertex &&  vtx)
inlinenoexcept

Definition at line 30 of file JpsiUpsilonCommon.h.

30  {
31  m_vtx = vtx.m_vtx;
32  m_cleanup = vtx.m_cleanup;
33  vtx.m_cleanup = false;
34  vtx.m_vtx = nullptr;
35  }

Member Function Documentation

◆ get()

const xAOD::Vertex* Analysis::CleanUpVertex::get ( ) const
inline

Definition at line 26 of file JpsiUpsilonCommon.h.

26 { return m_vtx; }

◆ operator=()

CleanUpVertex& Analysis::CleanUpVertex::operator= ( const CleanUpVertex )
delete

Member Data Documentation

◆ m_cleanup

bool Analysis::CleanUpVertex::m_cleanup
private

Definition at line 24 of file JpsiUpsilonCommon.h.

◆ m_vtx

const xAOD::Vertex* Analysis::CleanUpVertex::m_vtx
private

Definition at line 23 of file JpsiUpsilonCommon.h.


The documentation for this class was generated from the following file:
Analysis::CleanUpVertex::m_cleanup
bool m_cleanup
Definition: JpsiUpsilonCommon.h:24
Analysis::CleanUpVertex::m_vtx
const xAOD::Vertex * m_vtx
Definition: JpsiUpsilonCommon.h:23