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 152 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 170 of file HGCalImagingAlgo.h.

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

176  : isHalfCell(isHalf),
177  weight(0.),
178  fraction(1.0),
179  detid(id_in),
180  rho(0.),
181  delta(0.),
182  nearestHigher(-1),
183  isBorder(false),
184  isHalo(false),
185  clusterIndex(-1),
186  sigmaNoise(sigmaNoise_in),
187  thickness(thickness_in),
188  tools(tools_in) {
189  const GlobalPoint position(tools->getPosition(detid));
190  weight = hit.energy();
191  x = position.x();
192  y = position.y();
193  z = position.z();
194  }
constexpr float energy() const
Definition: CaloRecHit.h:29
Definition: weight.py:1
Definition: tools.py:1
const hgcal::RecHitTools * tools
static int position[264][3]
Definition: ReadPGInfo.cc:289
HGCalImagingAlgo::Hexel::Hexel ( )
inline

Definition at line 195 of file HGCalImagingAlgo.h.

196  : x(0.),
197  y(0.),
198  z(0.),
199  isHalfCell(false),
200  weight(0.),
201  fraction(1.0),
202  detid(),
203  rho(0.),
204  delta(0.),
205  nearestHigher(-1),
206  isBorder(false),
207  isHalo(false),
208  clusterIndex(-1),
209  sigmaNoise(0.),
210  thickness(0.),
211  tools(nullptr) {}
const hgcal::RecHitTools * tools

Member Function Documentation

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

Definition at line 212 of file HGCalImagingAlgo.h.

References rho.

212 { return (rho > rhs.rho); }

Member Data Documentation

int HGCalImagingAlgo::Hexel::clusterIndex

Definition at line 165 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::delta

Definition at line 161 of file HGCalImagingAlgo.h.

DetId HGCalImagingAlgo::Hexel::detid

Definition at line 159 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::fraction

Definition at line 158 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isBorder

Definition at line 163 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isHalfCell

Definition at line 156 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isHalo

Definition at line 164 of file HGCalImagingAlgo.h.

int HGCalImagingAlgo::Hexel::nearestHigher

Definition at line 162 of file HGCalImagingAlgo.h.

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

Definition at line 166 of file HGCalImagingAlgo.h.

float HGCalImagingAlgo::Hexel::thickness

Definition at line 167 of file HGCalImagingAlgo.h.

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

Definition at line 168 of file HGCalImagingAlgo.h.

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