CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CastorSimParameterMap Class Reference

#include <CastorSimParameterMap.h>

Inheritance diagram for CastorSimParameterMap:
CaloVSimParameterMap

Public Member Functions

CastorSimParameters castorParameters () const
 accessors More...
 
 CastorSimParameterMap ()
 hardcoded default parameters More...
 
 CastorSimParameterMap (const edm::ParameterSet &p)
 configurable parameters More...
 
void setDbService (const CastorDbService *service)
 
const CaloSimParameterssimParameters (const DetId &id) const override
 
 ~CastorSimParameterMap () override
 
- Public Member Functions inherited from CaloVSimParameterMap
virtual ~CaloVSimParameterMap ()=default
 

Private Attributes

CastorSimParameters theCastorParameters
 

Detailed Description

Definition at line 9 of file CastorSimParameterMap.h.

Constructor & Destructor Documentation

CastorSimParameterMap::CastorSimParameterMap ( )

hardcoded default parameters

Definition at line 9 of file CastorSimParameterMap.cc.

9 : theCastorParameters(1., 4.3333, 2.09, -4., false) {}
CastorSimParameters theCastorParameters
CastorSimParameterMap::CastorSimParameterMap ( const edm::ParameterSet p)

configurable parameters

Definition at line 17 of file CastorSimParameterMap.cc.

T getParameter(std::string const &) const
CastorSimParameters theCastorParameters
CastorSimParameterMap::~CastorSimParameterMap ( )
inlineoverride

Definition at line 16 of file CastorSimParameterMap.h.

References simParameters().

16 {}

Member Function Documentation

CastorSimParameters CastorSimParameterMap::castorParameters ( ) const
inline

accessors

Definition at line 22 of file CastorSimParameterMap.h.

References setDbService(), and theCastorParameters.

Referenced by CastorAmplifier::amplify().

22 { return theCastorParameters; }
CastorSimParameters theCastorParameters
void CastorSimParameterMap::setDbService ( const CastorDbService service)

Definition at line 33 of file CastorSimParameterMap.cc.

References CastorSimParameters::setDbService(), and theCastorParameters.

Referenced by castorParameters(), and CastorDigiProducer::initializeEvent().

33  {
35 }
void setDbService(const CastorDbService *service)
CastorSimParameters theCastorParameters
const CaloSimParameters & CastorSimParameterMap::simParameters ( const DetId id) const
overridevirtual

Implements CaloVSimParameterMap.

Definition at line 20 of file CastorSimParameterMap.cc.

References Exception, HcalGenericDetId::isHcalCastorDetId(), and theCastorParameters.

Referenced by ~CastorSimParameterMap().

20  {
21  HcalGenericDetId genericId(detId);
22 
23  // if(detId.det()==DetId::Calo &&
24  // detId.subdetId()==HcalCastorDetId::SubdetectorId)
25 
26  if (genericId.isHcalCastorDetId())
27  return theCastorParameters;
28 
29  else
30  throw cms::Exception("not HcalCastorDetId");
31 }
CastorSimParameters theCastorParameters

Member Data Documentation

CastorSimParameters CastorSimParameterMap::theCastorParameters
private

Definition at line 27 of file CastorSimParameterMap.h.

Referenced by castorParameters(), setDbService(), and simParameters().