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

Constructor & Destructor Documentation

◆ Hexel() [1/2]

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

References detid, position, x, y, and z.

181  : isHalfCell(isHalf),
182  weight(0.),
183  fraction(1.0),
184  detid(id_in),
185  rho(0.),
186  delta(0.),
187  nearestHigher(-1),
188  isBorder(false),
189  isHalo(false),
190  clusterIndex(-1),
191  sigmaNoise(sigmaNoise_in),
192  thickness(thickness_in),
193  tools(tools_in) {
194  const GlobalPoint position(tools->getPosition(detid));
195  weight = hit.energy();
196  x = position.x();
197  y = position.y();
198  z = position.z();
199  }
Definition: weight.py:1
Definition: tools.py:1
const hgcal::RecHitTools * tools
static int position[264][3]
Definition: ReadPGInfo.cc:289

◆ Hexel() [2/2]

HGCalImagingAlgo::Hexel::Hexel ( )
inline

Definition at line 200 of file HGCalImagingAlgo.h.

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

Member Function Documentation

◆ operator>()

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

Definition at line 217 of file HGCalImagingAlgo.h.

References rho.

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

Member Data Documentation

◆ clusterIndex

int HGCalImagingAlgo::Hexel::clusterIndex

Definition at line 170 of file HGCalImagingAlgo.h.

◆ delta

double HGCalImagingAlgo::Hexel::delta

Definition at line 166 of file HGCalImagingAlgo.h.

◆ detid

DetId HGCalImagingAlgo::Hexel::detid

Definition at line 164 of file HGCalImagingAlgo.h.

Referenced by Hexel().

◆ fraction

double HGCalImagingAlgo::Hexel::fraction

Definition at line 163 of file HGCalImagingAlgo.h.

◆ isBorder

bool HGCalImagingAlgo::Hexel::isBorder

Definition at line 168 of file HGCalImagingAlgo.h.

◆ isHalfCell

bool HGCalImagingAlgo::Hexel::isHalfCell

Definition at line 161 of file HGCalImagingAlgo.h.

◆ isHalo

bool HGCalImagingAlgo::Hexel::isHalo

Definition at line 169 of file HGCalImagingAlgo.h.

◆ nearestHigher

int HGCalImagingAlgo::Hexel::nearestHigher

Definition at line 167 of file HGCalImagingAlgo.h.

◆ rho

double HGCalImagingAlgo::Hexel::rho

◆ sigmaNoise

float HGCalImagingAlgo::Hexel::sigmaNoise

Definition at line 171 of file HGCalImagingAlgo.h.

◆ thickness

float HGCalImagingAlgo::Hexel::thickness

Definition at line 172 of file HGCalImagingAlgo.h.

◆ tools

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

Definition at line 173 of file HGCalImagingAlgo.h.

◆ weight

double HGCalImagingAlgo::Hexel::weight

◆ x

double HGCalImagingAlgo::Hexel::x

◆ y

double HGCalImagingAlgo::Hexel::y

◆ z

double HGCalImagingAlgo::Hexel::z