34 myEt = (packedObject & 0xFFFF0000) >> 16;
35 myEta = (packedObject & 0x0000FF00) >> 8;
36 myPhi = (packedObject & 0x000000FF);
43 unsigned int etBits = (
myEt << 16);
45 unsigned int etaBits = (
myEta << 8);
47 return (etBits + etaBits +
myPhi);
50 std::cerr <<
"L1GObject: Cannot pack content - fatal error: " <<
myEt <<
", " <<
myEta <<
", " <<
myPhi << std::endl;
96 bool empty()
const {
return false;}
106 else if (
myEta < 22) {
159 os <<
"L1GObject : Name = " << t.
name()
160 <<
"(Et, Eta, Phi) = (" 178 for(
unsigned int i = 0;
i < 10;
i++) {
181 for(
unsigned int j = 10; j < 18; j++) {
182 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)
virtual double eta() const final
momentum pseudorapidity
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_
virtual double phi() const final
momentum azimuthal angle
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
L1GObject & operator=(const L1GObject &t)
virtual double et() const final
transverse energy
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)
virtual void setP4(const LorentzVector &p4) final
set 4-momentum
L1GObject(unsigned int et, unsigned int eta, unsigned int phi)
bool operator<=(const L1GObject &t) const
unsigned int phiIndex() const
void setEta(unsigned int eta)
double associatedJetPt() const