ATLAS Offline Software
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
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  :

◆ PATTERNidentity() [2/2]

PATTERNidentity::PATTERNidentity ( const PATTERNidentity id)

Definition at line 16 of file PATTERNidentity.cxx.

17 {
18  m_input_id = id.input_id();
19  m_layer_id = id.layer_id();
20 }

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!=()

Definition at line 38 of file PATTERNidentity.cxx.

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

◆ operator<()

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

Definition at line 43 of file PATTERNidentity.cxx.

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

◆ operator=()

PATTERNidentity PATTERNidentity::operator= ( const PATTERNidentity id)

Definition at line 23 of file PATTERNidentity.cxx.

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

◆ operator==()

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

Definition at line 31 of file PATTERNidentity.cxx.

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

◆ Print()

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

Definition at line 50 of file PATTERNidentity.cxx.

51 {
52  detail = true;
53  if(detail)
54  {
55  stream << s_inputTag[input_id()] << ", layer " << layer_id();
56  }
57 }

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 15 of file PATTERNidentity.h.


The documentation for this class was generated from the following files:
detail
Definition: extract_histogram_tag.cxx:14
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
PATTERNidentity::input_id
CMAinput input_id(void) const
Definition: PATTERNidentity.h:30
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
PATTERNidentity::layer_id
int layer_id(void) const
Definition: PATTERNidentity.h:31
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
PATTERNidentity::s_inputTag
static const char s_inputTag[4][9]
Definition: PATTERNidentity.h:15
PATTERNidentity::m_layer_id
int m_layer_id
Definition: PATTERNidentity.h:18
PATTERNidentity::m_input_id
CMAinput m_input_id
Definition: PATTERNidentity.h:17