CMS 3D CMS Logo

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

Public Member Functions

 Hexel ()
 
 Hexel (const HGCRecHit &hit, DetId id_in, bool isHalf, float sigmaNoise_in, float thickness_in, const hgcal::RecHitTools *tools_in)
 
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

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

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  }

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

◆ Hexel() [2/2]

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) {}

Member Function Documentation

◆ operator>()

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

Definition at line 212 of file HGCalImagingAlgo.h.

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

References rho.

Member Data Documentation

◆ clusterIndex

int HGCalImagingAlgo::Hexel::clusterIndex

Definition at line 165 of file HGCalImagingAlgo.h.

◆ delta

double HGCalImagingAlgo::Hexel::delta

Definition at line 161 of file HGCalImagingAlgo.h.

◆ detid

DetId HGCalImagingAlgo::Hexel::detid

Definition at line 159 of file HGCalImagingAlgo.h.

Referenced by Hexel().

◆ fraction

double HGCalImagingAlgo::Hexel::fraction

Definition at line 158 of file HGCalImagingAlgo.h.

◆ isBorder

bool HGCalImagingAlgo::Hexel::isBorder

Definition at line 163 of file HGCalImagingAlgo.h.

◆ isHalfCell

bool HGCalImagingAlgo::Hexel::isHalfCell

Definition at line 156 of file HGCalImagingAlgo.h.

◆ isHalo

bool HGCalImagingAlgo::Hexel::isHalo

Definition at line 164 of file HGCalImagingAlgo.h.

◆ nearestHigher

int HGCalImagingAlgo::Hexel::nearestHigher

Definition at line 162 of file HGCalImagingAlgo.h.

◆ rho

double HGCalImagingAlgo::Hexel::rho

◆ sigmaNoise

float HGCalImagingAlgo::Hexel::sigmaNoise

Definition at line 166 of file HGCalImagingAlgo.h.

◆ thickness

float HGCalImagingAlgo::Hexel::thickness

Definition at line 167 of file HGCalImagingAlgo.h.

◆ tools

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

Definition at line 168 of file HGCalImagingAlgo.h.

◆ weight

double HGCalImagingAlgo::Hexel::weight

◆ x

double HGCalImagingAlgo::Hexel::x

◆ y

double HGCalImagingAlgo::Hexel::y

◆ z

double HGCalImagingAlgo::Hexel::z
HGCalImagingAlgo::Hexel::isHalfCell
bool isHalfCell
Definition: HGCalImagingAlgo.h:156
HGCalImagingAlgo::Hexel::clusterIndex
int clusterIndex
Definition: HGCalImagingAlgo.h:165
HGCalImagingAlgo::Hexel::z
double z
Definition: HGCalImagingAlgo.h:155
HGCalImagingAlgo::Hexel::fraction
double fraction
Definition: HGCalImagingAlgo.h:158
HGCalImagingAlgo::Hexel::nearestHigher
int nearestHigher
Definition: HGCalImagingAlgo.h:162
HGCalImagingAlgo::Hexel::rho
double rho
Definition: HGCalImagingAlgo.h:160
Point3DBase< float, GlobalTag >
HGCalImagingAlgo::Hexel::y
double y
Definition: HGCalImagingAlgo.h:154
HGCalImagingAlgo::Hexel::delta
double delta
Definition: HGCalImagingAlgo.h:161
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
HGCalImagingAlgo::Hexel::thickness
float thickness
Definition: HGCalImagingAlgo.h:167
tools
Definition: tools.py:1
HGCalImagingAlgo::Hexel::weight
double weight
Definition: HGCalImagingAlgo.h:157
HGCalImagingAlgo::Hexel::x
double x
Definition: HGCalImagingAlgo.h:153
HGCalImagingAlgo::Hexel::sigmaNoise
float sigmaNoise
Definition: HGCalImagingAlgo.h:166
HGCalImagingAlgo::Hexel::tools
const hgcal::RecHitTools * tools
Definition: HGCalImagingAlgo.h:168
HGCalImagingAlgo::Hexel::detid
DetId detid
Definition: HGCalImagingAlgo.h:159
HGCalImagingAlgo::Hexel::isHalo
bool isHalo
Definition: HGCalImagingAlgo.h:164
HGCalImagingAlgo::Hexel::isBorder
bool isBorder
Definition: HGCalImagingAlgo.h:163
weight
Definition: weight.py:1
hit
Definition: SiStripHitEffFromCalibTree.cc:88