src
SimCalorimetry
CaloSimAlgos
interface
CaloShapes.h
Go to the documentation of this file.
1
#ifndef CaloSimAlgos_CaloShapes_h
2
#define CaloSimAlgos_CaloShapes_h
3
6
#include "
DataFormats/DetId/interface/DetId.h
"
7
class
CaloVShape
;
8
9
class
CaloShapes
{
10
public
:
11
CaloShapes
() :
theShape
(nullptr) {}
12
// doesn't take ownership of the pointer
13
CaloShapes
(
const
CaloVShape
*
shape
) :
theShape
(
shape
) {}
14
virtual
const
CaloVShape
*
shape
(
const
DetId
&
detId
,
bool
precise
=
false
)
const
{
return
theShape
; }
15
virtual
~CaloShapes
() =
default
;
16
17
private
:
18
const
CaloVShape
*
theShape
;
19
};
20
21
#endif
hltPixelTracks_cff.precise
precise
Definition:
hltPixelTracks_cff.py:32
CaloShapes
Definition:
CaloShapes.h:9
CaloShapes::~CaloShapes
virtual ~CaloShapes()=default
CaloVShape
Electronic response of the preamp.
Definition:
CaloVShape.h:11
CaloShapes::shape
virtual const CaloVShape * shape(const DetId &detId, bool precise=false) const
Definition:
CaloShapes.h:14
CaloShapes::CaloShapes
CaloShapes(const CaloVShape *shape)
Definition:
CaloShapes.h:13
CaloShapes::CaloShapes
CaloShapes()
Definition:
CaloShapes.h:11
hcalRecHitTable_cff.detId
detId
Definition:
hcalRecHitTable_cff.py:12
DetId
Definition:
DetId.h:17
CaloShapes::theShape
const CaloVShape * theShape
Definition:
CaloShapes.h:18
DetId.h
Generated for CMSSW Reference Manual by
1.8.14