#include <CastorSimParameterMap.h>
Public Member Functions | |
CastorSimParameters | castorParameters () const |
accessors | |
CastorSimParameterMap () | |
hardcoded default parameters | |
CastorSimParameterMap (const edm::ParameterSet &p) | |
configurable parameters | |
void | setDbService (const CastorDbService *service) |
virtual const CaloSimParameters & | simParameters (const DetId &id) const |
virtual | ~CastorSimParameterMap () |
Private Attributes | |
CastorSimParameters | theCastorParameters |
Definition at line 9 of file CastorSimParameterMap.h.
CastorSimParameterMap::CastorSimParameterMap | ( | ) |
hardcoded default parameters
Definition at line 10 of file CastorSimParameterMap.cc.
: theCastorParameters(1., 4.3333, 2.09 , -4., false) { }
CastorSimParameterMap::CastorSimParameterMap | ( | const edm::ParameterSet & | p | ) |
configurable parameters
Definition at line 23 of file CastorSimParameterMap.cc.
: theCastorParameters( p.getParameter<edm::ParameterSet>("castor") ) { }
virtual CastorSimParameterMap::~CastorSimParameterMap | ( | ) | [inline, virtual] |
Definition at line 17 of file CastorSimParameterMap.h.
{}
CastorSimParameters CastorSimParameterMap::castorParameters | ( | ) | const [inline] |
accessors
Definition at line 23 of file CastorSimParameterMap.h.
References theCastorParameters.
Referenced by CastorAmplifier::amplify().
{ return theCastorParameters; }
void CastorSimParameterMap::setDbService | ( | const CastorDbService * | service | ) |
Definition at line 42 of file CastorSimParameterMap.cc.
References CastorSimParameters::setDbService(), and theCastorParameters.
Referenced by CastorDigiProducer::initializeEvent().
{ theCastorParameters.setDbService(dbService); }
const CaloSimParameters & CastorSimParameterMap::simParameters | ( | const DetId & | id | ) | const [virtual] |
Implements CaloVSimParameterMap.
Definition at line 28 of file CastorSimParameterMap.cc.
References Exception, HcalGenericDetId::isHcalCastorDetId(), and theCastorParameters.
{ HcalGenericDetId genericId(detId); // if(detId.det()==DetId::Calo && detId.subdetId()==HcalCastorDetId::SubdetectorId) if(genericId.isHcalCastorDetId()) return theCastorParameters; else throw cms::Exception("not HcalCastorDetId"); }
Definition at line 33 of file CastorSimParameterMap.h.
Referenced by castorParameters(), setDbService(), and simParameters().