ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LVL1::MuCTPIL1TopoCandidate Class Reference

MuCTPI input class to the L1Topo simulation. More...

#include <MuCTPIL1TopoCandidate.h>

Collaboration diagram for LVL1::MuCTPIL1TopoCandidate:

Public Member Functions

 MuCTPIL1TopoCandidate ()
 
 ~MuCTPIL1TopoCandidate ()=default
 
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)
 
void setTGCFlags (bool bw2or3, bool innerCoin, bool goodMF, int charge)
 
void setRPCFlags (bool is2cand, bool phiOvl)
 
void setRoiWord (unsigned int roi)
 
void setptL1TopoCodeToOvFl ()
 
bool moreThan2CandidatesOverflow () const
 whether there was an overflow More...
 
std::string getSectorName () const
 
unsigned int getRoiID () const
 
unsigned int getbcid () const
 
unsigned int getptThresholdID () const
 
unsigned int getptL1TopoCode () const
 
unsigned int getptValue () const
 
float geteta () const
 
float getphi () const
 
unsigned int getetacode () const
 
unsigned int getphicode () const
 
float getetamin () const
 
float getetamax () const
 
float getphimin () const
 
float getphimax () const
 
unsigned int getRoiWord () const
 
unsigned int getMioctID () const
 
int getieta () const
 
int getiphi () const
 
int getphiOvl () const
 
int getis2cand () const
 
int getcharge () const
 
bool getbw2or3 () const
 
bool getinnerCoin () const
 
bool getgoodMF () const
 
void print () const
 

Private Attributes

std::string m_sectorName
 
unsigned int m_roiID
 
unsigned int m_bcid
 
unsigned int m_ptThresholdID
 
unsigned int m_ptL1TopoCode
 
unsigned int m_ptValue
 
float m_eta
 
float m_phi
 
unsigned int m_etacode
 
unsigned int m_phicode
 
float m_etamin
 
float m_etamax
 
float m_phimin
 
float m_phimax
 
unsigned int m_roiWord
 
unsigned int m_mioctID
 
int m_ieta
 
int m_iphi
 
bool m_phiOvl
 
bool m_is2cand
 
int m_charge
 
bool m_bw2or3
 
bool m_innerCoin
 
bool m_goodMF
 

Detailed Description

MuCTPI input class to the L1Topo simulation.

   This class is used to hold one LVL1 muon candidate as sent
   from the MuCTPI simulation to the L1Topo simulation.
   The setter functions perform the conversion of number encodeing
   to eta/phi etc

$author Thorsten Wengler

Definition at line 23 of file MuCTPIL1TopoCandidate.h.

Constructor & Destructor Documentation

◆ MuCTPIL1TopoCandidate()

LVL1::MuCTPIL1TopoCandidate::MuCTPIL1TopoCandidate ( )

Definition at line 11 of file MuCTPIL1TopoCandidate.cxx.

11  :
12  m_sectorName(""), m_roiID(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) {}

◆ ~MuCTPIL1TopoCandidate()

LVL1::MuCTPIL1TopoCandidate::~MuCTPIL1TopoCandidate ( )
default

Member Function Documentation

◆ getbcid()

unsigned int LVL1::MuCTPIL1TopoCandidate::getbcid ( ) const
inline

Definition at line 70 of file MuCTPIL1TopoCandidate.h.

70 { return m_bcid; }

◆ getbw2or3()

bool LVL1::MuCTPIL1TopoCandidate::getbw2or3 ( ) const
inline

Definition at line 89 of file MuCTPIL1TopoCandidate.h.

89 {return m_bw2or3;} // >= run-3, TGC only

◆ getcharge()

int LVL1::MuCTPIL1TopoCandidate::getcharge ( ) const
inline

Definition at line 88 of file MuCTPIL1TopoCandidate.h.

88 { return m_charge; } // >= run-3, TGC only

◆ geteta()

float LVL1::MuCTPIL1TopoCandidate::geteta ( ) const
inline

Definition at line 74 of file MuCTPIL1TopoCandidate.h.

74 { return m_eta; }

◆ getetacode()

unsigned int LVL1::MuCTPIL1TopoCandidate::getetacode ( ) const
inline

