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