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

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

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

◆ Hexel() [2/2]

HGCalImagingAlgo::Hexel::Hexel ( )
inline

Definition at line 198 of file HGCalImagingAlgo.h.

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

Member Function Documentation

◆ operator>()

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

Definition at line 215 of file HGCalImagingAlgo.h.

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

References rho.

Member Data Documentation

◆ clusterIndex

int HGCalImagingAlgo::Hexel::clusterIndex

Definition at line 168 of file HGCalImagingAlgo.h.

◆ delta

double HGCalImagingAlgo::Hexel::delta

Definition at line 164 of file HGCalImagingAlgo.h.

◆ detid

DetId HGCalImagingAlgo::Hexel::detid

Definition at line 162 of file HGCalImagingAlgo.h.

Referenced by Hexel().

◆ fraction

double HGCalImagingAlgo::Hexel::fraction

Definition at line 161 of file HGCalImagingAlgo.h.

◆ isBorder

bool HGCalImagingAlgo::Hexel::isBorder

Definition at line 166 of file HGCalImagingAlgo.h.

◆ isHalfCell

bool HGCalImagingAlgo::Hexel::isHalfCell

Definition at line 159 of file HGCalImagingAlgo.h.

◆ isHalo

bool HGCalImagingAlgo::Hexel::isHalo

Definition at line 167 of file HGCalImagingAlgo.h.

◆ nearestHigher

int HGCalImagingAlgo::Hexel::nearestHigher

Definition at line 165 of file HGCalImagingAlgo.h.

◆ rho

double HGCalImagingAlgo::Hexel::rho

◆ sigmaNoise

float HGCalImagingAlgo::Hexel::sigmaNoise

Definition at line 169 of file HGCalImagingAlgo.h.

◆ thickness

float HGCalImagingAlgo::Hexel::thickness

Definition at line 170 of file HGCalImagingAlgo.h.

◆ tools

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

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