ATLAS Offline Software
Loading...
Searching...
No Matches
LArParams2Ntuple::DumpFlags Class Reference
Collaboration diagram for LArParams2Ntuple::DumpFlags:

Public Member Functions

 DumpFlags ()
void set (unsigned i)
void clear (unsigned i)
bool operator[] (unsigned i) const
const std::vector< bool > & flags () const

Private Attributes

std::vector< bool > m_flags

Detailed Description

Definition at line 48 of file LArParams2Ntuple.h.

Constructor & Destructor Documentation

◆ DumpFlags()

LArParams2Ntuple::DumpFlags::DumpFlags ( )
inline

Definition at line 52 of file LArParams2Ntuple.h.

52{ for ( unsigned i=0 ; i<m_nClasses ; i++ ) m_flags.push_back(false) ; }
std::vector< bool > m_flags
static const unsigned m_nClasses

Member Function Documentation

◆ clear()

void LArParams2Ntuple::DumpFlags::clear ( unsigned i)
inline

Definition at line 54 of file LArParams2Ntuple.h.

54{ if ( i<m_nClasses ) m_flags[i] = false ; }

◆ flags()

const std::vector< bool > & LArParams2Ntuple::DumpFlags::flags ( ) const
inline

Definition at line 56 of file LArParams2Ntuple.h.

56{ return m_flags ; }

◆ operator[]()

bool LArParams2Ntuple::DumpFlags::operator[] ( unsigned i) const
inline

Definition at line 55 of file LArParams2Ntuple.h.

55{ return (i<m_nClasses) && m_flags[i] ; }

◆ set()

void LArParams2Ntuple::DumpFlags::set ( unsigned i)
inline

Definition at line 53 of file LArParams2Ntuple.h.

53{ if ( i<m_nClasses ) m_flags[i] = true ; }

Member Data Documentation

◆ m_flags

std::vector<bool> LArParams2Ntuple::DumpFlags::m_flags
private

Definition at line 50 of file LArParams2Ntuple.h.


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