ATLAS Offline Software
MuCTPIL1TopoCandidate.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include <iostream>
7 #include <iomanip>
8 
9 namespace LVL1 {
10 
12  m_sectorName(""), m_roiID(0),
13  m_bcid(0), m_ptThresholdID(0), m_ptL1TopoCode(0), m_ptValue(0), m_eta(0), m_phi(0), m_etacode(0), m_phicode(0),
14  m_etamin(0), m_etamax(0), m_phimin(0), m_phimax(0), m_roiWord(0), m_mioctID(0), m_ieta(0), m_iphi(0),
15  m_phiOvl(false), m_is2cand(false), m_charge(0), m_bw2or3(false), m_innerCoin(false), m_goodMF(false) {}
16 
17  void MuCTPIL1TopoCandidate::setCandidateData(const std::string& sectorName,
18  unsigned int roiID,
19  unsigned int bcid,
20  unsigned int ptThresholdID,
21  unsigned int ptL1TopoCode,
22  unsigned int ptValue,
23  float eta,
24  float phi,
25  unsigned int etacode,
26  unsigned int phicode,
27  float etamin,
28  float etamax,
29  float phimin,
30  float phimax,
31  unsigned int mioctID,
32  int ieta,
33  int iphi){
34  m_sectorName = sectorName ;
35  m_roiID = roiID ;
36  m_bcid = bcid ;
37  m_ptThresholdID = ptThresholdID ;
38  m_ptL1TopoCode = ptL1TopoCode ;
39  m_ptValue = ptValue ;
40  m_eta = eta ;
41  m_phi = phi ;
42  m_etacode = etacode ;
43  m_phicode = phicode ;
44  m_etamin = etamin ;
45  m_etamax = etamax ;
46  m_phimin = phimin ;
47  m_phimax = phimax ;
48  m_mioctID = mioctID;
49  m_ieta = ieta;
50  m_iphi = iphi;
51  }
52 
53  void MuCTPIL1TopoCandidate::setTGCFlags(bool bw2or3, bool innerCoin, bool goodMF, int charge)
54  {
55  m_bw2or3 = bw2or3;
56  m_innerCoin = innerCoin;
57  m_goodMF = goodMF;
58  m_charge = charge;
59  }
60 
61  void MuCTPIL1TopoCandidate::setRPCFlags(bool is2cand, bool phiOvl)
62  {
63  m_is2cand = is2cand;
64  m_phiOvl = phiOvl;
65  }
66 
67 
68  void MuCTPIL1TopoCandidate::setRoiWord(unsigned int roi){
69  m_roiWord = roi;
70  }
71 
72 
74 
75  std::cout << "MioctID: " << m_mioctID << ", Sec: " << m_sectorName << ", RoI: " << m_roiID << ", BCID: " << m_bcid << ", ThrIDX: "
76  << m_ptThresholdID << ", ptCode: " << m_ptL1TopoCode << ", ptVal: " << m_ptValue << ", eta: "
77  << m_eta << ", phi: " << m_phi << ", etaCode: " << m_etacode << ", phiCode: " << m_phicode
78  << ", phi ovl: " << m_phiOvl << ", is2cand: " << m_is2cand
79  << ", charge: " << m_charge << ", bw2or3: " << m_bw2or3 << ", innerCoin: " << m_innerCoin << ", goodMF: " << m_goodMF
80  << ", etaMin: " << m_etamin << ", etaMax: " << m_etamax
81  << ", phiMin: " << m_phimin << ", phiMax: " << m_phimax
82  << ", RoIWord: " << std::setw( 8 ) << std::setfill('0') << std::hex << m_roiWord << std::dec
83  << ", ieta: " << m_ieta << ", iphi: " << m_iphi << std::endl << std::setfill(' ') << std::setw(0);
84 
85  }
86 
87 
88 } // namespace LVL1
MuCTPIL1TopoCandidate.h
LVL1::MuCTPIL1TopoCandidate::m_etamax
float m_etamax
Definition: MuCTPIL1TopoCandidate.h:110
LVL1::MuCTPIL1TopoCandidate::m_phicode
unsigned int m_phicode
Definition: MuCTPIL1TopoCandidate.h:108
LVL1::MuCTPIL1TopoCandidate::setRPCFlags
void setRPCFlags(bool is2cand, bool phiOvl)
Definition: MuCTPIL1TopoCandidate.cxx:61
LVL1::MuCTPIL1TopoCandidate::setCandidateData
void setCandidateData(const std::string &sectorName, unsigned int roiID, unsigned int bcid, unsigned int ptThresholdID, unsigned int ptL1TopoCode, unsigned int ptValue, float eta, float phi, unsigned int etacode, unsigned int phicode, float etamin, float etamax, float phimin, float phimax, unsigned int mioctID, int ieta, int iphi)
Definition: MuCTPIL1TopoCandidate.cxx:17
LVL1::MuCTPIL1TopoCandidate::m_charge
int m_charge
Definition: MuCTPIL1TopoCandidate.h:119
LVL1::MuCTPIL1TopoCandidate::setTGCFlags
void setTGCFlags(bool bw2or3, bool innerCoin, bool goodMF, int charge)
Definition: MuCTPIL1TopoCandidate.cxx:53
LVL1::MuCTPIL1TopoCandidate::m_etamin
float m_etamin
Definition: MuCTPIL1TopoCandidate.h:109
LVL1::MuCTPIL1TopoCandidate::m_phimin
float m_phimin
Definition: MuCTPIL1TopoCandidate.h:111
LVL1::MuCTPIL1TopoCandidate::MuCTPIL1TopoCandidate
MuCTPIL1TopoCandidate()
Definition: MuCTPIL1TopoCandidate.cxx:11
LVL1::MuCTPIL1TopoCandidate::m_roiWord
unsigned int m_roiWord
Definition: MuCTPIL1TopoCandidate.h:113
LVL1::MuCTPIL1TopoCandidate::m_phimax
float m_phimax
Definition: MuCTPIL1TopoCandidate.h:112
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::MuCTPIL1TopoCandidate::print
void print() const
Definition: MuCTPIL1TopoCandidate.cxx:73
LVL1::MuCTPIL1TopoCandidate::m_mioctID
unsigned int m_mioctID
Definition: MuCTPIL1TopoCandidate.h:114
LVL1::MuCTPIL1TopoCandidate::m_innerCoin
bool m_innerCoin
Definition: MuCTPIL1TopoCandidate.h:121
LVL1::MuCTPIL1TopoCandidate::m_iphi
int m_iphi
Definition: MuCTPIL1TopoCandidate.h:116
LVL1::MuCTPIL1TopoCandidate::m_bw2or3
bool m_bw2or3
Definition: MuCTPIL1TopoCandidate.h:120
LVL1::MuCTPIL1TopoCandidate::m_etacode
unsigned int m_etacode
Definition: MuCTPIL1TopoCandidate.h:107
LVL1::MuCTPIL1TopoCandidate::m_eta
float m_eta
Definition: MuCTPIL1TopoCandidate.h:105
LVL1::MuCTPIL1TopoCandidate::m_ieta
int m_ieta
Definition: MuCTPIL1TopoCandidate.h:115
LVL1::MuCTPIL1TopoCandidate::m_ptValue
unsigned int m_ptValue
Definition: MuCTPIL1TopoCandidate.h:104
LVL1::MuCTPIL1TopoCandidate::setRoiWord
void setRoiWord(unsigned int roi)
Definition: MuCTPIL1TopoCandidate.cxx:68
LVL1::MuCTPIL1TopoCandidate::m_phi
float m_phi
Definition: MuCTPIL1TopoCandidate.h:106
charge
double charge(const T &p)
Definition: AtlasPID.h:756
xAOD::bcid
setEventNumber setTimeStamp bcid
Definition: EventInfo_v1.cxx:133
LVL1::MuCTPIL1TopoCandidate::m_ptL1TopoCode
unsigned int m_ptL1TopoCode
Definition: MuCTPIL1TopoCandidate.h:103
LVL1::MuCTPIL1TopoCandidate::m_phiOvl
bool m_phiOvl
Definition: MuCTPIL1TopoCandidate.h:117
LVL1::MuCTPIL1TopoCandidate::m_roiID
unsigned int m_roiID
Definition: MuCTPIL1TopoCandidate.h:100
LVL1::MuCTPIL1TopoCandidate::m_goodMF
bool m_goodMF
Definition: MuCTPIL1TopoCandidate.h:122
LVL1::MuCTPIL1TopoCandidate::m_ptThresholdID
unsigned int m_ptThresholdID
Definition: MuCTPIL1TopoCandidate.h:102
LVL1::MuCTPIL1TopoCandidate::m_is2cand
bool m_is2cand
Definition: MuCTPIL1TopoCandidate.h:118
LVL1::MuCTPIL1TopoCandidate::m_sectorName
std::string m_sectorName
Definition: MuCTPIL1TopoCandidate.h:98
LArCellBinning.etamin
etamin
Definition: LArCellBinning.py:137
LVL1::MuCTPIL1TopoCandidate::m_bcid
unsigned int m_bcid
Definition: MuCTPIL1TopoCandidate.h:101