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

Constructor & Destructor Documentation

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

References CaloRecHit::energy(), hgcal::RecHitTools::getPosition(), eostools::move(), position, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

231  :
232  isHalfCell(isHalf),
233  weight(0.), fraction(1.0), detid(id_in), rho(0.), delta(0.),
234  nearestHigher(-1), isBorder(false), isHalo(false),
235  clusterIndex(-1), sigmaNoise(sigmaNoise_in), thickness(thickness_in),
236  tools(tools_in)
237  {
238  const GlobalPoint position( std::move( tools->getPosition( detid ) ) );
239  weight = hit.energy();
240  x = position.x();
241  y = position.y();
242  z = position.z();
243  }
Definition: weight.py:1
float energy() const
Definition: CaloRecHit.h:17
Definition: tools.py:1
const hgcal::RecHitTools * tools
static int position[264][3]
Definition: ReadPGInfo.cc:509
def move(src, dest)
Definition: eostools.py:510
HGCalImagingAlgo::Hexel::Hexel ( )
inline

Definition at line 244 of file HGCalImagingAlgo.h.

244  :
245  x(0.),y(0.),z(0.),isHalfCell(false),
246  weight(0.), fraction(1.0), detid(), rho(0.), delta(0.),
247  nearestHigher(-1), isBorder(false), isHalo(false),
248  clusterIndex(-1),
249  sigmaNoise(0.),
250  thickness(0.),
251  tools(0)
252  {
253  }
const hgcal::RecHitTools * tools

Member Function Documentation

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

Definition at line 254 of file HGCalImagingAlgo.h.

References rho.

254  {
255  return (rho > rhs.rho);
256  }

Member Data Documentation

int HGCalImagingAlgo::Hexel::clusterIndex

Definition at line 226 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::delta

Definition at line 222 of file HGCalImagingAlgo.h.

DetId HGCalImagingAlgo::Hexel::detid

Definition at line 220 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::fraction

Definition at line 219 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isBorder

Definition at line 224 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isHalfCell

Definition at line 217 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isHalo

Definition at line 225 of file HGCalImagingAlgo.h.

int HGCalImagingAlgo::Hexel::nearestHigher

Definition at line 223 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::rho
float HGCalImagingAlgo::Hexel::sigmaNoise

Definition at line 227 of file HGCalImagingAlgo.h.

float HGCalImagingAlgo::Hexel::thickness

Definition at line 228 of file HGCalImagingAlgo.h.

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

Definition at line 229 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::weight
double HGCalImagingAlgo::Hexel::x
double HGCalImagingAlgo::Hexel::y
double HGCalImagingAlgo::Hexel::z