ATLAS Offline Software
Loading...
Searching...
No Matches
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
10namespace 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
bool isSuperior(const TGCRPhiCoincidenceOut *right) const