#include <CMAidentity.h>
|
| | CMAidentity (const defineParams &pars) |
| | CMAidentity (ViewType, CMAcoverage, int, int, int, int, int) |
| | CMAidentity (ViewType, CMAcoverage, int) |
| | CMAidentity (ViewType, CMAcoverage, Offline_indexes &) |
| | CMAidentity (ViewType, CMAcoverage, int, int) |
| | ~CMAidentity ()=default |
| | CMAidentity (const CMAidentity &)=default |
| CMAidentity & | operator= (const CMAidentity &)=default |
| bool | operator== (const CMAidentity &) const |
| bool | operator!= (const CMAidentity &) const |
| bool | operator< (const CMAidentity &) const |
| ViewType | type () const |
| CMAcoverage | coverage () const |
| int | number () const |
| int | eta_index () const |
| int | phi_index () const |
| int | PAD_index () const |
| int | Ixx_index () const |
| void | inversion () |
| CMAidentity & | operator+= (const CMAidentity &) |
|
| static const char | CoverageTAG [3][5] = {{"even"}, {"odd"}, {""}} |
Definition at line 16 of file CMAidentity.h.
◆ Offline_indexes
◆ PhiCoverage
◆ CMAidentity() [1/6]
◆ CMAidentity() [2/6]
| CMAidentity::CMAidentity |
( |
ViewType | view, |
|
|
CMAcoverage | side, |
|
|
int | number, |
|
|
int | eta_index, |
|
|
int | phi_index, |
|
|
int | PAD_index, |
|
|
int | Ixx_index ) |
◆ CMAidentity() [3/6]
◆ CMAidentity() [4/6]
◆ CMAidentity() [5/6]
◆ ~CMAidentity()
| CMAidentity::~CMAidentity |
( |
| ) |
|
|
default |
◆ CMAidentity() [6/6]
◆ coverage() [1/2]
◆ coverage() [2/2]
| bool CMAidentity::coverage |
( |
const std::string & | side, |
|
|
CMAcoverage & | cov ) |
|
static |
Definition at line 12 of file CMAidentity.cxx.
12 {
15 if (side == tag) {
17 return true;
18 }
19 }
20 return false;
21}
static const char CoverageTAG[3][5]
◆ covtag()
| const char * CMAidentity::covtag |
( |
const CMAcoverage | co | ) |
|
|
inlinestatic |
◆ eta_index()
| int CMAidentity::eta_index |
( |
| ) |
const |
◆ inversion()
| void CMAidentity::inversion |
( |
| ) |
|
◆ Ixx_index()
| int CMAidentity::Ixx_index |
( |
| ) |
const |
◆ name()
Definition at line 23 of file CMAidentity.cxx.
23 {
26 std::string v_name = cover +
side +
"CMA";
27 return v_name;
28}
static const char * covtag(const CMAcoverage co)
static bool coverage(const std::string &, CMAcoverage &)
◆ number()
| int CMAidentity::number |
( |
| ) |
const |
◆ operator!=()
| bool CMAidentity::operator!= |
( |
const CMAidentity & | id | ) |
const |
◆ operator+=()
Definition at line 86 of file CMAidentity.cxx.
86 {
87 if (*this != id) return *this;
93 return *this;
94}
◆ operator<()
| bool CMAidentity::operator< |
( |
const CMAidentity & | id | ) |
const |
Definition at line 77 of file CMAidentity.cxx.
77 {
78 if (*this == id) return false;
79 if (
m_params.view <
id.type())
return true;
80 if (
m_params.coverage <
id.coverage())
return true;
82 int id2 =
id.eta_index() * 10 +
id.phi_index();
84}
◆ operator=()
◆ operator==()
| bool CMAidentity::operator== |
( |
const CMAidentity & | id | ) |
const |
Definition at line 61 of file CMAidentity.cxx.
61 {
65
67 if (
m_params.etaIndex ==
id.eta_index() &&
m_params.phiIndex ==
id.phi_index())
return true;
68
70 if (
m_params.padIndex ==
id.PAD_index() &&
m_params.IxxIndex ==
id.Ixx_index())
return true;
71 }
72 return false;
73}
◆ PAD_index()
| int CMAidentity::PAD_index |
( |
| ) |
const |
◆ phi_index()
| int CMAidentity::phi_index |
( |
| ) |
const |
◆ type()
◆ which_sector()
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | stream, |
|
|
const CMAidentity & | id ) |
|
friend |
Definition at line 98 of file CMAidentity.cxx.
98 {
99 char exttag[5] = {' ', ' ', ' ', ' ', '\0'};
101 for (
int i = 0;
i < 5; ++
i) {
102 if (tag[i] == '\0') break;
104 }
105
106 std::string
covtag(exttag);
107
110 stream <<
type << std::setw(2) <<
id.number() <<
": Eta ";
111 stream << std::setw(2) <<
id.eta_index();
112 stream <<
" Phi " << std::setw(2) <<
id.phi_index();
113 stream <<
" PAD " << std::setw(2) <<
id.PAD_index();
114 stream <<
" Ixx " << std::setw(2) <<
id.Ixx_index();
116}
◆ CoverageTAG
| const char CMAidentity::CoverageTAG = {{"even"}, {"odd"}, {""}} |
|
static |
◆ m_params
The documentation for this class was generated from the following files: