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 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.

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  }

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

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

Member Function Documentation

◆ operator>()

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

Definition at line 217 of file HGCalImagingAlgo.h.

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

References 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
HGCalImagingAlgo::Hexel::isHalfCell
bool isHalfCell
Definition: HGCalImagingAlgo.h:161
HGCalImagingAlgo::Hexel::clusterIndex
int clusterIndex
Definition: HGCalImagingAlgo.h:170
HGCalImagingAlgo::Hexel::z
double z
Definition: HGCalImagingAlgo.h:160
HGCalImagingAlgo::Hexel::fraction
double fraction
Definition: HGCalImagingAlgo.h:163
HGCalImagingAlgo::Hexel::nearestHigher
int nearestHigher
Definition: HGCalImagingAlgo.h:167
HGCalImagingAlgo::Hexel::rho
double rho
Definition: HGCalImagingAlgo.h:165
Point3DBase< float, GlobalTag >
HGCalImagingAlgo::Hexel::y
double y
Definition: HGCalImagingAlgo.h:159
HGCalImagingAlgo::Hexel::delta
double delta
Definition: HGCalImagingAlgo.h:166
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
HGCalImagingAlgo::Hexel::thickness
float thickness
Definition: HGCalImagingAlgo.h:172
tools
Definition: tools.py:1
HGCalImagingAlgo::Hexel::weight
double weight
Definition: HGCalImagingAlgo.h:162
HGCalImagingAlgo::Hexel::x
double x
Definition: HGCalImagingAlgo.h:158
HGCalImagingAlgo::Hexel::sigmaNoise
float sigmaNoise
Definition: HGCalImagingAlgo.h:171
HGCalImagingAlgo::Hexel::tools
const hgcal::RecHitTools * tools
Definition: HGCalImagingAlgo.h:173
HGCalImagingAlgo::Hexel::detid
DetId detid
Definition: HGCalImagingAlgo.h:164
HGCalImagingAlgo::Hexel::isHalo
bool isHalo
Definition: HGCalImagingAlgo.h:169
HGCalImagingAlgo::Hexel::isBorder
bool isBorder
Definition: HGCalImagingAlgo.h:168
weight
Definition: weight.py:1
hit
Definition: SiStripHitEffFromCalibTree.cc:88