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.) {}
unsigned int layer_
Definition: Spot.h:36
bool isCore_
Definition: Spot.h:41
unsigned int layer() const
Definition: Spot.h:28
const double * row() const
Definition: Spot.h:24
int subdet_
Definition: Spot.h:40
float mip_
Definition: Spot.h:38
DetId detId_
Definition: Spot.h:33
float mip() const
Definition: Spot.h:26
float fraction() const
Definition: Spot.h:25
std::vector< double > row_
Definition: Spot.h:35
float energy_
Definition: Spot.h:34
float fraction_
Definition: Spot.h:37
float energy() const
Definition: Spot.h:23
int multiplicity_
Definition: Spot.h:39

◆ ~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.

References detId_.

22 { return detId_; }
DetId detId_
Definition: Spot.h:33

◆ energy()

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

Definition at line 23 of file Spot.h.

References energy_.

Referenced by Jet.Jet::rawEnergy().

23 { return energy_; }
float energy_
Definition: Spot.h:34

◆ fraction()

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

Definition at line 25 of file Spot.h.

References fraction_.

25 { return fraction_; }
float fraction_
Definition: Spot.h:37

◆ isCore()

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

Definition at line 30 of file Spot.h.

References isCore_.

30 { return isCore_; }
bool isCore_
Definition: Spot.h:41

◆ layer()

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

Definition at line 28 of file Spot.h.

References layer_.

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

28 { return layer_; }
unsigned int layer_
Definition: Spot.h:36

◆ mip()

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

Definition at line 26 of file Spot.h.

References mip_.

26 { return mip_; }
float mip_
Definition: Spot.h:38

◆ multiplicity()

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

Definition at line 27 of file Spot.h.

References multiplicity_.

27 { return multiplicity_; }
int multiplicity_
Definition: Spot.h:39

◆ row()

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

Definition at line 24 of file Spot.h.

References row_.

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

24 { return &row_[0]; }
std::vector< double > row_
Definition: Spot.h:35

◆ subdet()

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

Definition at line 29 of file Spot.h.

References subdet_.

29 { return subdet_; }
int subdet_
Definition: Spot.h:40

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