CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
HGCalCLUEAlgo::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 isHalfCell
 
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 HGCalCLUEAlgo.h.

Constructor & Destructor Documentation

HGCalCLUEAlgo::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 168 of file HGCalCLUEAlgo.h.

References CaloRecHit::energy(), hgcal::RecHitTools::getPosition(), and position.

170  : isHalfCell(isHalf),
171  weight(0.),
172  fraction(1.0),
173  detid(id_in),
174  rho(0.),
175  delta(0.),
176  nearestHigher(-1),
177  clusterIndex(-1),
178  sigmaNoise(sigmaNoise_in),
179  thickness(thickness_in),
180  tools(tools_in) {
181  const GlobalPoint position(tools->getPosition(detid));
182  weight = hit.energy();
183  x = position.x();
184  y = position.y();
185  z = position.z();
186  }
constexpr float energy() const
Definition: CaloRecHit.h:31
Definition: weight.py:1
const hgcal::RecHitTools * tools
Definition: tools.py:1
static int position[264][3]
Definition: ReadPGInfo.cc:509
HGCalCLUEAlgo::Hexel::Hexel ( )
inline

Definition at line 187 of file HGCalCLUEAlgo.h.

188  : x(0.),
189  y(0.),
190  z(0.),
191  isHalfCell(false),
192  weight(0.),
193  fraction(1.0),
194  detid(),
195  rho(0.),
196  delta(0.),
197  nearestHigher(-1),
198  clusterIndex(-1),
199  sigmaNoise(0.),
200  thickness(0.),
201  tools(nullptr) {}
const hgcal::RecHitTools * tools

Member Function Documentation

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

Definition at line 202 of file HGCalCLUEAlgo.h.

References rho.

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

Member Data Documentation

int HGCalCLUEAlgo::Hexel::clusterIndex

Definition at line 163 of file HGCalCLUEAlgo.h.

double HGCalCLUEAlgo::Hexel::delta

Definition at line 161 of file HGCalCLUEAlgo.h.

DetId HGCalCLUEAlgo::Hexel::detid

Definition at line 159 of file HGCalCLUEAlgo.h.

double HGCalCLUEAlgo::Hexel::fraction

Definition at line 158 of file HGCalCLUEAlgo.h.

bool HGCalCLUEAlgo::Hexel::isHalfCell

Definition at line 156 of file HGCalCLUEAlgo.h.

int HGCalCLUEAlgo::Hexel::nearestHigher

Definition at line 162 of file HGCalCLUEAlgo.h.

double HGCalCLUEAlgo::Hexel::rho
float HGCalCLUEAlgo::Hexel::sigmaNoise

Definition at line 164 of file HGCalCLUEAlgo.h.

float HGCalCLUEAlgo::Hexel::thickness

Definition at line 165 of file HGCalCLUEAlgo.h.

const hgcal::RecHitTools* HGCalCLUEAlgo::Hexel::tools

Definition at line 166 of file HGCalCLUEAlgo.h.

double HGCalCLUEAlgo::Hexel::weight
double HGCalCLUEAlgo::Hexel::x
double HGCalCLUEAlgo::Hexel::y
double HGCalCLUEAlgo::Hexel::z