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

CastorSimParameterMap::CastorSimParameterMap ( )

hardcoded default parameters

Definition at line 9 of file CastorSimParameterMap.cc.

9 : theCastorParameters(1., 4.3333, 2.09, -4., false) {}

◆ CastorSimParameterMap() [2/2]

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

configurable parameters

Definition at line 17 of file CastorSimParameterMap.cc.

18  : theCastorParameters(p.getParameter<edm::ParameterSet>("castor")) {}

◆ ~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.

22 { return theCastorParameters; }

References theCastorParameters.

Referenced by CastorAmplifier::amplify().

◆ setDbService()

void CastorSimParameterMap::setDbService ( const CastorDbService service)

◆ simParameters()

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

Implements CaloVSimParameterMap.

Definition at line 20 of file CastorSimParameterMap.cc.

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 }

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

Member Data Documentation

◆ theCastorParameters

CastorSimParameters CastorSimParameterMap::theCastorParameters
private

Definition at line 27 of file CastorSimParameterMap.h.

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

HcalGenericDetId
Definition: HcalGenericDetId.h:15
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CastorSimParameterMap::theCastorParameters
CastorSimParameters theCastorParameters
Definition: CastorSimParameterMap.h:27
CastorSimParameters::setDbService
void setDbService(const CastorDbService *service)
Definition: CastorSimParameters.h:19
edm::ParameterSet
Definition: ParameterSet.h:36
Exception
Definition: hltDiff.cc:246