CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
hgcal::Spot Class Reference

#include <Spot.h>

Public Member Functions

DetId detId () const
 
float energy () const
 
float fraction () const
 
bool isCore () const
 
unsigned int layer () const
 
float mip () const
 
int multiplicity () const
 
const double * row () const
 
 Spot (DetId detid, double energy, const std::vector< double > &row, unsigned int layer, float fraction, double mip)
 
int subdet () const
 
 ~Spot ()
 

Private Attributes

DetId detId_
 
float energy_
 
float fraction_
 
bool isCore_
 
unsigned int layer_
 
float mip_
 
int multiplicity_
 
std::vector< double > row_
 
int subdet_
 

Detailed Description

Definition at line 9 of file Spot.h.

Constructor & Destructor Documentation

◆ Spot()

hgcal::Spot::Spot ( DetId  detid,
double  energy,
const std::vector< double > &  row,
unsigned int  layer,
float  fraction,
double  mip 
)
inline

Definition at line 11 of file Spot.h.

12  : detId_(detid),
13  energy_(energy),
14  row_(row),
15  layer_(layer),
17  mip_(mip),
18  multiplicity_(int(energy / mip)),
19  subdet_(detid.subdetId()),
20  isCore_(fraction > 0.) {}

◆ ~Spot()

hgcal::Spot::~Spot ( )
inline

Definition at line 21 of file Spot.h.

21 {}

Member Function Documentation

◆ detId()

DetId hgcal::Spot::detId ( ) const
inline

Definition at line 22 of file Spot.h.

22 { return detId_; }

References detId_.

◆ energy()

float hgcal::Spot::energy ( ) const
inline

Definition at line 23 of file Spot.h.

23 { return energy_; }

References energy_.

Referenced by Jet.Jet::rawEnergy().

◆ fraction()

float hgcal::Spot::fraction ( ) const
inline

Definition at line 25 of file Spot.h.

25 { return fraction_; }

References fraction_.

◆ isCore()

bool hgcal::Spot::isCore ( ) const
inline

Definition at line 30 of file Spot.h.

30 { return isCore_; }

References isCore_.

◆ layer()

unsigned int hgcal::Spot::layer ( ) const
inline

Definition at line 28 of file Spot.h.

28 { return layer_; }

References layer_.

Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

◆ mip()

float hgcal::Spot::mip ( ) const
inline

Definition at line 26 of file Spot.h.

26 { return mip_; }

References mip_.

◆ multiplicity()

int hgcal::Spot::multiplicity ( ) const
inline

Definition at line 27 of file Spot.h.

27 { return multiplicity_; }

References multiplicity_.

◆ row()

const double* hgcal::Spot::row ( ) const
inline

Definition at line 24 of file Spot.h.

24 { return &row_[0]; }

References row_.

Referenced by hgcal::EGammaPCAHelper::printHits().

◆ subdet()

int hgcal::Spot::subdet ( ) const
inline

Definition at line 29 of file Spot.h.

29 { return subdet_; }

References subdet_.

Member Data Documentation

◆ detId_

DetId hgcal::Spot::detId_
private

Definition at line 33 of file Spot.h.

Referenced by detId().

◆ energy_

float hgcal::Spot::energy_
private

Definition at line 34 of file Spot.h.

Referenced by energy().

◆ fraction_

float hgcal::Spot::fraction_
private

Definition at line 37 of file Spot.h.

Referenced by fraction().

◆ isCore_

bool hgcal::Spot::isCore_
private

Definition at line 41 of file Spot.h.

Referenced by isCore().

◆ layer_

unsigned int hgcal::Spot::layer_
private

Definition at line 36 of file Spot.h.

Referenced by layer().

◆ mip_

float hgcal::Spot::mip_
private

Definition at line 38 of file Spot.h.

Referenced by mip().

◆ multiplicity_

int hgcal::Spot::multiplicity_
private

Definition at line 39 of file Spot.h.

Referenced by multiplicity().

◆ row_

std::vector<double> hgcal::Spot::row_
private

Definition at line 35 of file Spot.h.

Referenced by row().

◆ subdet_

int hgcal::Spot::subdet_
private

Definition at line 40 of file Spot.h.

Referenced by subdet().

hgcal::Spot::mip_
float mip_
Definition: Spot.h:38
hgcal::Spot::isCore_
bool isCore_
Definition: Spot.h:41
hgcal::Spot::mip
float mip() const
Definition: Spot.h:26
hgcal::Spot::fraction
float fraction() const
Definition: Spot.h:25
hgcal::Spot::row_
std::vector< double > row_
Definition: Spot.h:35
hgcal::Spot::energy_
float energy_
Definition: Spot.h:34
DetId::subdetId
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
Definition: DetId.h:48
hgcal::Spot::energy
float energy() const
Definition: Spot.h:23
hgcal::Spot::layer_
unsigned int layer_
Definition: Spot.h:36
hgcal::Spot::subdet_
int subdet_
Definition: Spot.h:40
hgcal::Spot::multiplicity_
int multiplicity_
Definition: Spot.h:39
hgcal::Spot::detId_
DetId detId_
Definition: Spot.h:33
hgcal::Spot::fraction_
float fraction_
Definition: Spot.h:37
hgcal::Spot::layer
unsigned int layer() const
Definition: Spot.h:28
hgcal::Spot::row
const double * row() const
Definition: Spot.h:24