src
SimCalorimetry
HcalSimAlgos
interface
HcalCoderFactory.h
Go to the documentation of this file.
1
#ifndef HcalSimAlgos_HcalCoderFactory_h
2
#define HcalSimAlgos_HcalCoderFactory_h
3
4
#include <memory>
5
#include "
CalibFormats/HcalObjects/interface/HcalDbService.h
"
6
#include "
CalibFormats/HcalObjects/interface/HcalCoder.h
"
7
8
class
HcalCoderFactory
{
9
public
:
10
enum
CoderType
{
DB
,
NOMINAL
};
11
12
HcalCoderFactory
(
CoderType
coderType);
13
14
void
setDbService
(
const
HcalDbService
*
service
) {
theDbService
=
service
; }
15
17
std::unique_ptr<HcalCoder>
coder
(
const
DetId
& detId)
const
;
18
19
private
:
20
CoderType
theCoderType
;
21
const
HcalDbService
*
theDbService
;
22
};
23
24
#endif
HcalCoderFactory::theDbService
const HcalDbService * theDbService
Definition:
HcalCoderFactory.h:21
HcalCoderFactory::CoderType
CoderType
Definition:
HcalCoderFactory.h:10
HcalDbService
Definition:
HcalDbService.h:23
HcalCoderFactory::HcalCoderFactory
HcalCoderFactory(CoderType coderType)
Definition:
HcalCoderFactory.cc:5
service
Definition:
service.py:1
DetId
Definition:
DetId.h:17
HcalCoderFactory::setDbService
void setDbService(const HcalDbService *service)
Definition:
HcalCoderFactory.h:14
HcalCoderFactory::NOMINAL
Definition:
HcalCoderFactory.h:10
HcalCoderFactory::DB
Definition:
HcalCoderFactory.h:10
HcalCoderFactory
Definition:
HcalCoderFactory.h:8
HcalCoderFactory::theCoderType
CoderType theCoderType
Definition:
HcalCoderFactory.h:20
HcalCoder.h
HcalCoderFactory::coder
std::unique_ptr< HcalCoder > coder(const DetId &detId) const
user gets control of the pointer
Definition:
HcalCoderFactory.cc:7
HcalDbService.h
Generated for CMSSW Reference Manual by
1.8.14