Definition at line 76 of file MuCTPIL1TopoCandidate.h.

76 { return m_etacode; }

◆ getetamax()

float LVL1::MuCTPIL1TopoCandidate::getetamax ( ) const
inline

Definition at line 79 of file MuCTPIL1TopoCandidate.h.

79 { return m_etamax; }

◆ getetamin()

float LVL1::MuCTPIL1TopoCandidate::getetamin ( ) const
inline

Definition at line 78 of file MuCTPIL1TopoCandidate.h.

78 { return m_etamin; }

◆ getgoodMF()

bool LVL1::MuCTPIL1TopoCandidate::getgoodMF ( ) const
inline

Definition at line 91 of file MuCTPIL1TopoCandidate.h.

91 {return m_goodMF;} // >= run-3, TGC only

◆ getieta()

int LVL1::MuCTPIL1TopoCandidate::getieta ( ) const
inline

Definition at line 84 of file MuCTPIL1TopoCandidate.h.

84 { return m_ieta; }

◆ getinnerCoin()

bool LVL1::MuCTPIL1TopoCandidate::getinnerCoin ( ) const
inline

Definition at line 90 of file MuCTPIL1TopoCandidate.h.

90 {return m_innerCoin;} // >= run-3, TGC only

◆ getiphi()

int LVL1::MuCTPIL1TopoCandidate::getiphi ( ) const
inline

Definition at line 85 of file MuCTPIL1TopoCandidate.h.

85 { return m_iphi; }

◆ getis2cand()

int LVL1::MuCTPIL1TopoCandidate::getis2cand ( ) const
inline

Definition at line 87 of file MuCTPIL1TopoCandidate.h.

87 { return m_is2cand; } // >= run-3, RPC only

◆ getMioctID()

unsigned int LVL1::MuCTPIL1TopoCandidate::getMioctID ( ) const
inline

Definition at line 83 of file MuCTPIL1TopoCandidate.h.

83 { return m_mioctID; } // <= run-2 only

◆ getphi()

float LVL1::MuCTPIL1TopoCandidate::getphi ( ) const
inline

Definition at line 75 of file MuCTPIL1TopoCandidate.h.

75 { return m_phi; }

◆ getphicode()

unsigned int LVL1::MuCTPIL1TopoCandidate::getphicode ( ) const
inline

Definition at line 77 of file MuCTPIL1TopoCandidate.h.

77 { return m_phicode; }

◆ getphimax()

float LVL1::MuCTPIL1TopoCandidate::getphimax ( ) const
inline

Definition at line 81 of file MuCTPIL1TopoCandidate.h.

81 { return m_phimax; }

◆ getphimin()

float LVL1::MuCTPIL1TopoCandidate::getphimin ( ) const
inline

Definition at line 80 of file MuCTPIL1TopoCandidate.h.

80 { return m_phimin; }

◆ getphiOvl()

int LVL1::MuCTPIL1TopoCandidate::getphiOvl ( ) const
inline

Definition at line 86 of file MuCTPIL1TopoCandidate.h.

86 { return m_phiOvl; } // >= run-3, RPC only

◆ getptL1TopoCode()

unsigned int LVL1::MuCTPIL1TopoCandidate::getptL1TopoCode ( ) const
inline

Definition at line 72 of file MuCTPIL1TopoCandidate.h.

72 { return m_ptL1TopoCode; }

◆ getptThresholdID()

unsigned int LVL1::MuCTPIL1TopoCandidate::getptThresholdID ( ) const
inline

Definition at line 71 of file MuCTPIL1TopoCandidate.h.

71 { return m_ptThresholdID; }

◆ getptValue()

unsigned int LVL1::MuCTPIL1TopoCandidate::getptValue ( ) const
inline

Definition at line 73 of file MuCTPIL1TopoCandidate.h.

73 { return m_ptValue; }

◆ getRoiID()

unsigned int LVL1::MuCTPIL1TopoCandidate::getRoiID ( ) const
inline

Definition at line 69 of file MuCTPIL1TopoCandidate.h.

69 { return m_roiID; }

◆ getRoiWord()

