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 setConstituents (std::vector< DetId > &&ids)
 
void setEcalTime (int t)
 
void setHcalSubdet (int lastHB, int lastHE, int lastHF, int lastHO)
 
void setHcalTime (int t)
 
void setHottestCellE (double e)
 
uint32_t towerStatusWord () const
 
int zside () const
 
- Public Member Functions inherited from reco::LeafCandidate
virtual Vector boostToCM () const final
 
virtual int charge () const final
 electric charge More...
 
virtual LeafCandidateclone () const
 returns a clone of the Candidate object More...
 
void construct (int qx3, float pt, float eta, float phi, float mass, const Point &vtx, int pdgId, int status)
 
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 double energy () const final
 energy More...
 
virtual double et () const final
 transverse energy More...
 
virtual double et2 () const final
 transverse energy squared (use this for cut!) More...
 
virtual double eta () const final
 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 ()
 
 LeafCandidate (const Candidate &c)
 
template<typename... Args>
 LeafCandidate (Args &&...args)
 
 LeafCandidate (LeafCandidate &rh)
 
 LeafCandidate (LeafCandidate &&)=default
 
 LeafCandidate (LeafCandidate const &)=default
 
virtual bool longLived () const final
 is long lived? More...
 
virtual double mass () const final
 mass More...
 
virtual bool massConstraint () const final
 do mass constraint? More...
 
virtual double massSqr () const final
 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 final
 spatial momentum vector More...
 
virtual const Candidatemother (size_type) const
 return mother at a given position (throws an exception) More...
 
virtual double mt () const final
 transverse mass More...
 
virtual double mtSqr () const final
 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
 
LeafCandidateoperator= (LeafCandidate &&)=default
 
LeafCandidateoperator= (LeafCandidate const &)=default
 
virtual double p () const final
 magnitude of momentum vector More...
 
virtual const LorentzVectorp4 () const final
 four-momentum Lorentz vector More...
 
virtual int pdgId () const final
 PDG identifier. More...
 
virtual double phi () const final
 momentum azimuthal angle More...
 
virtual const PolarLorentzVectorpolarP4 () const final
 four-momentum Lorentz vector More...
 
virtual double pt () const final
 transverse momentum More...
 
virtual double px () const final
 x coordinate of momentum vector More...
 
virtual double py () const final
 y coordinate of momentum vector More...
 
virtual double pz () const final
 z coordinate of momentum vector More...
 
virtual double rapidity () const final
 rapidity More...
 
virtual void setCharge (Charge q) final
 set electric charge More...
 
virtual void setLongLived () final
 
virtual void setMass (double m) final
 set particle mass More...
 
virtual void setMassConstraint () final
 
virtual void setP4 (const LorentzVector &p4) final
 set 4-momentum More...
 
virtual void setP4 (const PolarLorentzVector &p4) final
 set 4-momentum More...
 
virtual void setPdgId (int pdgId) final
 
virtual void setPz (double pz) final
 
virtual void setStatus (int status) final
 set status word More...
 
virtual void setThreeCharge (Charge qx3) final
 set electric charge More...
 
virtual void setVertex (const Point &vertex)
 set vertex More...
 
virtual CandidatePtr sourceCandidatePtr (size_type i) const
 
virtual int status () const final
 status word More...
 
virtual double theta () const final
 momentum polar angle More...
 
virtual int threeCharge () const final
 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 final
 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 final
 rapidity More...
 
virtual ~LeafCandidate ()
 destructor More...
 
- Public Member Functions inherited from reco::Candidate
const_iterator begin () const
 first daughter const_iterator More...
 
iterator begin ()
 first daughter iterator More...
 
virtual const TrackbestTrack () const
 
 Candidate ()
 default constructor More...
 
virtual float dxyError () const
 uncertainty on dxy More...
 
virtual float dzError () const
 uncertainty on dz More...
 
const_iterator end () const
 last daughter const_iterator More...
 
iterator end ()
 last daughter iterator 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...
 
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_
 
bool inHBHEgap_
 
bool inHO_
 
float outerE_
 
HcalSubdetector subdet_
 
uint32_t twrStatusWord_
 

Additional Inherited Members

Detailed Description

Author
J. Mans - Minnesota

Definition at line 27 of file CaloTower.h.

Member Typedef Documentation

Definition at line 29 of file CaloTower.h.

Constructor & Destructor Documentation

CaloTower::CaloTower ( )

Definition at line 4 of file CaloTower.cc.

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.

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.

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.

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.

Member Function Documentation

