#include <CastorCoderFactory.h>
Public Types | |
enum | CoderType { DB, NOMINAL } |
Public Member Functions | |
CastorCoderFactory (CoderType coderType) | |
std::unique_ptr< CastorCoder > | coder (const DetId &detId) const |
user gets control of the pointer More... | |
void | setDbService (const CastorDbService *service) |
Private Attributes | |
CoderType | theCoderType |
const CastorDbService * | theDbService |
Definition at line 8 of file CastorCoderFactory.h.
Enumerator | |
---|---|
DB | |
NOMINAL |
Definition at line 11 of file CastorCoderFactory.h.
CastorCoderFactory::CastorCoderFactory | ( | CoderType | coderType | ) |
Definition at line 7 of file CastorCoderFactory.cc.
std::unique_ptr< CastorCoder > CastorCoderFactory::coder | ( | const DetId & | detId | ) | const |
user gets control of the pointer
Definition at line 14 of file CastorCoderFactory.cc.
References DB, CastorDbService::getCastorCoder(), CastorDbService::getCastorShape(), mps_fire::result, theCoderType, and theDbService.
Referenced by CastorElectronicsSim::convert(), and setDbService().
|
inline |
Definition at line 15 of file CastorCoderFactory.h.
References coder(), and theDbService.
Referenced by CastorDigiProducer::initializeEvent().
|
private |
Definition at line 22 of file CastorCoderFactory.h.
Referenced by coder().
|
private |
Definition at line 23 of file CastorCoderFactory.h.
Referenced by coder(), and setDbService().