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)
 
virtual const CaloSimParameterssimParameters (const DetId &id) const
 
virtual ~CastorSimParameterMap ()
 
- 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 10 of file CastorSimParameterMap.cc.

10  :
11  theCastorParameters(1., 4.3333,
12  2.09 , -4.,
13  false)
14 {
15 }
CastorSimParameters theCastorParameters
CastorSimParameterMap::CastorSimParameterMap ( const edm::ParameterSet p)

configurable parameters

Definition at line 23 of file CastorSimParameterMap.cc.

25 {
26 }
T getParameter(std::string const &) const
CastorSimParameters theCastorParameters
virtual CastorSimParameterMap::~CastorSimParameterMap ( )
inlinevirtual

Definition at line 17 of file CastorSimParameterMap.h.

References simParameters().

17 {}

Member Function Documentation

CastorSimParameters CastorSimParameterMap::castorParameters ( ) const
inline

accessors

Definition at line 23 of file CastorSimParameterMap.h.

References setDbService(), and theCastorParameters.

Referenced by CastorAmplifier::amplify().

24  {
25  return theCastorParameters;
26  }
CastorSimParameters theCastorParameters
void CastorSimParameterMap::setDbService ( const CastorDbService service)

Definition at line 42 of file CastorSimParameterMap.cc.

References CastorSimParameters::setDbService(), and theCastorParameters.

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

43 {
45 }
void setDbService(const CastorDbService *service)
CastorSimParameters theCastorParameters
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.

Referenced by ~CastorSimParameterMap().

29 {
30  HcalGenericDetId genericId(detId);
31 
32  // if(detId.det()==DetId::Calo && detId.subdetId()==HcalCastorDetId::SubdetectorId)
33 
34  if(genericId.isHcalCastorDetId())
35  return theCastorParameters;
36 
37  else
38  throw cms::Exception("not HcalCastorDetId");
39 
40 }
CastorSimParameters theCastorParameters

Member Data Documentation

CastorSimParameters CastorSimParameterMap::theCastorParameters
private

Definition at line 33 of file CastorSimParameterMap.h.

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