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 211 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 230 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().

230  :
231  isHalfCell(isHalf),
232  weight(0.), fraction(1.0), detid(id_in), rho(0.), delta(0.),
233  nearestHigher(-1), isBorder(false), isHalo(false),
234  clusterIndex(-1), sigmaNoise(sigmaNoise_in), thickness(thickness_in),
235  tools(tools_in)
236  {
237  const GlobalPoint position( std::move( tools->getPosition( detid ) ) );
238  weight = hit.energy();
239  x = position.x();
240  y = position.y();
241  z = position.z();
242  }
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 243 of file HGCalImagingAlgo.h.

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

Member Function Documentation

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

Definition at line 253 of file HGCalImagingAlgo.h.

References rho.

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

Member Data Documentation

int HGCalImagingAlgo::Hexel::clusterIndex

Definition at line 225 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::delta

Definition at line 221 of file HGCalImagingAlgo.h.

DetId HGCalImagingAlgo::Hexel::detid

Definition at line 219 of file HGCalImagingAlgo.h.

double HGCalImagingAlgo::Hexel::fraction

Definition at line 218 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isBorder

Definition at line 223 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isHalfCell

Definition at line 216 of file HGCalImagingAlgo.h.

bool HGCalImagingAlgo::Hexel::isHalo

Definition at line 224 of file HGCalImagingAlgo.h.

int HGCalImagingAlgo::Hexel::nearestHigher

Definition at line 222 of file HGCalImagingAlgo.h.

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

Definition at line 226 of file HGCalImagingAlgo.h.

float HGCalImagingAlgo::Hexel::thickness

Definition at line 227 of file HGCalImagingAlgo.h.

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

Definition at line 228 of file HGCalImagingAlgo.h.

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