void CaloTower::addConstituent ( DetId  id)
inline

Definition at line 63 of file CaloTower.h.

void CaloTower::addConstituents ( const std::vector< DetId > &  ids)

Definition at line 177 of file CaloTower.cc.

DetId CaloTower::constituent ( size_t  i) const
inline

Definition at line 103 of file CaloTower.h.

const std::vector<DetId>& CaloTower::constituents ( ) const
inline

Definition at line 101 of file CaloTower.h.

size_t CaloTower::constituentsSize ( ) const
inline

Definition at line 102 of file CaloTower.h.

float CaloTower::ecalTime ( ) const
inline

Definition at line 178 of file CaloTower.h.

double CaloTower::emEnergy ( ) const
inline

Definition at line 107 of file CaloTower.h.

Referenced by MultipleAlgoIterator::getEt(), and ReflectedIterator::getEt().

double CaloTower::emEt ( ) const
inline
double CaloTower::emEt ( double  vtxZ) const
inline

Definition at line 131 of file CaloTower.h.

double CaloTower::emEt ( const Point v) const
inline

Definition at line 141 of file CaloTower.h.

int CaloTower::emLvl1 ( ) const
inline

Definition at line 160 of file CaloTower.h.

math::PtEtaPhiMLorentzVector CaloTower::emP4 ( const Point v) const
private

Definition at line 117 of file CaloTower.cc.

math::PtEtaPhiMLorentzVector CaloTower::emP4 ( double  vtxZ) const
private

Definition at line 83 of file CaloTower.cc.

const GlobalPoint& CaloTower::emPosition ( ) const
inline

Definition at line 157 of file CaloTower.h.

double CaloTower::energyInHB ( ) const

Definition at line 222 of file CaloTower.cc.

double CaloTower::energyInHE ( ) const

Definition at line 228 of file CaloTower.cc.

double CaloTower::energyInHF ( ) const

Definition at line 234 of file CaloTower.cc.

double CaloTower::energyInHO ( ) const

Definition at line 244 of file CaloTower.cc.

double CaloTower::et ( double  vtxZ) const
inline
double CaloTower::et ( const Point v) const
inline

Definition at line 139 of file CaloTower.h.

double CaloTower::hadEnergy ( ) const
inline

Definition at line 108 of file CaloTower.h.

Referenced by MultipleAlgoIterator::getEt(), and ReflectedIterator::getEt().

double CaloTower::hadEnergyHeInnerLayer ( ) const
inline

Definition at line 165 of file CaloTower.h.

double CaloTower::hadEnergyHeOuterLayer ( ) const
inline

Definition at line 164 of file CaloTower.h.

double CaloTower::hadEt ( ) const
inline
double CaloTower::hadEt ( double  vtxZ) const
inline

Definition at line 132 of file CaloTower.h.

double CaloTower::hadEt ( const Point v) const
inline

Definition at line 142 of file CaloTower.h.

int CaloTower::hadLv11 ( ) const
inline

Definition at line 161 of file CaloTower.h.

math::PtEtaPhiMLorentzVector CaloTower::hadP4 ( const Point v) const
private

Definition at line 100 of file CaloTower.cc.

math::PtEtaPhiMLorentzVector CaloTower::hadP4 ( double  vtxZ) const
private

Definition at line 63 of file CaloTower.cc.

const GlobalPoint& CaloTower::hadPosition ( ) const
inline

Definition at line 158 of file CaloTower.h.

float CaloTower::hcalTime ( ) const
inline

Definition at line 179 of file CaloTower.h.

double CaloTower::hottestCellE ( ) const
inline

Definition at line 145 of file CaloTower.h.

CaloTowerDetId CaloTower::id ( ) const
inline
int CaloTower::ieta ( ) const
inline

Definition at line 182 of file CaloTower.h.

int CaloTower::ietaAbs ( ) const
inline

Definition at line 183 of file CaloTower.h.

int CaloTower::iphi ( ) const
inline

Definition at line 184 of file CaloTower.h.

unsigned int CaloTower::numBadEcalCells ( ) const
inline

Definition at line 193 of file CaloTower.h.

Referenced by AnomalousTower::operator()().

unsigned int CaloTower::numBadHcalCells ( ) const
inline

Definition at line 197 of file CaloTower.h.

Referenced by AnomalousTower::operator()().

int CaloTower::numCrystals ( ) const

Definition at line 182 of file CaloTower.cc.

unsigned int CaloTower::numProblematicEcalCells ( ) const
inline

