36 myEt = (packedObject & 0xFFFF0000) >> 16;
37 myEta = (packedObject & 0x0000FF00) >> 8;
38 myPhi = (packedObject & 0x000000FF);
46 unsigned int etBits = (
myEt << 16);
48 unsigned int etaBits = (
myEta << 8);
50 return (etBits + etaBits +
myPhi);
97 bool empty()
const {
return false; }
104 }
else if (
myEta < 22) {
161 os <<
"L1GObject : Name = " << t.
name() <<
"(Et, Eta, Phi) = (" << t.
myEt <<
", " << t.
myEta <<
", " << t.
myPhi
173 for (
unsigned int i = 0;
i < 10;
i++) {
176 for (
unsigned int j = 10;
j < 18;
j++) {
177 phiValues[
j] = -3.1415927 + 2. * 3.1415927 * (
j - 9) / 18;
unsigned int ptCode() const
bool operator>(const L1GObject &t) const
void setEt(unsigned int et)
bool operator>=(const L1GObject &t) const
bool ellIsolation() const
unsigned int puLevel() const
unsigned int packedObject()
bool operator==(const L1GObject &t) const
L1GObject(unsigned int et, unsigned int eta, unsigned int phi, std::string name)
L1GObject(const L1GObject &t)
double associatedRegionEt_
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
L1GObject & operator=(const L1GObject &t)
L1GObject(unsigned int packedObject, std::string name="L1GObject")
void setPhi(unsigned int phi)
bool operator<(const L1GObject &t) const
double associatedRegionEt() const
unsigned int etaIndex() const
friend std::ostream & operator<<(std::ostream &os, const L1GObject &t)
void setName(std::string name)
L1GObject(unsigned int et, unsigned int eta, unsigned int phi)
bool operator<=(const L1GObject &t) const
double et() const final
transverse energy
double phi() const final
momentum azimuthal angle
unsigned int phiIndex() const
void setEta(unsigned int eta)
void setP4(const LorentzVector &p4) final
set 4-momentum
double associatedJetPt() const
double eta() const final
momentum pseudorapidity