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

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
int subdet_
Definition: Spot.h:40
float mip_
Definition: Spot.h:38
DetId detId_
Definition: Spot.h:33
float energy() const
Definition: Spot.h:23
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:48
unsigned int layer() const
Definition: Spot.h:28
std::vector< double > row_
Definition: Spot.h:35
float fraction() const
Definition: Spot.h:25
float energy_
Definition: Spot.h:34
float mip() const
Definition: Spot.h:26
const double * row() const
Definition: Spot.h:24
float fraction_
Definition: Spot.h:37
int multiplicity_
Definition: Spot.h:39
hgcal::Spot::~Spot ( )
inline

Definition at line 21 of file Spot.h.

21 {}

Member Function Documentation

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
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
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
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
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
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
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
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
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 hgcal::Spot::detId_
private

Definition at line 33 of file Spot.h.

Referenced by detId().

float hgcal::Spot::energy_
private

Definition at line 34 of file Spot.h.

Referenced by energy().

float hgcal::Spot::fraction_
private

Definition at line 37 of file Spot.h.

Referenced by fraction().

bool hgcal::Spot::isCore_
private

Definition at line 41 of file Spot.h.

Referenced by isCore().

unsigned int hgcal::Spot::layer_
private

Definition at line 36 of file Spot.h.

Referenced by layer().

float hgcal::Spot::mip_
private

Definition at line 38 of file Spot.h.

Referenced by mip().

int hgcal::Spot::multiplicity_
private

Definition at line 39 of file Spot.h.

Referenced by multiplicity().

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

Definition at line 35 of file Spot.h.

Referenced by row().

int hgcal::Spot::subdet_
private

Definition at line 40 of file Spot.h.

Referenced by subdet().