CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
HGCalImagingAlgo::Hexel Struct Reference

Public Member Functions

 Hexel (const HGCRecHit &hit, DetId id_in, bool isHalf, float sigmaNoise_in, float thickness_in, const hgcal::RecHitTools *tools_in)
 
 Hexel ()
 
bool operator> (const Hexel &rhs) const
 

Public Attributes

int clusterIndex
 
double delta
 
DetId detid
 
double fraction
 
bool isBorder
 
bool isHalfCell
 
bool isHalo
 
int nearestHigher
 
double rho
 
float sigmaNoise
 
float thickness
 
const hgcal::RecHitToolstools
 
double weight
 
double x
 
double y
 
double z
 

Detailed Description

Definition at line 203 of file HGCalImagingAlgo.h.

Constructor & Destructor Documentation

HGCalImagingAlgo::Hexel::Hexel ( const HGCRecHit hit,
DetId  id_in,
bool  isHalf,
float  sigmaNoise_in,
float  thickness_in,
const hgcal::RecHitTools tools_in 
)
inline

Definition at line 222 of file HGCalImagingAlgo.h.

References CaloRecHit::energy(), hgcal::RecHitTools::getPosition(), and position.

222  :
223  isHalfCell(isHalf),
224  weight(0.), fraction(1.0), detid(id_in), rho(0.), delta(0.),
225  nearestHigher(-1), isBorder(false), isHalo(false),
226  clusterIndex(-1), sigmaNoise(sigmaNoise_in), thickness(thickness_in),
227  tools(tools_in)
228  {
229  const GlobalPoint position( tools->getPosition( detid ) );
230  weight = hit.energy();
231  x = position.x();
232  y = position.y();
233  z = position.z();
234  }
constexpr float energy() const
Definition: CaloRecHit.h:31
Definition: weight.py:1
Definition: tools.py:1
const hgcal::RecHitTools * tools
static int position[264][3]
Definition: ReadPGInfo.cc:509
HGCalImagingAlgo::Hexel::Hexel ( )
inline

Definition at line 235 of file HGCalImagingAlgo.h.

235  :
236  x(0.),y(0.),z(0.),isHalfCell(false),
237  weight(0.), fraction(1.0), detid(), rho(0.), delta(0.),
238  nearestHigher(-1), isBorder(false), isHalo(false),
239  clusterIndex(-1),
240  sigmaNoise(0.),
241  thickness(0.),
242  tools(nullptr)
243  {
244  }
const hgcal::RecHitTools * tools

Member Function Documentation

bool HGCalImagingAlgo::Hexel::operator> ( const Hexel rhs) const
inline

Definition at line 245 of file HGCalImagingAlgo.h.

References rho.

245  {
246  return (rho > rhs.rho);
247  }

Member Data Documentation

int HGCalImagingAlgo::Hexel::clusterIndex

Definition at line 217 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::delta

Definition at line 213 of file HGCalImagingAlgo.h.

DetId HGCalImagingAlgo::Hexel::detid

Definition at line 211 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::fraction

Definition at line 210 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isBorder

Definition at line 215 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isHalfCell

Definition at line 208 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isHalo

Definition at line 216 of file HGCalImagingAlgo.h.

int HGCalImagingAlgo::Hexel::nearestHigher

Definition at line 214 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::rho
float HGCalImagingAlgo::Hexel::sigmaNoise

Definition at line 218 of file HGCalImagingAlgo.h.

float HGCalImagingAlgo::Hexel::thickness

Definition at line 219 of file HGCalImagingAlgo.h.

const hgcal::RecHitTools* HGCalImagingAlgo::Hexel::tools

Definition at line 220 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::weight
double HGCalImagingAlgo::Hexel::x
double HGCalImagingAlgo::Hexel::y
double HGCalImagingAlgo::Hexel::z