ATLAS Offline Software
Loading...
Searching...
No Matches
PATTERNidentity Class Reference

#include <PATTERNidentity.h>

Collaboration diagram for PATTERNidentity:

Public Member Functions

 PATTERNidentity (CMAinput, int)
 PATTERNidentity (const PATTERNidentity &)
PATTERNidentity operator= (const PATTERNidentity &)
bool operator== (const PATTERNidentity &) const
bool operator!= (const PATTERNidentity &) const
bool operator< (const PATTERNidentity &) const
CMAinput input_id (void) const
int layer_id (void) const
void Print (std::ostream &, bool) const

Private Attributes

CMAinput m_input_id
int m_layer_id

Static Private Attributes

static const char s_inputTag [4][9]

Detailed Description

Definition at line 12 of file PATTERNidentity.h.

Constructor & Destructor Documentation

◆ PATTERNidentity() [1/2]

PATTERNidentity::PATTERNidentity ( CMAinput io,
int layer )

Definition at line 13 of file PATTERNidentity.cxx.

13 :
14 m_input_id(io),m_layer_id(layer) {}

◆ PATTERNidentity() [2/2]

PATTERNidentity::PATTERNidentity ( const PATTERNidentity & id)

Definition at line 16 of file PATTERNidentity.cxx.

16 :
17 m_input_id(id.input_id()),
19{}
int layer_id(void) const
CMAinput input_id(void) const

Member Function Documentation

◆ input_id()

CMAinput PATTERNidentity::input_id ( void ) const
inline

Definition at line 30 of file PATTERNidentity.h.

30{return m_input_id;}

◆ layer_id()

int PATTERNidentity::layer_id ( void ) const
inline

Definition at line 31 of file PATTERNidentity.h.

31{return m_layer_id;}

◆ operator!=()

bool PATTERNidentity::operator!= ( const PATTERNidentity & id) const

Definition at line 37 of file PATTERNidentity.cxx.

38{
39 return !(*this == id);
40}

◆ operator<()

bool PATTERNidentity::operator< ( const PATTERNidentity & id) const

Definition at line 42 of file PATTERNidentity.cxx.

44{
45 if( m_input_id < id.input_id() && m_layer_id < id.layer_id() ) return true;
46 return false;
47}

◆ operator=()

PATTERNidentity PATTERNidentity::operator= ( const PATTERNidentity & id)

Definition at line 22 of file PATTERNidentity.cxx.

23{
24 m_input_id = id.input_id();
25 m_layer_id = id.layer_id();
26 return *this;
27}

◆ operator==()

bool PATTERNidentity::operator== ( const PATTERNidentity & id) const

Definition at line 30 of file PATTERNidentity.cxx.

31{
32 if(m_input_id == id.input_id() && m_layer_id == id.layer_id()) return true;
33 return false;
34}

◆ Print()

void PATTERNidentity::Print ( std::ostream & stream,
bool detail ) const

Definition at line 49 of file PATTERNidentity.cxx.

50{
51 detail = true;
52 if(detail)
53 {
54 stream << s_inputTag[input_id()] << ", layer " << layer_id();
55 }
56}
static const char s_inputTag[4][9]

Member Data Documentation

◆ m_input_id

CMAinput PATTERNidentity::m_input_id
private

Definition at line 17 of file PATTERNidentity.h.

◆ m_layer_id

int PATTERNidentity::m_layer_id
private

Definition at line 18 of file PATTERNidentity.h.

◆ s_inputTag

const char PATTERNidentity::s_inputTag
staticprivate
Initial value:
=
{ {"Low Pt"},{"Pivot"},{"High Pt"},{"No input"} }

Definition at line 9 of file PATTERNidentity.h.


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