Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
,
UPGRADE
};
12
13
HcalCoderFactory
(
CoderType
coderType);
14
15
void
setDbService
(
const
HcalDbService
* service) {
theDbService
= service;}
16
18
std::auto_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
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::UPGRADE
Definition:
HcalCoderFactory.h:11
HcalCoderFactory::theCoderType
CoderType theCoderType
Definition:
HcalCoderFactory.h:22
HcalCoder.h
HcalDbService.h
HcalCoderFactory::coder
std::auto_ptr< HcalCoder > coder(const DetId &detId) const
user gets control of the pointer
Definition:
HcalCoderFactory.cc:11
Generated for CMSSW Reference Manual by
1.8.5