ATLAS Offline Software
TGCRPhiCoincidenceOut.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
7 #include <iostream>
8 #include <assert.h>
9 
10 namespace LVL1TGCTrigger {
11 
13 {
14  m_idSSC = -1;
15  m_phi = -1;
16  m_r = -1;
17  m_innerVeto = false;
18 }
19 
21  // selection rule 1. higher pT 2. smaller eta 3. smaller m_phi
22  if (this->getpT() > right->getpT()) {
23  return true;
24  } else if (this->getpT() < right->getpT()) {
25  return false;
26  } else {
27  if (this->getR() < right->getR()) {
28  return true;
29  } else if (this->getR() > right->getR()) {
30  return false;
31  } else {
32  if (this->getPhi() <= right->getPhi()) {
33  return true;
34  } else {
35  return false;
36  }
37  }
38  }
39 
40  return true;
41 }
42 
44 {
45 #ifdef TGCCOUT
46  std::cout <<"TGCRPhiCoincidenceOut::print()" << std::endl;
47  std::cout <<" phi= " << m_phi << " r= " << m_r << std::endl;
48  std::cout <<" Pt= " << m_pT << std::endl;
49 
50  std::cout <<" Veto= ";
51  if (m_innerVeto) std::cout<<" 1";
52  else std::cout<<" 0";
53  std::cout<<std::endl;
54 
55 #endif
56 }
57 
58 
59 } //end of namespace bracket
LVL1TGCTrigger::TGCRPhiCoincidenceOut::getPhi
int getPhi() const
Definition: TGCRPhiCoincidenceOut.h:16
LVL1TGCTrigger::TGCRPhiCoincidenceOut::m_pT
int m_pT
Definition: TGCRPhiCoincidenceOut.h:52
LVL1TGCTrigger::TGCRPhiCoincidenceOut::clear
void clear()
Definition: TGCRPhiCoincidenceOut.cxx:12
LVL1TGCTrigger::TGCRPhiCoincidenceOut::isSuperior
bool isSuperior(const TGCRPhiCoincidenceOut *right) const
Definition: TGCRPhiCoincidenceOut.cxx:20
LVL1TGCTrigger::TGCRPhiCoincidenceOut::print
void print() const
Definition: TGCRPhiCoincidenceOut.cxx:43
LVL1TGCTrigger::TGCRPhiCoincidenceOut
Definition: TGCRPhiCoincidenceOut.h:11
LVL1TGCTrigger
Definition: LVL1TGCTrigger.cxx:47
LVL1TGCTrigger::TGCRPhiCoincidenceOut::getpT
int getpT() const
Definition: TGCRPhiCoincidenceOut.h:28
LVL1TGCTrigger::TGCRPhiCoincidenceOut::m_phi
int m_phi
Definition: TGCRPhiCoincidenceOut.h:53
LVL1TGCTrigger::TGCRPhiCoincidenceOut::getR
int getR() const
Definition: TGCRPhiCoincidenceOut.h:17
TGCRPhiCoincidenceOut.h
LVL1TGCTrigger::TGCRPhiCoincidenceOut::m_innerVeto
bool m_innerVeto
Definition: TGCRPhiCoincidenceOut.h:57
LVL1TGCTrigger::TGCRPhiCoincidenceOut::m_r
int m_r
Definition: TGCRPhiCoincidenceOut.h:54
LVL1TGCTrigger::TGCRPhiCoincidenceOut::m_idSSC
int m_idSSC
Definition: TGCRPhiCoincidenceOut.h:51