CMS 3D CMS Logo

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

◆ ~Grid()

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

Definition at line 24 of file CaloClusterer.h.

24 {}

◆ Grid()

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) {}

Member Function Documentation

◆ eta()

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

Definition at line 28 of file CaloClusterer.h.

28 { return eta_[icell]; }

References eta_.

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

◆ etaWidth()

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

Definition at line 30 of file CaloClusterer.h.

30 { return etaWidth_[icell]; }

References etaWidth_.

◆ find_cell()

virtual int l1tpf_calo::Grid::find_cell ( float  eta,
float  phi 
) const
pure virtual

◆ ieta()

int l1tpf_calo::Grid::ieta ( int  icell) const
inline

◆ iphi()

int l1tpf_calo::Grid::iphi ( int  icell) const
inline

◆ neighbour()

int l1tpf_calo::Grid::neighbour ( int  icell,
unsigned int  idx 
) const
inline

Definition at line 27 of file CaloClusterer.h.

27 { return neighbours_[icell][idx]; }

References training_settings::idx, and neighbours_.

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

◆ phi()

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

Definition at line 29 of file CaloClusterer.h.

29 { return phi_[icell]; }

References phi_.

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

◆ phiWidth()

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

Definition at line 31 of file CaloClusterer.h.

31 { return phiWidth_[icell]; }

References phiWidth_.

◆ size()

unsigned int l1tpf_calo::Grid::size ( void  ) const
inline

Definition at line 25 of file CaloClusterer.h.

25 { return ncells_; }

References ncells_.

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

Member Data Documentation

◆ eta_

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

Definition at line 46 of file CaloClusterer.h.

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

◆ etaWidth_

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

Definition at line 46 of file CaloClusterer.h.

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

◆ ieta_

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

Definition at line 47 of file CaloClusterer.h.

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

◆ iphi_

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

Definition at line 47 of file CaloClusterer.h.

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

◆ ncells_

unsigned int l1tpf_calo::Grid::ncells_
protected

Definition at line 45 of file CaloClusterer.h.

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

◆ neighbours_

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().

◆ phi_

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

Definition at line 46 of file CaloClusterer.h.

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

◆ phiWidth_

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

Definition at line 46 of file CaloClusterer.h.

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

l1tpf_calo::Grid::neighbours_
std::vector< std::array< int, 8 > > neighbours_
Definition: CaloClusterer.h:48
l1tpf_calo::Grid::ncells_
unsigned int ncells_
Definition: CaloClusterer.h:45
l1tpf_calo::Grid::phi_
std::vector< float > phi_
Definition: CaloClusterer.h:46
training_settings.idx
idx
Definition: training_settings.py:16
l1tpf_calo::Grid::etaWidth_
std::vector< float > etaWidth_
Definition: CaloClusterer.h:46
l1tpf_calo::Grid::ieta_
std::vector< int > ieta_
Definition: CaloClusterer.h:47
l1tpf_calo::Grid::size
unsigned int size() const
Definition: CaloClusterer.h:25
l1tpf_calo::Grid::phiWidth_
std::vector< float > phiWidth_
Definition: CaloClusterer.h:46
l1tpf_calo::Grid::eta_
std::vector< float > eta_
Definition: CaloClusterer.h:46
l1tpf_calo::Grid::iphi_
std::vector< int > iphi_
Definition: CaloClusterer.h:47