CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
CaloTower Class Reference

#include <CaloTower.h>

Inheritance diagram for CaloTower:
reco::LeafCandidate reco::Candidate

Public Types

typedef CaloTowerDetId key_type
 
- Public Types inherited from reco::LeafCandidate
typedef int Charge
 electric charge type More...
 
typedef CandidateCollection daughters
 collection of daughter candidates More...
 
typedef unsigned int index
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector. More...
 
typedef math::XYZVector Vector
 point in the space More...
 
- Public Types inherited from reco::Candidate
enum  { dimension = 3 }
 
enum  { size = dimension * (dimension + 1)/2 }
 matix size More...
 
typedef int Charge
 electric charge type More...
 
typedef candidate::const_iterator const_iterator
 
typedef math::Error< dimension >
::type 
CovarianceMatrix
 covariance error matrix (3x3) More...
 
typedef unsigned int index
 index type More...
 
typedef candidate::iterator iterator
 
typedef math::XYZTLorentzVector LorentzVector
 Lorentz vector. More...
 
typedef math::XYZPoint Point
 point in the space More...
 
typedef
math::PtEtaPhiMLorentzVector 
PolarLorentzVector
 Lorentz vector. More...
 
typedef size_t size_type
 
typedef math::XYZVector Vector
 point in the space More...
 

Public Member Functions

void addConstituent (DetId id)
 
void addConstituents (const std::vector< DetId > &ids)
 
 CaloTower ()
 
 CaloTower (const CaloTowerDetId &id, double emE, double hadE, double outerE, int ecal_tp, int hcal_tp, const PolarLorentzVector &p4, const GlobalPoint &emPosition, const GlobalPoint &hadPosition)
 
 CaloTower (const CaloTowerDetId &id, double emE, double hadE, double outerE, int ecal_tp, int hcal_tp, const LorentzVector &p4, const GlobalPoint &emPosition, const GlobalPoint &hadPosition)
 
 CaloTower (CaloTowerDetId id, float emE, float hadE, float outerE, int ecal_tp, int hcal_tp, GlobalVector p3, float iEnergy, bool massless, GlobalPoint emPosition, GlobalPoint hadPosition)
 
 CaloTower (CaloTowerDetId id, float emE, float hadE, float outerE, int ecal_tp, int hcal_tp, GlobalVector p3, float iEnergy, float imass, GlobalPoint emPosition, GlobalPoint hadPosition)
 
DetId constituent (size_t i) const
 
const std::vector< DetId > & constituents () const
 
size_t constituentsSize () const
 
float ecalTime () const
 
double emEnergy () const
 
double emEt () const
 
double emEt (double vtxZ) const
 
double emEt (const Point &v) const
 
int emLvl1 () const
 
const GlobalPointemPosition () const
 
double energyInHB () const
 
double energyInHE () const
 
double energyInHF () const
 
double energyInHO () const
 
double et (double vtxZ) const
 
double et (const Point &v) const
 
double hadEnergy () const
 
double hadEnergyHeInnerLayer () const
 
double hadEnergyHeOuterLayer () const
 
double hadEt () const
 
double hadEt (double vtxZ) const
 
double hadEt (const Point &v) const
 
int hadLv11 () const
 
const GlobalPointhadPosition () const
 
float hcalTime () const
 
double hottestCellE () const
 
CaloTowerDetId id () const
 
int ieta () const
 
int ietaAbs () const
 
int iphi () const
 
unsigned int numBadEcalCells () const
 
unsigned int numBadHcalCells () const
 
int numCrystals () const
 
unsigned int numProblematicEcalCells () const
 
unsigned int numProblematicHcalCells () const
 
unsigned int numRecoveredEcalCells () const
 
unsigned int numRecoveredHcalCells () const
 
double outerEnergy () const
 
double outerEt () const
 
double outerEt (double vtxZ) const
 
double outerEt (const Point &v) const
 
double p (double vtxZ) const
 
double p (const Point &v) const
 
math::PtEtaPhiMLorentzVector p4 (double vtxZ) const
 
math::PtEtaPhiMLorentzVector p4 (const Point &v) const
 
math::PtEtaPhiMLorentzVector p4_HO () const
 
math::PtEtaPhiMLorentzVector p4_HO (double vtxZ) const
 
math::PtEtaPhiMLorentzVector p4_HO (const Point &v) const
 
void setCaloTowerStatus (unsigned int numBadHcalChan, unsigned int numBadEcalChan, unsigned int numRecHcalChan, unsigned int numRecEcalChan, unsigned int numProbHcalChan, unsigned int numProbEcalChan)
 
void setCaloTowerStatus (uint32_t s)
 
void setEcalTime (int t)
 
void setHcalTime (int t)
 
void setHottestCellE (double e)
 
uint32_t towerStatusWord () const
 
int zside () const
 
- Public Member Functions inherited from reco::LeafCandidate
virtual const_iterator begin () const
 first daughter const_iterator More...
 
virtual iterator begin ()
 first daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
virtual Vector boostToCM () const
 
virtual int charge () const
 electric charge More...
 
virtual LeafCandidateclone () const
 returns a clone of the Candidate object More...
 
virtual const Candidatedaughter (size_type) const
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (size_type)
 return daughter at a given position (throws an exception) More...
 
virtual Candidatedaughter (const std::string &s)
 return daughter with a specified role name More...
 
virtual const Candidatedaughter (const std::string &s) const
 return daughter with a specified role name More...
 
virtual const_iterator end () const
 last daughter const_iterator More...
 
virtual iterator end ()
 last daughter iterator More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
virtual double energy () const
 energy More...
 
virtual double et () const
 transverse energy More...
 
virtual float eta () const
 momentum pseudorapidity More...
 
virtual void fillVertexCovariance (CovarianceMatrix &v) const
 fill SMatrix More...
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
virtual bool hasMasterClone () const
 
virtual bool hasMasterClonePtr () const
 
virtual bool isCaloMuon () const
 
