CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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() [1/2]

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() [2/2]

CastorSimParameterMap::CastorSimParameterMap ( const edm::ParameterSet p)

configurable parameters

Definition at line 17 of file CastorSimParameterMap.cc.

◆ ~CastorSimParameterMap()

CastorSimParameterMap::~CastorSimParameterMap ( )
inlineoverride

Definition at line 16 of file CastorSimParameterMap.h.

16 {}

Member Function Documentation

◆ castorParameters()

CastorSimParameters CastorSimParameterMap::castorParameters ( ) const
inline

accessors

Definition at line 22 of file CastorSimParameterMap.h.

References theCastorParameters.

Referenced by CastorAmplifier::amplify().

22 { return theCastorParameters; }
CastorSimParameters theCastorParameters

◆ setDbService()

void CastorSimParameterMap::setDbService ( const CastorDbService service)

Definition at line 33 of file CastorSimParameterMap.cc.

References CastorSimParameters::setDbService(), and theCastorParameters.

Referenced by CastorDigiProducer::initializeEvent().

33  {
35 }
void setDbService(const CastorDbService *service)
CastorSimParameters theCastorParameters

◆ simParameters()

const CaloSimParameters & CastorSimParameterMap::simParameters ( const DetId id) const
overridevirtual

Implements CaloVSimParameterMap.

Definition at line 20 of file CastorSimParameterMap.cc.

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

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

◆ theCastorParameters

CastorSimParameters CastorSimParameterMap::theCastorParameters
private

Definition at line 27 of file CastorSimParameterMap.h.

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