37 myEt = (packedObject & 0xFFFF0000) >> 16;
38 myEta = (packedObject & 0x0000FF00) >> 8;
39 myPhi = (packedObject & 0x000000FF);
46 unsigned int etBits = (
myEt << 16);
48 unsigned int etaBits = (
myEta << 8);
50 return (etBits + etaBits +
myPhi);
53 std::cerr <<
"L1GObject: Cannot pack content - fatal error: " <<
myEt <<
", " <<
myEta <<
", " <<
myPhi << std::endl;
99 bool empty()
const {
return false;}
109 else if (
myEta < 22) {
162 os <<
"L1GObject : Name = " << t.
name()
163 <<
"(Et, Eta, Phi) = ("
181 for(
unsigned int i = 0;
i < 10;
i++) {
184 for(
unsigned int j = 10;
j < 18;
j++) {
185 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 et() const
transverse energy
bool operator>=(const L1GObject &t) const
bool ellIsolation() const
unsigned int puLevel() const
virtual void setP4(const LorentzVector &p4)
set 4-momentum
unsigned int packedObject()
bool operator==(const L1GObject &t) const
void setName(string name)
virtual double eta() const
momentum pseudorapidity
L1GObject(const L1GObject &t)
double associatedRegionEt_
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
L1GObject & operator=(const L1GObject &t)
void setPhi(unsigned int phi)
bool operator<(const L1GObject &t) const
double associatedRegionEt() const
friend ostream & operator<<(ostream &os, const L1GObject &t)
unsigned int etaIndex() const
L1GObject(unsigned int packedObject, string name="L1GObject")
L1GObject(unsigned int et, unsigned int eta, unsigned int phi)
bool operator<=(const L1GObject &t) const
virtual double phi() const
momentum azimuthal angle
unsigned int phiIndex() const
void setEta(unsigned int eta)
L1GObject(unsigned int et, unsigned int eta, unsigned int phi, string name)
double associatedJetPt() const