Main Page
Namespaces
Classes
Package Documentation
src
RecoEgamma
EgammaTools
interface
Spot.h
Go to the documentation of this file.
1
#ifndef RecoEgamma_EgammaTools_Spot_h
2
#define RecoEgamma_EgammaTools_Spot_h
3
4
#include "
DataFormats/DetId/interface/DetId.h
"
5
#include <vector>
6
7
namespace
hgcal
{
8
9
class
Spot
{
10
public
:
11
Spot
(
DetId
detid,
double
energy
,
const
std::vector<double>&
row
,
unsigned
int
layer
,
float
fraction
,
double
mip
):
12
detId_
(detid),
energy_
(energy),
row_
(row),
layer_
(layer),
fraction_
(fraction),
13
mip_
(mip),
multiplicity_
(
int
(energy/mip)),
subdet_
(detid.subdetId()),
isCore_
(fraction>0.){}
14
~Spot
(){}
15
inline
DetId
detId
()
const
{
return
detId_
;}
16
inline
float
energy
()
const
{
return
energy_
;}
17
inline
const
double
*
row
()
const
{
return
&
row_
[0];}
18
inline
float
fraction
()
const
{
return
fraction_
;}
19
inline
float
mip
()
const
{
return
mip_
;}
20
inline
int
multiplicity
()
const
{
return
multiplicity_
;}
21
inline
unsigned
int
layer
()
const
{
return
layer_
;}
22
inline
int
subdet
()
const
{
return
subdet_
;}
23
inline
bool
isCore
()
const
{
return
isCore_
;}
24
25
private
:
26
DetId
detId_
;
27
float
energy_
;
28
std::vector<double>
row_
;
29
unsigned
int
layer_
;
30
float
fraction_
;
31
float
mip_
;
32
int
multiplicity_
;
33
int
subdet_
;
34
bool
isCore_
;
35
};
36
37
}
38
39
#endif
hgcal::Spot::layer_
unsigned int layer_
Definition:
Spot.h:29
hgcal::Spot::isCore_
bool isCore_
Definition:
Spot.h:34
hgcal::Spot::~Spot
~Spot()
Definition:
Spot.h:14
hgcal::Spot::subdet_
int subdet_
Definition:
Spot.h:33
hgcal::Spot::mip_
float mip_
Definition:
Spot.h:31
hgcal::Spot::detId_
DetId detId_
Definition:
Spot.h:26
hgcal
Definition:
EgammaPCAHelper.h:31
createfilelist.int
int
Definition:
createfilelist.py:10
hgcal::Spot::energy
float energy() const
Definition:
Spot.h:16
hgcal::Spot::subdet
int subdet() const
Definition:
Spot.h:22
hgcal::Spot::Spot
Spot(DetId detid, double energy, const std::vector< double > &row, unsigned int layer, float fraction, double mip)
Definition:
Spot.h:11
hgcal::Spot::detId
DetId detId() const
Definition:
Spot.h:15
DetId
Definition:
DetId.h:18
hgcal::Spot::layer
unsigned int layer() const
Definition:
Spot.h:21
hgcal::Spot
Definition:
Spot.h:9
hgcal::Spot::row_
std::vector< double > row_
Definition:
Spot.h:28
hgcal::Spot::multiplicity
int multiplicity() const
Definition:
Spot.h:20
hgcal::Spot::fraction
float fraction() const
Definition:
Spot.h:18
hgcal::Spot::energy_
float energy_
Definition:
Spot.h:27
hgcal::Spot::mip
float mip() const
Definition:
Spot.h:19
hgcal::Spot::row
const double * row() const
Definition:
Spot.h:17
hgcal::Spot::isCore
bool isCore() const
Definition:
Spot.h:23
hgcal::Spot::fraction_
float fraction_
Definition:
Spot.h:30
DetId.h
hgcal::Spot::multiplicity_
int multiplicity_
Definition:
Spot.h:32
Generated for CMSSW Reference Manual by
1.8.11