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, 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
 
const hgcal::RecHitToolstools
 
double weight
 
double x
 
double y
 
double z
 

Detailed Description

Definition at line 134 of file HGCalImagingAlgo.h.

Constructor & Destructor Documentation

HGCalImagingAlgo::Hexel::Hexel ( const HGCRecHit hit,
DetId  id_in,
bool  isHalf,
const hgcal::RecHitTools tools_in 
)
inline

Definition at line 151 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().

151  :
152  x(0.),y(0.),z(0.),isHalfCell(isHalf),
153  weight(0.), fraction(1.0), detid(id_in), rho(0.), delta(0.),
154  nearestHigher(-1), isBorder(false), isHalo(false),
155  clusterIndex(-1), tools(tools_in)
156  {
157  const GlobalPoint position( std::move( tools->getPosition( detid ) ) );
158 
159  weight = hit.energy();
160  x = position.x();
161  y = position.y();
162  z = position.z();
163 
164  }
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

Member Function Documentation

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

Definition at line 172 of file HGCalImagingAlgo.h.

References rho.

172  {
173  return (rho > rhs.rho);
174  }

Member Data Documentation

int HGCalImagingAlgo::Hexel::clusterIndex

Definition at line 148 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::delta

Definition at line 144 of file HGCalImagingAlgo.h.

DetId HGCalImagingAlgo::Hexel::detid

Definition at line 142 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::fraction

Definition at line 141 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isBorder

Definition at line 146 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isHalfCell

Definition at line 139 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isHalo

Definition at line 147 of file HGCalImagingAlgo.h.

int HGCalImagingAlgo::Hexel::nearestHigher

Definition at line 145 of file HGCalImagingAlgo.h.

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

Definition at line 149 of file HGCalImagingAlgo.h.

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