Definition at line 195 of file CaloTower.h.

Referenced by AnomalousTower::operator()().

unsigned int CaloTower::numProblematicHcalCells ( ) const
inline

Definition at line 199 of file CaloTower.h.

Referenced by AnomalousTower::operator()().

unsigned int CaloTower::numRecoveredEcalCells ( ) const
inline

Definition at line 194 of file CaloTower.h.

Referenced by AnomalousTower::operator()().

unsigned int CaloTower::numRecoveredHcalCells ( ) const
inline

Definition at line 198 of file CaloTower.h.

Referenced by AnomalousTower::operator()().

double CaloTower::outerEnergy ( ) const
inline

Definition at line 109 of file CaloTower.h.

double CaloTower::outerEt ( ) const
inline

Definition at line 114 of file CaloTower.h.

Referenced by FWHOCaloTowerProxyBuilder::getEt().

double CaloTower::outerEt ( double  vtxZ) const
inline

Definition at line 133 of file CaloTower.h.

double CaloTower::outerEt ( const Point v) const
inline

Definition at line 143 of file CaloTower.h.

double CaloTower::p ( double  vtxZ) const
inline

Definition at line 128 of file CaloTower.h.

double CaloTower::p ( const Point v) const
inline

Definition at line 138 of file CaloTower.h.

math::PtEtaPhiMLorentzVector CaloTower::p4 ( double  vtxZ) const
math::PtEtaPhiMLorentzVector CaloTower::p4 ( const Point v) const

Definition at line 142 of file CaloTower.cc.

Referenced by Tau.Tau::dxy_approx(), Tau.Tau::dz(), and Lepton.Lepton::p4WithFSR().

math::PtEtaPhiMLorentzVector CaloTower::p4_HO ( ) const

Definition at line 170 of file CaloTower.cc.

math::PtEtaPhiMLorentzVector CaloTower::p4_HO ( double  vtxZ) const

Definition at line 165 of file CaloTower.cc.

math::PtEtaPhiMLorentzVector CaloTower::p4_HO ( const Point v) const

Definition at line 156 of file CaloTower.cc.

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.

void CaloTower::setCaloTowerStatus ( uint32_t  s)
inline

Definition at line 91 of file CaloTower.h.

void CaloTower::setConstituents ( std::vector< DetId > &&  ids)
inline

Definition at line 65 of file CaloTower.h.

void CaloTower::setEcalTime ( int  t)
inline

Definition at line 67 of file CaloTower.h.

void CaloTower::setHcalSubdet ( int  lastHB,
int  lastHE,
int  lastHF,
int  lastHO 
)
inline

Definition at line 69 of file CaloTower.h.

void CaloTower::setHcalTime ( int  t)
inline

Definition at line 68 of file CaloTower.h.

void CaloTower::setHottestCellE ( double  e)
inline

Definition at line 94 of file CaloTower.h.

uint32_t CaloTower::towerStatusWord ( ) const
inline

Definition at line 202 of file CaloTower.h.

int CaloTower::zside ( ) const
inline

Definition at line 185 of file CaloTower.h.

Member Data Documentation

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

Definition at line 227 of file CaloTower.h.

int CaloTower::ecalTime_
private

Definition at line 219 of file CaloTower.h.

float CaloTower::emE_
private

Definition at line 222 of file CaloTower.h.

int CaloTower::emLvl1_
private

Definition at line 226 of file CaloTower.h.

GlobalPoint CaloTower::emPosition_
private

Definition at line 211 of file CaloTower.h.

float CaloTower::hadE_
private

Definition at line 222 of file CaloTower.h.

int CaloTower::hadLvl1_
private

Definition at line 226 of file CaloTower.h.

GlobalPoint CaloTower::hadPosition_
private

Definition at line 212 of file CaloTower.h.

int CaloTower::hcalTime_
private

Definition at line 220 of file CaloTower.h.

float CaloTower::hottestCellE_
private

Definition at line 224 of file CaloTower.h.

CaloTowerDetId CaloTower::id_
private

Definition at line 206 of file CaloTower.h.

bool CaloTower::inHBHEgap_
private

Definition at line 216 of file CaloTower.h.

bool CaloTower::inHO_
private

Definition at line 216 of file CaloTower.h.

float CaloTower::outerE_
private

Definition at line 222 of file CaloTower.h.

HcalSubdetector CaloTower::subdet_
private

Definition at line 215 of file CaloTower.h.

uint32_t CaloTower::twrStatusWord_
private

Definition at line 208 of file CaloTower.h.