Main Page
Namespaces
Classes
Package Documentation
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
{
10
public
:
11
enum
CoderType
{
DB
,
NOMINAL
};
12
13
HcalCoderFactory
(
CoderType
coderType);
14
15
void
setDbService
(
const
HcalDbService
*
service
) {
theDbService
= service;}
16
18
std::unique_ptr<HcalCoder>
coder
(
const
DetId
& detId)
const
;
19
20
private
:
21
22
CoderType
theCoderType
;
23
const
HcalDbService
*
theDbService
;
24
};
25
26
#endif
27
HcalCoderFactory::theDbService
const HcalDbService * theDbService
Definition:
HcalCoderFactory.h:23
HcalCoderFactory::CoderType
CoderType
Definition:
HcalCoderFactory.h:11
HcalDbService
Definition:
HcalDbService.h:27
HcalCoderFactory::HcalCoderFactory
HcalCoderFactory(CoderType coderType)
Definition:
HcalCoderFactory.cc:7
service
Definition:
service.py:1
DetId
Definition:
DetId.h:18
HcalCoderFactory::setDbService
void setDbService(const HcalDbService *service)
Definition:
HcalCoderFactory.h:15
HcalCoderFactory::NOMINAL
Definition:
HcalCoderFactory.h:11
HcalCoderFactory::DB
Definition:
HcalCoderFactory.h:11
HcalCoderFactory
Definition:
HcalCoderFactory.h:8
HcalCoderFactory::theCoderType
CoderType theCoderType
Definition:
HcalCoderFactory.h:22
HcalCoderFactory::coder
std::unique_ptr< HcalCoder > coder(const DetId &detId) const
user gets control of the pointer
Definition:
HcalCoderFactory.cc:11
HcalCoder.h
HcalDbService.h
Generated for CMSSW Reference Manual by
1.8.11