CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
l1tpf_calo::Grid Class Referenceabstract

#include <CaloClusterer.h>

Inheritance diagram for l1tpf_calo::Grid:
l1tpf_calo::Phase1GridBase l1tpf_calo::Phase1Grid l1tpf_calo::Phase2Grid

Public Member Functions

float eta (int icell) const
 
float etaWidth (int icell) const
 
virtual int find_cell (float eta, float phi) const =0
 
int ieta (int icell) const
 
int iphi (int icell) const
 
int neighbour (int icell, unsigned int idx) const
 
float phi (int icell) const
 
float phiWidth (int icell) const
 
unsigned int size () const
 
virtual ~Grid ()
 

Protected Member Functions

 Grid (unsigned int size)
 

Protected Attributes

std::vector< float > eta_
 
std::vector< float > etaWidth_
 
std::vector< int > ieta_
 
std::vector< int > iphi_
 
unsigned int ncells_
 
std::vector< std::array< int, 8 > > neighbours_
 
std::vector< float > phi_
 
std::vector< float > phiWidth_
 

Detailed Description

Definition at line 22 of file CaloClusterer.h.

Constructor & Destructor Documentation

virtual l1tpf_calo::Grid::~Grid ( )
inlinevirtual

Definition at line 24 of file CaloClusterer.h.

24 {}
l1tpf_calo::Grid::Grid ( unsigned int  size)
inlineprotected

Definition at line 36 of file CaloClusterer.h.

37  : ncells_(size),
38  eta_(size),
39  etaWidth_(size),
40  phi_(size),
41  phiWidth_(size),
42  ieta_(size),
43  iphi_(size),
44  neighbours_(size) {}
std::vector< float > eta_
Definition: CaloClusterer.h:46
unsigned int ncells_
Definition: CaloClusterer.h:45
std::vector< float > etaWidth_
Definition: CaloClusterer.h:46
unsigned int size() const
Definition: CaloClusterer.h:25
std::vector< float > phiWidth_
Definition: CaloClusterer.h:46
std::vector< float > phi_
Definition: CaloClusterer.h:46
std::vector< int > ieta_
Definition: CaloClusterer.h:47
std::vector< int > iphi_
Definition: CaloClusterer.h:47
std::vector< std::array< int, 8 > > neighbours_
Definition: CaloClusterer.h:48

Member Function Documentation

float l1tpf_calo::Grid::eta ( int  icell) const
inline

Definition at line 28 of file CaloClusterer.h.

References eta_.

Referenced by Particle.Particle::__str__(), l1tpf_calo::GridData< PreCluster >::eta(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

28 { return eta_[icell]; }
std::vector< float > eta_
Definition: CaloClusterer.h:46
float l1tpf_calo::Grid::etaWidth ( int  icell) const
inline

Definition at line 30 of file CaloClusterer.h.

References etaWidth_.

30 { return etaWidth_[icell]; }
std::vector< float > etaWidth_
Definition: CaloClusterer.h:46
virtual int l1tpf_calo::Grid::find_cell ( float  eta,
float  phi 
) const
pure virtual
int l1tpf_calo::Grid::ieta ( int  icell) const
inline

Definition at line 32 of file CaloClusterer.h.

References ieta_.

Referenced by l1tpf_calo::GridData< PreCluster >::ieta().

32 { return ieta_[icell]; }
std::vector< int > ieta_
Definition: CaloClusterer.h:47
int l1tpf_calo::Grid::iphi ( int  icell) const
inline

Definition at line 33 of file CaloClusterer.h.

References iphi_.

Referenced by l1tpf_calo::GridData< PreCluster >::iphi().

33 { return iphi_[icell]; }
std::vector< int > iphi_
Definition: CaloClusterer.h:47
int l1tpf_calo::Grid::neighbour ( int  icell,
unsigned int  idx 
) const
inline

Definition at line 27 of file CaloClusterer.h.

References neighbours_.

Referenced by l1tpf_calo::GridData< PreCluster >::neigh().

27 { return neighbours_[icell][idx]; }
std::vector< std::array< int, 8 > > neighbours_
Definition: CaloClusterer.h:48
float l1tpf_calo::Grid::phi ( int  icell) const
inline

Definition at line 29 of file CaloClusterer.h.

References phi_.

Referenced by Particle.Particle::__str__(), l1tpf_calo::GridData< PreCluster >::phi(), and ntupleDataFormat.Track::phiPull().

29 { return phi_[icell]; }
std::vector< float > phi_
Definition: CaloClusterer.h:46
float l1tpf_calo::Grid::phiWidth ( int  icell) const
inline

Definition at line 31 of file CaloClusterer.h.

References phiWidth_.

31 { return phiWidth_[icell]; }
std::vector< float > phiWidth_
Definition: CaloClusterer.h:46
unsigned int l1tpf_calo::Grid::size ( void  ) const
inline

Definition at line 25 of file CaloClusterer.h.

References ncells_.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

25 { return ncells_; }
unsigned int ncells_
Definition: CaloClusterer.h:45

Member Data Documentation

std::vector<float> l1tpf_calo::Grid::eta_
protected

Definition at line 46 of file CaloClusterer.h.

Referenced by eta(), and l1tpf_calo::Phase1GridBase::Phase1GridBase().

std::vector<float> l1tpf_calo::Grid::etaWidth_
protected

Definition at line 46 of file CaloClusterer.h.

Referenced by etaWidth(), and l1tpf_calo::Phase1GridBase::Phase1GridBase().

std::vector<int> l1tpf_calo::Grid::ieta_
protected

Definition at line 47 of file CaloClusterer.h.

Referenced by ieta(), and l1tpf_calo::Phase1GridBase::Phase1GridBase().

std::vector<int> l1tpf_calo::Grid::iphi_
protected

Definition at line 47 of file CaloClusterer.h.

Referenced by iphi(), and l1tpf_calo::Phase1GridBase::Phase1GridBase().

unsigned int l1tpf_calo::Grid::ncells_
protected

Definition at line 45 of file CaloClusterer.h.

Referenced by l1tpf_calo::Phase1GridBase::Phase1GridBase(), and size().

std::vector<std::array<int, 8> > l1tpf_calo::Grid::neighbours_
protected

Definition at line 48 of file CaloClusterer.h.

Referenced by neighbour(), and l1tpf_calo::Phase1GridBase::Phase1GridBase().

std::vector<float> l1tpf_calo::Grid::phi_
protected

Definition at line 46 of file CaloClusterer.h.

Referenced by l1tpf_calo::Phase1GridBase::Phase1GridBase(), and phi().

std::vector<float> l1tpf_calo::Grid::phiWidth_
protected

Definition at line 46 of file CaloClusterer.h.

Referenced by l1tpf_calo::Phase1GridBase::Phase1GridBase(), and phiWidth().