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 160 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 179 of file HGCalImagingAlgo.h.

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

179  :
180  isHalfCell(isHalf),
181  weight(0.), fraction(1.0), detid(id_in), rho(0.), delta(0.),
182  nearestHigher(-1), isBorder(false), isHalo(false),
183  clusterIndex(-1), sigmaNoise(sigmaNoise_in), thickness(thickness_in),
184  tools(tools_in)
185  {
186  const GlobalPoint position( tools->getPosition( detid ) );
187  weight = hit.energy();
188  x = position.x();
189  y = position.y();
190  z = position.z();
191  }
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 192 of file HGCalImagingAlgo.h.

192  :
193  x(0.),y(0.),z(0.),isHalfCell(false),
194  weight(0.), fraction(1.0), detid(), rho(0.), delta(0.),
195  nearestHigher(-1), isBorder(false), isHalo(false),
196  clusterIndex(-1),
197  sigmaNoise(0.),
198  thickness(0.),
199  tools(nullptr)
200  {
201  }
const hgcal::RecHitTools * tools

Member Function Documentation

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

Definition at line 202 of file HGCalImagingAlgo.h.

References rho.

202  {
203  return (rho > rhs.rho);
204  }

Member Data Documentation

int HGCalImagingAlgo::Hexel::clusterIndex

Definition at line 174 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::delta

Definition at line 170 of file HGCalImagingAlgo.h.

DetId HGCalImagingAlgo::Hexel::detid

Definition at line 168 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::fraction

Definition at line 167 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isBorder

Definition at line 172 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isHalfCell

Definition at line 165 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isHalo

Definition at line 173 of file HGCalImagingAlgo.h.

int HGCalImagingAlgo::Hexel::nearestHigher

Definition at line 171 of file HGCalImagingAlgo.h.

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

Definition at line 175 of file HGCalImagingAlgo.h.

float HGCalImagingAlgo::Hexel::thickness

Definition at line 176 of file HGCalImagingAlgo.h.

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

Definition at line 177 of file HGCalImagingAlgo.h.

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