unsigned int LVL1::MuCTPIL1TopoCandidate::getRoiWord ( ) const
inline

Definition at line 82 of file MuCTPIL1TopoCandidate.h.

82 { return m_roiWord; }

◆ getSectorName()

std::string LVL1::MuCTPIL1TopoCandidate::getSectorName ( ) const
inline

Definition at line 68 of file MuCTPIL1TopoCandidate.h.

68 { return m_sectorName; }

◆ moreThan2CandidatesOverflow()

bool LVL1::MuCTPIL1TopoCandidate::moreThan2CandidatesOverflow ( ) const
inline

whether there was an overflow

In the current encoding, the pt bits set to '11' are used to indicate >2 candidates in the Mioct https://twiki.cern.ch/twiki/bin/view/Atlas/LevelOneCentralTriggerUpgradePhase0Mioct#Close_to_final_format

Definition at line 65 of file MuCTPIL1TopoCandidate.h.

65 { return m_ptL1TopoCode==3; }

◆ print()

void LVL1::MuCTPIL1TopoCandidate::print ( ) const

Definition at line 73 of file MuCTPIL1TopoCandidate.cxx.

73  {
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  }

◆ setCandidateData()

void LVL1::MuCTPIL1TopoCandidate::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 at line 17 of file MuCTPIL1TopoCandidate.cxx.

33  {
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  }

◆ setptL1TopoCodeToOvFl()

void LVL1::MuCTPIL1TopoCandidate::setptL1TopoCodeToOvFl ( )
inline

Definition at line 58 of file MuCTPIL1TopoCandidate.h.

58 { m_ptL1TopoCode=3; }

◆ setRoiWord()

void LVL1::MuCTPIL1TopoCandidate::setRoiWord ( unsigned int  roi)

Definition at line 68 of file MuCTPIL1TopoCandidate.cxx.

68  {
69  m_roiWord = roi;
70  }

◆ setRPCFlags()

void LVL1::MuCTPIL1TopoCandidate::setRPCFlags ( bool  is2cand,
bool  phiOvl 
)

Definition at line 61 of file MuCTPIL1TopoCandidate.cxx.

62  {
63  m_is2cand = is2cand;
64  m_phiOvl = phiOvl;
65  }

◆ setTGCFlags()

void LVL1::MuCTPIL1TopoCandidate::setTGCFlags ( bool  bw2or3,
bool  innerCoin,
bool  goodMF,
int  charge 
)

Definition at line 53 of file MuCTPIL1TopoCandidate.cxx.

54  {
55  m_bw2or3 = bw2or3;
56  m_innerCoin = innerCoin;
57  m_goodMF = goodMF;
58  m_charge = charge;
59  }

Member Data Documentation

◆ m_bcid

unsigned int LVL1::MuCTPIL1TopoCandidate::m_bcid
private

Definition at line 101 of file MuCTPIL1TopoCandidate.h.

◆ m_bw2or3

bool LVL1::MuCTPIL1TopoCandidate::m_bw2or3
private

Definition at line 120 of file MuCTPIL1TopoCandidate.h.

◆ m_charge

int LVL1::MuCTPIL1TopoCandidate::m_charge
private

Definition at line 119 of file MuCTPIL1TopoCandidate.h.

◆ m_eta

float LVL1::MuCTPIL1TopoCandidate::m_eta
private

Definition at line 105 of file MuCTPIL1TopoCandidate.h.

◆ m_etacode

unsigned int LVL1::MuCTPIL1TopoCandidate::m_etacode
private

Definition at line 107 of file MuCTPIL1TopoCandidate.h.

◆ m_etamax

float LVL1::MuCTPIL1TopoCandidate::m_etamax
private

Definition at line 110 of file MuCTPIL1TopoCandidate.h.

◆ m_etamin

float LVL1::MuCTPIL1TopoCandidate::m_etamin
private

Definition at line 109 of file MuCTPIL1TopoCandidate.h.

◆ m_goodMF

bool LVL1::MuCTPIL1TopoCandidate::m_goodMF
private

Definition at line 122 of file MuCTPIL1TopoCandidate.h.

◆ m_ieta

