ATLAS Offline Software
Loading...
Searching...
No Matches
PATTERNidentity.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7using namespace std;
8
9const char PATTERNidentity::s_inputTag[4][9] =
10 { {"Low Pt"},{"Pivot"},{"High Pt"},{"No input"} };
11
12
15
20
23{
24 m_input_id = id.input_id();
25 m_layer_id = id.layer_id();
26 return *this;
27}
28
29bool
31{
32 if(m_input_id == id.input_id() && m_layer_id == id.layer_id()) return true;
33 return false;
34}
35
36bool
38{
39 return !(*this == id);
40}
41
42bool
44{
45 if( m_input_id < id.input_id() && m_layer_id < id.layer_id() ) return true;
46 return false;
47}
48
49void PATTERNidentity::Print(ostream& stream,bool detail) const
50{
51 detail = true;
52 if(detail)
53 {
54 stream << s_inputTag[input_id()] << ", layer " << layer_id();
55 }
56}
CMAinput
bool operator!=(const PATTERNidentity &) const
bool operator<(const PATTERNidentity &) const
int layer_id(void) const
PATTERNidentity operator=(const PATTERNidentity &)
CMAinput input_id(void) const
static const char s_inputTag[4][9]
PATTERNidentity(CMAinput, int)
void Print(std::ostream &, bool) const
bool operator==(const PATTERNidentity &) const
STL namespace.