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