int LVL1::MuCTPIL1TopoCandidate::m_ieta
private

Definition at line 115 of file MuCTPIL1TopoCandidate.h.

◆ m_innerCoin

bool LVL1::MuCTPIL1TopoCandidate::m_innerCoin
private

Definition at line 121 of file MuCTPIL1TopoCandidate.h.

◆ m_iphi

int LVL1::MuCTPIL1TopoCandidate::m_iphi
private

Definition at line 116 of file MuCTPIL1TopoCandidate.h.

◆ m_is2cand

bool LVL1::MuCTPIL1TopoCandidate::m_is2cand
private

Definition at line 118 of file MuCTPIL1TopoCandidate.h.

◆ m_mioctID

unsigned int LVL1::MuCTPIL1TopoCandidate::m_mioctID
private

Definition at line 114 of file MuCTPIL1TopoCandidate.h.

◆ m_phi

float LVL1::MuCTPIL1TopoCandidate::m_phi
private

Definition at line 106 of file MuCTPIL1TopoCandidate.h.

◆ m_phicode

unsigned int LVL1::MuCTPIL1TopoCandidate::m_phicode
private

Definition at line 108 of file MuCTPIL1TopoCandidate.h.

◆ m_phimax

float LVL1::MuCTPIL1TopoCandidate::m_phimax
private

Definition at line 112 of file MuCTPIL1TopoCandidate.h.

◆ m_phimin

float LVL1::MuCTPIL1TopoCandidate::m_phimin
private

Definition at line 111 of file MuCTPIL1TopoCandidate.h.

◆ m_phiOvl

bool LVL1::MuCTPIL1TopoCandidate::m_phiOvl
private

Definition at line 117 of file MuCTPIL1TopoCandidate.h.

◆ m_ptL1TopoCode

unsigned int LVL1::MuCTPIL1TopoCandidate::m_ptL1TopoCode
private

Definition at line 103 of file MuCTPIL1TopoCandidate.h.

◆ m_ptThresholdID

unsigned int LVL1::MuCTPIL1TopoCandidate::m_ptThresholdID
private

Definition at line 102 of file MuCTPIL1TopoCandidate.h.

◆ m_ptValue

unsigned int LVL1::MuCTPIL1TopoCandidate::m_ptValue
private

Definition at line 104 of file MuCTPIL1TopoCandidate.h.

◆ m_roiID

unsigned int LVL1::MuCTPIL1TopoCandidate::m_roiID
private

Definition at line 100 of file MuCTPIL1TopoCandidate.h.

◆ m_roiWord

unsigned int LVL1::MuCTPIL1TopoCandidate::m_roiWord
private

Definition at line 113 of file MuCTPIL1TopoCandidate.h.

◆ m_sectorName

std::string LVL1::MuCTPIL1TopoCandidate::m_sectorName
private

Definition at line 98 of file MuCTPIL1TopoCandidate.h.


The documentation for this class was generated from the following files:
LVL1::MuCTPIL1TopoCandidate::m_etamax
float m_etamax
Definition: MuCTPIL1TopoCandidate.h:110
LVL1::MuCTPIL1TopoCandidate::m_phicode
unsigned int m_phicode
Definition: MuCTPIL1TopoCandidate.h:108
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
LVL1::MuCTPIL1TopoCandidate::m_charge
int m_charge
Definition: MuCTPIL1TopoCandidate.h:119
LVL1::MuCTPIL1TopoCandidate::m_etamin
float m_etamin
Definition: MuCTPIL1TopoCandidate.h:109
LVL1::MuCTPIL1TopoCandidate::m_phimin
float m_phimin
Definition: MuCTPIL1TopoCandidate.h:111
LVL1::MuCTPIL1TopoCandidate::m_roiWord
unsigned int m_roiWord
Definition: MuCTPIL1TopoCandidate.h:113
LVL1::MuCTPIL1TopoCandidate::m_phimax
float m_phimax
Definition: MuCTPIL1TopoCandidate.h:112
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::m_phi
float m_phi
Definition: MuCTPIL1TopoCandidate.h:106
charge
double charge(const T &p)
Definition: AtlasPID.h:494
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