virtual bool isConvertedPhoton () const
 
virtual bool isElectron () const
 
virtual bool isGlobalMuon () const
 
virtual bool isJet () const
 
virtual bool isMuon () const
 
virtual bool isPhoton () const
 
virtual bool isStandAloneMuon () const
 
virtual bool isTrackerMuon () const
 
 LeafCandidate ()
 default constructor More...
 
 LeafCandidate (const Candidate &c)
 
template<typename P4 >
 LeafCandidate (Charge q, const P4 &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from Any values More...
 
 LeafCandidate (Charge q, const PtEtaPhiMass &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const GlobalVector &p3, float iEnergy, bool massless, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
 LeafCandidate (Charge q, const GlobalVector &p3, float iEnergy, float imass, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
 constructor from values More...
 
virtual bool longLived () const
 is long lived? More...
 
virtual float mass () const
 mass More...
 
virtual bool massConstraint () const
 do mass constraint? More...
 
virtual float massSqr () const
 mass squared More...
 
virtual const CandidateBaseRefmasterClone () const
 
virtual const CandidatePtrmasterClonePtr () const
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
virtual Vector momentum () const
 spatial momentum vector More...
 
virtual const Candidatemother (size_type) const
 return mother at a given position (throws an exception) More...
 
virtual double mt () const
 transverse mass More...
 
virtual double mtSqr () const
 transverse mass squared More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual size_t numberOfDaughters () const
 number of daughters More...
 
virtual size_t numberOfMothers () const
 number of mothers More...
 
virtual size_t numberOfSourceCandidatePtrs () const
 
virtual double p () const
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const
 four-momentum Lorentz vector More...
 
virtual int pdgId () const
 PDG identifier. More...
 
virtual float phi () const
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const
 four-momentum Lorentz vector More...
 
virtual float pt () const
 transverse momentum More...
 
virtual double px () const
 x coordinate of momentum vector More...
 
virtual double py () const
 y coordinate of momentum vector More...
 
virtual double pz () const
 z coordinate of momentum vector More...
 
virtual double rapidity () const
 rapidity More...
 
virtual void setCharge (Charge q)
 set electric charge More...
 
virtual void setLongLived ()
 set long lived flag More...
 
virtual void setMass (double m)
 set particle mass More...
 
virtual void setMassConstraint ()
 set mass constraint flag More...
 
virtual void setP4 (const LorentzVector &p4)
 set 4-momentum More...
 
virtual void setP4 (const PolarLorentzVector &p4)
 set 4-momentum More...
 
virtual void setPdgId (int pdgId)
 
virtual void setPz (double pz)
 
virtual void setStatus (int status)
 set status word More...
 
virtual void setThreeCharge (Charge qx3)
 set electric charge More...
 
virtual void setVertex (const Point &vertex)
 set vertex More...
 
virtual CandidatePtr sourceCandidatePtr (size_type i) const
 
virtual int status () const
 status word More...
 
virtual double theta () const
 momentum polar angle More...
 
virtual int threeCharge () const
 electric charge More...
 
virtual const Pointvertex () const
 vertex position (overwritten by PF...) More...
 
virtual double vertexChi2 () const
 chi-squares More...
 
virtual double vertexCovariance (int i, int j) const
 (i, j)-th element of error matrix, i, j = 0, ... 2 More...
 
CovarianceMatrix vertexCovariance () const
 return SMatrix More...
 
virtual double vertexNdof () const
 
virtual double vertexNormalizedChi2 () const
 chi-squared divided by n.d.o.f. More...
 
virtual double vx () const
 x coordinate of vertex position More...
 
virtual double vy () const
 y coordinate of vertex position More...
 
virtual double vz () const
 z coordinate of vertex position More...
 
virtual double y () const
 rapidity More...
 
virtual ~LeafCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
template<typename S >
daughter_iterator< S >::type beginFilter (const S &s) const
 
virtual const TrackbestTrack () const
 
 Candidate ()
 default constructor More...
 
template<typename S >
daughter_iterator< S >::type endFilter (const S &s) const
 
template<typename T >
T get () const
 get a component More...
 
template<typename T , typename Tag >
T get () const
 get a component More...
 
template<typename T >
T get (size_type i) const
 get a component More...
 
template<typename T , typename Tag >
T get (size_type i) const
 get a component More...
 
template<typename Ref >
Ref masterRef () const
 cast master clone reference to a concrete type More...
 
template<typename T >
size_type numberOf () const
 number of components More...
 
template<typename T , typename Tag >
size_type numberOf () const
 number of components More...
 
virtual void setSourceCandidatePtr (const CandidatePtr &ptr)
 Set the ptr to the source Candidate. More...
 
virtual ~Candidate ()
 destructor More...
 

Private Member Functions

math::PtEtaPhiMLorentzVector emP4 (const Point &v) const
 
math::PtEtaPhiMLorentzVector emP4 (double vtxZ) const
 
math::PtEtaPhiMLorentzVector hadP4 (const Point &v) const
 
math::PtEtaPhiMLorentzVector hadP4 (double vtxZ) const
 

Private Attributes

std::vector< DetIdconstituents_
 
int ecalTime_
 
float emE_
 
int emLvl1_
 
GlobalPoint emPosition_
 
float hadE_
 
int hadLvl1_
 
GlobalPoint hadPosition_
 
int hcalTime_
 
float hottestCellE_
 
CaloTowerDetId id_
 
float outerE_
 
uint32_t twrStatusWord_
 

Additional Inherited Members

- Static Public Member Functions inherited from reco::LeafCandidate
static double dmass (GlobalVector v, double e)
 
static double magd (GlobalVector v)
 
- Static Public Attributes inherited from reco::LeafCandidate
static const unsigned int longLivedTag = 65536
 long lived flag More...
 
static const unsigned int massConstraintTag = 131072
 do mass constraint flag More...
 
- Protected Member Functions inherited from reco::LeafCandidate
void cacheCartesian () const
 set internal cache More...
 
void cachePolar () const
 set internal cache More...
 
void clearCache () const
 clear internal cache More...
 
virtual bool overlap (const Candidate &) const
 check overlap with another Candidate More...
 
- Protected Attributes inherited from reco::LeafCandidate
bool cacheCartesianFixed_
 
bool cachePolarFixed_
 has cache been set? More...
 
float eta_
 
float mass_
 
LorentzVector p4Cartesian_
 internal cache for p4 More...
 
PolarLorentzVector p4Polar_
 internal cache for p4 More...
 
int pdgId_
 PDG identifier. More...
 
float phi_
 
float pt_
 four-momentum Lorentz vector More...
 
Charge qx3_
 electric charge More...
 
int status_
 status word More...
 
Point vertex_
 vertex position More...
 

Detailed Description

Author
J. Mans - Minnesota

Definition at line 26 of file CaloTower.h.

Member Typedef Documentation

Definition at line 28 of file CaloTower.h.

Constructor & Destructor Documentation

CaloTower::CaloTower ( )

Definition at line 4 of file CaloTower.cc.

References emE_, emLvl1_, hadE_, hadLvl1_, and outerE_.

4  {
5  emE_=0;
6  hadE_=0;
7  outerE_=0;
8  emLvl1_=0;
9  hadLvl1_=0;
10 }
float outerE_
Definition: CaloTower.h:205
float emE_
Definition: CaloTower.h:205
float hadE_
Definition: CaloTower.h:205
int emLvl1_
Definition: CaloTower.h:209
int hadLvl1_
Definition: CaloTower.h:209
CaloTower::CaloTower ( const CaloTowerDetId id,
double  emE,
double  hadE,
double  outerE,
int  ecal_tp,
int  hcal_tp,
const PolarLorentzVector p4,
const GlobalPoint emPosition,
const GlobalPoint hadPosition 
)

Definition at line 12 of file CaloTower.cc.

16  :
17  LeafCandidate(0, p4, Point(0,0,0)),
18  id_(id),
19  emPosition_(emPos), hadPosition_(hadPos),
20  emE_(emE), hadE_(hadE), outerE_(outerE),
21  emLvl1_(ecal_tp), hadLvl1_(hcal_tp) {}
float outerE_
Definition: CaloTower.h:205
CaloTowerDetId id_
Definition: CaloTower.h:193
float emE_
Definition: CaloTower.h:205
float hadE_
Definition: CaloTower.h:205
GlobalPoint hadPosition_
Definition: CaloTower.h:199
int emLvl1_
Definition: CaloTower.h:209
LeafCandidate()
default constructor
Definition: LeafCandidate.h:42
int hadLvl1_
Definition: CaloTower.h:209
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
GlobalPoint emPosition_
Definition: CaloTower.h:198
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:32
CaloTower::CaloTower ( const CaloTowerDetId id,
double  emE,
double  hadE,
double  outerE,
int  ecal_tp,
int  hcal_tp,
const LorentzVector p4,
const GlobalPoint emPosition,
const GlobalPoint hadPosition 
)

Definition at line 25 of file CaloTower.cc.

29  :
30  LeafCandidate(0, p4, Point(0,0,0)),
31  id_(id),
32  emPosition_(emPos), hadPosition_(hadPos),
33  emE_(emE), hadE_(hadE), outerE_(outerE),
34  emLvl1_(ecal_tp), hadLvl1_(hcal_tp) {}
float outerE_
Definition: CaloTower.h:205
CaloTowerDetId id_
Definition: CaloTower.h:193
float emE_
Definition: CaloTower.h:205
float hadE_
Definition: CaloTower.h:205
GlobalPoint hadPosition_
Definition: CaloTower.h:199
int emLvl1_
Definition: CaloTower.h:209
LeafCandidate()
default constructor
Definition: LeafCandidate.h:42
int hadLvl1_
Definition: CaloTower.h:209
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
GlobalPoint emPosition_
Definition: CaloTower.h:198
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:32
CaloTower::CaloTower ( CaloTowerDetId  id,
float  emE,
float  hadE,
float  outerE,
int  ecal_tp,
int  hcal_tp,
GlobalVector  p3,
float  iEnergy,
bool  massless,
GlobalPoint  emPosition,
GlobalPoint  hadPosition 
)

Definition at line 37 of file CaloTower.cc.

41  :
42  LeafCandidate(0, p3, iEnergy, massless, Point(0,0,0)),
43  id_(id),
44  emPosition_(emPos), hadPosition_(hadPos),
45  emE_(emE), hadE_(hadE), outerE_(outerE),
46  emLvl1_(ecal_tp), hadLvl1_(hcal_tp) {}
float outerE_
Definition: CaloTower.h:205
CaloTowerDetId id_
Definition: CaloTower.h:193
float emE_
Definition: CaloTower.h:205
float hadE_
Definition: CaloTower.h:205
GlobalPoint hadPosition_
Definition: CaloTower.h:199
int emLvl1_
Definition: CaloTower.h:209
LeafCandidate()
default constructor
Definition: LeafCandidate.h:42
int hadLvl1_
Definition: CaloTower.h:209
GlobalPoint emPosition_
Definition: CaloTower.h:198
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:32
CaloTower::CaloTower ( CaloTowerDetId  id,
float  emE,
float  hadE,
float  outerE,
int  ecal_tp,
int  hcal_tp,
GlobalVector  p3,
float  iEnergy,
float  imass,
GlobalPoint  emPosition,
GlobalPoint  hadPosition 
)

Definition at line 48 of file CaloTower.cc.

52  :
53  LeafCandidate(0, p3, iEnergy, imass, Point(0,0,0)),
54  id_(id),
55  emPosition_(emPos), hadPosition_(hadPos),
56  emE_(emE), hadE_(hadE), outerE_(outerE),
57  emLvl1_(ecal_tp), hadLvl1_(hcal_tp) {}
float outerE_
Definition: CaloTower.h:205
CaloTowerDetId id_
Definition: CaloTower.h:193
float emE_
Definition: CaloTower.h:205
float hadE_
Definition: CaloTower.h:205
GlobalPoint hadPosition_
Definition: CaloTower.h:199
int emLvl1_
Definition: CaloTower.h:209
LeafCandidate()
default constructor
Definition: LeafCandidate.h:42
int hadLvl1_
Definition: CaloTower.h:209
GlobalPoint emPosition_
Definition: CaloTower.h:198
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:32

Member Function Documentation

void CaloTower::addConstituent ( DetId  id)
inline

Definition at line 62 of file CaloTower.h.

References constituents_.

62 { constituents_.push_back( id ); }
std::vector< DetId > constituents_
Definition: CaloTower.h:210
void CaloTower::addConstituents ( const std::vector< DetId > &  ids)

Definition at line 177 of file CaloTower.cc.

References constituents_.

Referenced by CaloTowersMerger::mergedTower(), and CaloTowersCreationAlgo::rescaleTowers().

177  {
178  constituents_.reserve(constituents_.size()+ids.size());
179  constituents_.insert(constituents_.end(),ids.begin(),ids.end());
180 }
std::vector< DetId > constituents_
Definition: CaloTower.h:210
DetId CaloTower::constituent ( size_t  i) const
inline
const std::vector<DetId>& CaloTower::constituents ( ) const
inline

Definition at line 88 of file CaloTower.h.

References constituents_.

Referenced by ParametrizedSubtractor::getEt(), CaloTowersMerger::mergedTower(), and PFCTRecHitProducer::produce().

88 { return constituents_; }
std::vector< DetId > constituents_
Definition: CaloTower.h:210
size_t CaloTower::constituentsSize ( ) const
inline
float CaloTower::ecalTime ( ) const
inline

Definition at line 165 of file CaloTower.h.

References ecalTime_.

Referenced by CaloTowersMerger::mergedTower(), and CaloTowersCreationAlgo::rescale().

165 { return float(ecalTime_) * 0.01; }
int ecalTime_
Definition: CaloTower.h:202
double CaloTower::emEnergy ( ) const
inline
double CaloTower::emEt ( ) const
inline
double CaloTower::emEt ( double  vtxZ) const
inline

Definition at line 118 of file CaloTower.h.

References emE_, reco::LeafCandidate::p4(), funct::sin(), and reco::LeafCandidate::theta().

118 { return emE_ * sin(p4(vtxZ).theta()); }
float emE_
Definition: CaloTower.h:205
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
virtual double theta() const
momentum polar angle
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
double CaloTower::emEt ( const Point v) const
inline

Definition at line 128 of file CaloTower.h.

References emE_, reco::LeafCandidate::p4(), funct::sin(), and reco::LeafCandidate::theta().

128 { return emE_ * sin(p4(v).theta()); }
float emE_
Definition: CaloTower.h:205
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
virtual double theta() const
momentum polar angle
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
int CaloTower::emLvl1 ( ) const
inline

Definition at line 147 of file CaloTower.h.

References emLvl1_.

147 { return emLvl1_; }
int emLvl1_
Definition: CaloTower.h:209
math::PtEtaPhiMLorentzVector CaloTower::emP4 ( const Point v) const
private

Definition at line 117 of file CaloTower.cc.

References dir, emE_, emPosition_, reco::LeafCandidate::p(), and funct::sin().

Referenced by p4().

117  {
118 
119  if (emE_>0) {
120  GlobalPoint p(v.x(), v.y(), v.z());
122  return math::PtEtaPhiMLorentzVector(emE_ * sin(dir.theta()), dir.eta(), dir.phi(), 0.0);
123  }
124 
125  return math::PtEtaPhiMLorentzVector(0,0,0,0);
126 }
virtual double p() const
magnitude of momentum vector
float emE_
Definition: CaloTower.h:205
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
dbl *** dir
Definition: mlp_gen.cc:35
GlobalPoint emPosition_
Definition: CaloTower.h:198
math::PtEtaPhiMLorentzVector CaloTower::emP4 ( double  vtxZ) const
private

Definition at line 83 of file CaloTower.cc.

References emE_, emPosition_, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), and PV3DBase< T, PVType, FrameType >::z().

83  {
84 
85  if (emE_>0) {
86  double ctgTheta = (emPosition_.z() - vtxZ)/emPosition_.perp();
87  double newEta = asinh(ctgTheta);
88  double pf = 1.0/cosh(newEta);
89 
90  return math::PtEtaPhiMLorentzVector(emE_ * pf, newEta, emPosition_.phi(), 0.0);
91  }
92 
93  return math::PtEtaPhiMLorentzVector(0,0,0,0);
94 }
T perp() const
Definition: PV3DBase.h:72
float emE_
Definition: CaloTower.h:205
Geom::Phi< T > phi() const
Definition: PV3DBase.h:69
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
T z() const
Definition: PV3DBase.h:64
GlobalPoint emPosition_
Definition: CaloTower.h:198
const GlobalPoint& CaloTower::emPosition ( ) const
inline

Definition at line 144 of file CaloTower.h.

References emPosition_.

Referenced by CaloTowersMerger::mergedTower().

144 { return emPosition_ ; }
GlobalPoint emPosition_
Definition: CaloTower.h:198
double CaloTower::energyInHB ( ) const

Definition at line 222 of file CaloTower.cc.

References hadE_, id_, CaloTowerDetId::ietaAbs(), and outerE_.

222  {
223  if (id_.ietaAbs()<16) return hadE_;
224  else if (id_.ietaAbs()==16) return hadE_-outerE_;
225  else return 0.0;
226 }
float outerE_
Definition: CaloTower.h:205
int ietaAbs() const
get the absolute value of the tower ieta
CaloTowerDetId id_
Definition: CaloTower.h:193
float hadE_
Definition: CaloTower.h:205
double CaloTower::energyInHE ( ) const

Definition at line 228 of file CaloTower.cc.

References hadE_, id_, CaloTowerDetId::ietaAbs(), and outerE_.

228  {
229  if (id_.ietaAbs()>16 && id_.ietaAbs()<30) return hadE_;
230  else if (id_.ietaAbs()==16) return outerE_;
231  else return 0.0;
232 }
float outerE_
Definition: CaloTower.h:205
int ietaAbs() const
get the absolute value of the tower ieta
CaloTowerDetId id_
Definition: CaloTower.h:193
float hadE_
Definition: CaloTower.h:205
double CaloTower::energyInHF ( ) const

Definition at line 234 of file CaloTower.cc.

References reco::LeafCandidate::energy(), id_, and CaloTowerDetId::ietaAbs().

234  {
235  if (id_.ietaAbs()>29) return energy();
236  else return 0.0;
237 }
int ietaAbs() const
get the absolute value of the tower ieta
CaloTowerDetId id_
Definition: CaloTower.h:193
virtual double energy() const
energy
double CaloTower::energyInHO ( ) const

Definition at line 244 of file CaloTower.cc.

References emE_, reco::LeafCandidate::energy(), hadE_, id_, and CaloTowerDetId::ietaAbs().

244  {
245  if (id_.ietaAbs()>15) return 0.0;
246  else return (energy() - hadE_ -emE_);
247 }
int ietaAbs() const
get the absolute value of the tower ieta
CaloTowerDetId id_
Definition: CaloTower.h:193
float emE_
Definition: CaloTower.h:205
float hadE_
Definition: CaloTower.h:205
virtual double energy() const
energy
double CaloTower::et ( double  vtxZ) const
inline
double CaloTower::et ( const Point v) const
inline

Definition at line 126 of file CaloTower.h.

References reco::LeafCandidate::p4().

126 { return p4(v).Et(); }
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
double CaloTower::hadEnergy ( ) const
inline
double CaloTower::hadEnergyHeInnerLayer ( ) const
inline

Definition at line 152 of file CaloTower.h.

References hadE_, id_, CaloTowerDetId::ietaAbs(), and outerE_.

152 { return (id_.ietaAbs()<18 || id_.ietaAbs()>29)? 0 : hadE_ - outerE_; }
float outerE_
Definition: CaloTower.h:205
int ietaAbs() const
get the absolute value of the tower ieta
CaloTowerDetId id_
Definition: CaloTower.h:193
float hadE_
Definition: CaloTower.h:205
double CaloTower::hadEnergyHeOuterLayer ( ) const
inline

Definition at line 151 of file CaloTower.h.

References id_, CaloTowerDetId::ietaAbs(), and outerE_.

151 { return (id_.ietaAbs()<18 || id_.ietaAbs()>29)? 0 : outerE_; }
float outerE_
Definition: CaloTower.h:205
int ietaAbs() const
get the absolute value of the tower ieta
CaloTowerDetId id_
Definition: CaloTower.h:193
double CaloTower::hadEt ( ) const
inline
double CaloTower::hadEt ( double  vtxZ) const
inline

Definition at line 119 of file CaloTower.h.

References hadE_, reco::LeafCandidate::p4(), funct::sin(), and reco::LeafCandidate::theta().

119 { return hadE_ * sin(p4(vtxZ).theta()); }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
float hadE_
Definition: CaloTower.h:205
virtual double theta() const
momentum polar angle
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
double CaloTower::hadEt ( const Point v) const
inline

Definition at line 129 of file CaloTower.h.

References hadE_, reco::LeafCandidate::p4(), funct::sin(), and reco::LeafCandidate::theta().

129 { return hadE_ * sin(p4(v).theta()); }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
float hadE_
Definition: CaloTower.h:205
virtual double theta() const
momentum polar angle
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
int CaloTower::hadLv11 ( ) const
inline

Definition at line 148 of file CaloTower.h.

References hadLvl1_.

148 { return hadLvl1_; }
int hadLvl1_
Definition: CaloTower.h:209
math::PtEtaPhiMLorentzVector CaloTower::hadP4 ( const Point v) const
private

Definition at line 100 of file CaloTower.cc.

References funct::abs(), dir, emE_, reco::LeafCandidate::energy(), hadE_, hadPosition_, ieta(), reco::LeafCandidate::p(), and funct::sin().

Referenced by p4().

100  {
101 
102  // note: for now we use the same position for HO as for the other detectors
103 
104  double hcalTot;
105  if (abs(ieta())<16) hcalTot = (energy() - emE_);
106  else hcalTot = hadE_;
107 
108  if (hcalTot>0) {
109  GlobalPoint p(v.x(), v.y(), v.z());
111  return math::PtEtaPhiMLorentzVector(hcalTot * sin(dir.theta()), dir.eta(), dir.phi(), 0.0);
112  }
113 
114  return math::PtEtaPhiMLorentzVector(0,0,0,0);
115 }
virtual double p() const
magnitude of momentum vector
int ieta() const
Definition: CaloTower.h:169
float emE_
Definition: CaloTower.h:205
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
float hadE_
Definition: CaloTower.h:205
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
virtual double energy() const
energy
GlobalPoint hadPosition_
Definition: CaloTower.h:199
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
dbl *** dir
Definition: mlp_gen.cc:35
math::PtEtaPhiMLorentzVector CaloTower::hadP4 ( double  vtxZ) const
private

Definition at line 63 of file CaloTower.cc.

References funct::abs(), emE_, reco::LeafCandidate::energy(), hadE_, hadPosition_, ieta(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), and PV3DBase< T, PVType, FrameType >::z().

63  {
64 
65 
66  // note: for now we use the same position for HO as for the other detectors
67 
68  double hcalTot;
69  if (abs(ieta())<16) hcalTot = (energy() - emE_);
70  else hcalTot = hadE_;
71 
72  if (hcalTot>0) {
73  double ctgTheta = (hadPosition_.z() - vtxZ)/hadPosition_.perp();
74  double newEta = asinh(ctgTheta);
75  double pf = 1.0/cosh(newEta);
76 
77  return PolarLorentzVector(hcalTot * pf, newEta, hadPosition_.phi(), 0.0);
78  }
79 
80  return math::PtEtaPhiMLorentzVector(0,0,0,0);
81 }
T perp() const
Definition: PV3DBase.h:72
int ieta() const
Definition: CaloTower.h:169
float emE_
Definition: CaloTower.h:205
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: LeafCandidate.h:30
Geom::Phi< T > phi() const
Definition: PV3DBase.h:69
float hadE_
Definition: CaloTower.h:205
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
virtual double energy() const
energy
GlobalPoint hadPosition_
Definition: CaloTower.h:199
T z() const
Definition: PV3DBase.h:64
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const GlobalPoint& CaloTower::hadPosition ( ) const
inline

Definition at line 145 of file CaloTower.h.

References hadPosition_.

Referenced by CaloTowersMerger::mergedTower().

145 { return hadPosition_ ; }
GlobalPoint hadPosition_
Definition: CaloTower.h:199
float CaloTower::hcalTime ( ) const
inline

Definition at line 166 of file CaloTower.h.

References hcalTime_.

Referenced by CaloTowersMerger::mergedTower(), and CaloTowersCreationAlgo::rescale().

166 { return float(hcalTime_) * 0.01; }
int hcalTime_
Definition: CaloTower.h:203
double CaloTower::hottestCellE ( ) const
inline

Definition at line 132 of file CaloTower.h.

References hottestCellE_.

Referenced by CaloTowersMerger::mergedTower().

132 { return hottestCellE_; }
float hottestCellE_
Definition: CaloTower.h:207
CaloTowerDetId CaloTower::id ( void  ) const
inline
int CaloTower::ieta ( ) const
inline

Definition at line 169 of file CaloTower.h.

References id_, and CaloTowerDetId::ieta().

Referenced by GlobalHaloAlgo::Calculate(), reco::HcalNoiseRBXArray::findHPD(), reco::HcalNoiseRBXArray::findRBX(), hadP4(), and p4().

169 { return id_.ieta(); }
CaloTowerDetId id_
Definition: CaloTower.h:193
int ieta() const
get the tower ieta
int CaloTower::ietaAbs ( ) const
inline

Definition at line 170 of file CaloTower.h.

References id_, and CaloTowerDetId::ietaAbs().

Referenced by reco::HcalNoiseInfoProducer::fillcalotwrs(), CaloTowersMerger::mergedTower(), p4_HO(), and reco::CentralityProducer::produce().

170 { return id_.ietaAbs(); }
int ietaAbs() const
get the absolute value of the tower ieta
CaloTowerDetId id_
Definition: CaloTower.h:193
int CaloTower::iphi ( ) const
inline

Definition at line 171 of file CaloTower.h.

References id_, and CaloTowerDetId::iphi().

Referenced by GlobalHaloAlgo::Calculate(), reco::HcalNoiseRBXArray::findHPD(), and reco::HcalNoiseRBXArray::findRBX().

171 { return id_.iphi(); }
CaloTowerDetId id_
Definition: CaloTower.h:193
int iphi() const
get the tower iphi
unsigned int CaloTower::numBadEcalCells ( ) const
inline

Definition at line 180 of file CaloTower.h.

References twrStatusWord_.

Referenced by CaloTowersMerger::mergedTower(), and AnomalousTower::operator()().

180 { return (twrStatusWord_ & 0x1F); }
uint32_t twrStatusWord_
Definition: CaloTower.h:195
unsigned int CaloTower::numBadHcalCells ( ) const
inline

Definition at line 184 of file CaloTower.h.

References twrStatusWord_.

Referenced by CaloTowersMerger::mergedTower(), and AnomalousTower::operator()().

184 { return ( (twrStatusWord_ >> 15)& 0x7); }
uint32_t twrStatusWord_
Definition: CaloTower.h:195
int CaloTower::numCrystals ( ) const

Definition at line 182 of file CaloTower.cc.

References constituents_, DetId::Ecal, id_, and CaloTowerDetId::ietaAbs().

182  {
183  if (id_.ietaAbs()>29) return 0;
184 
185  int nC = 0;
186  std::vector<DetId>::const_iterator it = constituents_.begin();
187  for (; it!=constituents_.end(); ++it) {
188  if (it->det()==DetId::Ecal) ++nC;
189  }
190 
191  return nC;
192 }
int ietaAbs() const
get the absolute value of the tower ieta
CaloTowerDetId id_
Definition: CaloTower.h:193
std::vector< DetId > constituents_
Definition: CaloTower.h:210
unsigned int CaloTower::numProblematicEcalCells ( ) const
inline

Definition at line 182 of file CaloTower.h.

References twrStatusWord_.

Referenced by CaloTowersMerger::mergedTower(), and AnomalousTower::operator()().

182 { return ((twrStatusWord_ >> 10) & 0x1F); }
uint32_t twrStatusWord_
Definition: CaloTower.h:195
unsigned int CaloTower::numProblematicHcalCells ( ) const
inline

Definition at line 186 of file CaloTower.h.

References twrStatusWord_.

Referenced by CaloTowersMerger::mergedTower(), and AnomalousTower::operator()().

186 { return ((twrStatusWord_ >> 21) & 0x7); }
uint32_t twrStatusWord_
Definition: CaloTower.h:195
unsigned int CaloTower::numRecoveredEcalCells ( ) const
inline

Definition at line 181 of file CaloTower.h.

References twrStatusWord_.

Referenced by CaloTowersMerger::mergedTower(), and AnomalousTower::operator()().

181 { return ((twrStatusWord_ >> 5) & 0x1F); }
uint32_t twrStatusWord_
Definition: CaloTower.h:195
unsigned int CaloTower::numRecoveredHcalCells ( ) const
inline

Definition at line 185 of file CaloTower.h.

References twrStatusWord_.

Referenced by CaloTowersMerger::mergedTower(), and AnomalousTower::operator()().

185 { return ((twrStatusWord_ >> 18) & 0x7); }
uint32_t twrStatusWord_
Definition: CaloTower.h:195
double CaloTower::outerEnergy ( ) const
inline

Definition at line 96 of file CaloTower.h.

References id_, CaloTowerDetId::ietaAbs(), and outerE_.

Referenced by muonisolation::CaloExtractorByAssociator::deposits(), reco::makeSpecific(), CaloTowersMerger::mergedTower(), and CaloTowersCreationAlgo::rescale().

96 { return (id_.ietaAbs()<16)? outerE_ : 0.0; }
float outerE_
Definition: CaloTower.h:205
int ietaAbs() const
get the absolute value of the tower ieta
CaloTowerDetId id_
Definition: CaloTower.h:193
double CaloTower::outerEt ( ) const
inline
double CaloTower::outerEt ( double  vtxZ) const
inline

Definition at line 120 of file CaloTower.h.

References id_, CaloTowerDetId::ietaAbs(), outerE_, reco::LeafCandidate::p4(), and funct::sin().

120 { return (id_.ietaAbs()<16)? outerE_ * sin(p4(vtxZ).theta()) : 0.0; }
float outerE_
Definition: CaloTower.h:205
int ietaAbs() const
get the absolute value of the tower ieta
CaloTowerDetId id_
Definition: CaloTower.h:193
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
double CaloTower::outerEt ( const Point v) const
inline

Definition at line 130 of file CaloTower.h.

References id_, CaloTowerDetId::ietaAbs(), outerE_, reco::LeafCandidate::p4(), and funct::sin().

130 { return (id_.ietaAbs()<16)? outerE_ * sin(p4(v).theta()) : 0.0; }
float outerE_
Definition: CaloTower.h:205
int ietaAbs() const
get the absolute value of the tower ieta
CaloTowerDetId id_
Definition: CaloTower.h:193
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
double CaloTower::p ( double  vtxZ) const
inline

Definition at line 115 of file CaloTower.h.

References reco::LeafCandidate::p4().

115 { return p4(vtxZ).P(); }
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
double CaloTower::p ( const Point v) const
inline

Definition at line 125 of file CaloTower.h.

References reco::LeafCandidate::p4().

125 { return p4(v).P(); }
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
math::PtEtaPhiMLorentzVector CaloTower::p4 ( double  vtxZ) const

Definition at line 129 of file CaloTower.cc.

References funct::abs(), emP4(), emPosition_, reco::LeafCandidate::energy(), hadP4(), ieta(), reco::LeafCandidate::p4(), PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), and PV3DBase< T, PVType, FrameType >::z().

Referenced by Tau.Tau::dxy(), Tau.Tau::dz(), VirtualJetProducer::inputTowers(), Jet.Jet::jetID(), fftjetcms::FFTJetInterface::loadInputCollection(), and CaloTowersMerger::mergedTower().

129  {
130 
131  if (abs(ieta())<=29) {
132  return (emP4(vtxZ)+hadP4(vtxZ));
133  }
134  // em and had energy in HF are defined in a special way
135  double ctgTheta = (emPosition_.z() - vtxZ)/emPosition_.perp(); // em and had positions in HF are forced to be the same
136  double newEta = asinh(ctgTheta);
137  double pf = 1.0/cosh(newEta);
138  return math::PtEtaPhiMLorentzVector(p4().energy() * pf, newEta, emPosition_.phi(), 0.0);
139 }
T perp() const
Definition: PV3DBase.h:72
int ieta() const
Definition: CaloTower.h:169
Geom::Phi< T > phi() const
Definition: PV3DBase.h:69
math::PtEtaPhiMLorentzVector hadP4(const Point &v) const
Definition: CaloTower.cc:100
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
virtual double energy() const
energy
T z() const
Definition: PV3DBase.h:64
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
math::PtEtaPhiMLorentzVector emP4(const Point &v) const
Definition: CaloTower.cc:117
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
GlobalPoint emPosition_
Definition: CaloTower.h:198
math::PtEtaPhiMLorentzVector CaloTower::p4 ( const Point v) const

Definition at line 142 of file CaloTower.cc.

References funct::abs(), dir, emP4(), emPosition_, reco::LeafCandidate::energy(), hadP4(), ieta(), reco::LeafCandidate::p(), reco::LeafCandidate::p4(), and funct::sin().

Referenced by Tau.Tau::dxy(), Tau.Tau::dz(), and Jet.Jet::jetID().

142  {
143 
144  if (abs(ieta())<=29) {
145  return emP4(v)+hadP4(v);
146  }
147  // em and had energy in HF are defined in a special way
148  GlobalPoint p(v.x(), v.y(), v.z());
149  math::XYZVector dir = math::XYZVector(emPosition_ - p); // em and had positions in HF are forced to be the same
150  return math::PtEtaPhiMLorentzVector(p4().energy() * sin(dir.theta()), dir.eta(), dir.phi(), 0.0);
151 }
virtual double p() const
magnitude of momentum vector
int ieta() const
Definition: CaloTower.h:169
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
math::PtEtaPhiMLorentzVector hadP4(const Point &v) const
Definition: CaloTower.cc:100
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
virtual double energy() const
energy
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
math::PtEtaPhiMLorentzVector emP4(const Point &v) const
Definition: CaloTower.cc:117
dbl *** dir
Definition: mlp_gen.cc:35
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
GlobalPoint emPosition_
Definition: CaloTower.h:198
math::PtEtaPhiMLorentzVector CaloTower::p4_HO ( ) const

Definition at line 170 of file CaloTower.cc.

References PV3DBase< T, PVType, FrameType >::eta(), hadPosition_, ietaAbs(), outerE_, PV3DBase< T, PVType, FrameType >::phi(), funct::sin(), and PV3DBase< T, PVType, FrameType >::theta().

Referenced by p4_HO().

170  {
171 
172  if (ietaAbs()>15 || outerE_<0) return math::PtEtaPhiMLorentzVector(0.0,0.0,0.0,0.0);
174 }
float outerE_
Definition: CaloTower.h:205
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
Geom::Phi< T > phi() const
Definition: PV3DBase.h:69
Geom::Theta< T > theta() const
Definition: PV3DBase.h:75
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
GlobalPoint hadPosition_
Definition: CaloTower.h:199
T eta() const
Definition: PV3DBase.h:76
int ietaAbs() const
Definition: CaloTower.h:170
math::PtEtaPhiMLorentzVector CaloTower::p4_HO ( double  vtxZ) const

Definition at line 165 of file CaloTower.cc.

References reco::LeafCandidate::p(), and p4_HO().

165  {
166  Point p(0, 0, vtxZ);
167  return p4_HO(p);
168 }
virtual double p() const
magnitude of momentum vector
math::XYZPoint Point
math::PtEtaPhiMLorentzVector p4_HO() const
Definition: CaloTower.cc:170
math::PtEtaPhiMLorentzVector CaloTower::p4_HO ( const Point v) const

Definition at line 156 of file CaloTower.cc.

References dir, hadPosition_, ietaAbs(), outerE_, reco::LeafCandidate::p(), and funct::sin().

156  {
157 
158  if (ietaAbs()>15 || outerE_<0) return math::PtEtaPhiMLorentzVector(0,0,0,0);
159 
160  GlobalPoint p(v.x(), v.y(), v.z());
162  return math::PtEtaPhiMLorentzVector(outerE_ * sin(dir.theta()), dir.eta(), dir.phi(), 0.0);
163 }
float outerE_
Definition: CaloTower.h:205
virtual double p() const
magnitude of momentum vector
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
PtEtaPhiMLorentzVectorD PtEtaPhiMLorentzVector
Lorentz vector with cartesian internal representation.
Definition: LorentzVector.h:25
GlobalPoint hadPosition_
Definition: CaloTower.h:199
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
int ietaAbs() const
Definition: CaloTower.h:170
dbl *** dir
Definition: mlp_gen.cc:35
void CaloTower::setCaloTowerStatus ( unsigned int  numBadHcalChan,
unsigned int  numBadEcalChan,
unsigned int  numRecHcalChan,
unsigned int  numRecEcalChan,
unsigned int  numProbHcalChan,
unsigned int  numProbEcalChan 
)

Definition at line 199 of file CaloTower.cc.

References twrStatusWord_.

Referenced by CaloTowersMerger::mergedTower(), and CaloTowersCreationAlgo::rescaleTowers().

201  {
202 
203  twrStatusWord_ = 0x0;
204 
205  twrStatusWord_ |= ( numBadEcalChan & 0x1F);
206  twrStatusWord_ |= ( (numRecEcalChan & 0x1F) << 5);
207  twrStatusWord_ |= ( (numProbEcalChan & 0x1F) << 10);
208  twrStatusWord_ |= ( (numBadHcalChan & 0x7) << 15);
209  twrStatusWord_ |= ( (numRecHcalChan & 0x7) << 18);
210  twrStatusWord_ |= ( (numProbHcalChan & 0x7) << 21);
211 
212  return;
213 }
uint32_t twrStatusWord_
Definition: CaloTower.h:195
void CaloTower::setCaloTowerStatus ( uint32_t  s)
inline

Definition at line 78 of file CaloTower.h.

References alignCSCRings::s, and twrStatusWord_.

78 { twrStatusWord_ = s; }
uint32_t twrStatusWord_
Definition: CaloTower.h:195
void CaloTower::setEcalTime ( int  t)
inline
void CaloTower::setHcalTime ( int  t)
inline
void CaloTower::setHottestCellE ( double  e)
inline

Definition at line 81 of file CaloTower.h.

References alignCSCRings::e, and hottestCellE_.

Referenced by CaloTowersMerger::mergedTower().

81 { hottestCellE_ = e; }
float hottestCellE_
Definition: CaloTower.h:207
uint32_t CaloTower::towerStatusWord ( ) const
inline

Definition at line 189 of file CaloTower.h.

References twrStatusWord_.

189 { return twrStatusWord_; }
uint32_t twrStatusWord_
Definition: CaloTower.h:195
int CaloTower::zside ( ) const
inline

Definition at line 172 of file CaloTower.h.

References id_, and CaloTowerDetId::zside().

172 { return id_.zside(); }
CaloTowerDetId id_
Definition: CaloTower.h:193
int zside() const
get the z-side of the tower (1/-1)

Member Data Documentation

std::vector<DetId> CaloTower::constituents_
private
int CaloTower::ecalTime_
private

Definition at line 202 of file CaloTower.h.

Referenced by ecalTime(), and setEcalTime().

float CaloTower::emE_
private

Definition at line 205 of file CaloTower.h.

Referenced by CaloTower(), emEnergy(), emEt(), emP4(), energyInHO(), and hadP4().

int CaloTower::emLvl1_
private

Definition at line 209 of file CaloTower.h.

Referenced by CaloTower(), and emLvl1().

GlobalPoint CaloTower::emPosition_
private

Definition at line 198 of file CaloTower.h.

Referenced by emP4(), emPosition(), and p4().

float CaloTower::hadE_
private
int CaloTower::hadLvl1_
private

Definition at line 209 of file CaloTower.h.

Referenced by CaloTower(), and hadLv11().

GlobalPoint CaloTower::hadPosition_
private

Definition at line 199 of file CaloTower.h.

Referenced by hadP4(), hadPosition(), and p4_HO().

int CaloTower::hcalTime_
private

Definition at line 203 of file CaloTower.h.

Referenced by hcalTime(), and setHcalTime().

float CaloTower::hottestCellE_
private

Definition at line 207 of file CaloTower.h.

Referenced by hottestCellE(), and setHottestCellE().

CaloTowerDetId CaloTower::id_
private
float CaloTower::outerE_
private
uint32_t CaloTower::twrStatusWord_
private