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

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

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

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

Member Function Documentation

◆ operator>()

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

Definition at line 216 of file HGCalImagingAlgo.h.

References rho.

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

Member Data Documentation

◆ clusterIndex

int HGCalImagingAlgo::Hexel::clusterIndex

Definition at line 169 of file HGCalImagingAlgo.h.

◆ delta

double HGCalImagingAlgo::Hexel::delta

Definition at line 165 of file HGCalImagingAlgo.h.

◆ detid

DetId HGCalImagingAlgo::Hexel::detid

Definition at line 163 of file HGCalImagingAlgo.h.

Referenced by Hexel().

◆ fraction

double HGCalImagingAlgo::Hexel::fraction

Definition at line 162 of file HGCalImagingAlgo.h.

◆ isBorder

bool HGCalImagingAlgo::Hexel::isBorder

Definition at line 167 of file HGCalImagingAlgo.h.

◆ isHalfCell

bool HGCalImagingAlgo::Hexel::isHalfCell

Definition at line 160 of file HGCalImagingAlgo.h.

◆ isHalo

bool HGCalImagingAlgo::Hexel::isHalo

Definition at line 168 of file HGCalImagingAlgo.h.

◆ nearestHigher

int HGCalImagingAlgo::Hexel::nearestHigher

Definition at line 166 of file HGCalImagingAlgo.h.

◆ rho

double HGCalImagingAlgo::Hexel::rho

◆ sigmaNoise

float HGCalImagingAlgo::Hexel::sigmaNoise

Definition at line 170 of file HGCalImagingAlgo.h.

◆ thickness

float HGCalImagingAlgo::Hexel::thickness

Definition at line 171 of file HGCalImagingAlgo.h.

◆ tools

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

Definition at line 172 of file HGCalImagingAlgo.h.

◆ weight

double HGCalImagingAlgo::Hexel::weight

◆ x

double HGCalImagingAlgo::Hexel::x

◆ y

double HGCalImagingAlgo::Hexel::y

◆ z

double HGCalImagingAlgo::Hexel::z