CMS 3D CMS Logo

Public Member Functions | Private Attributes

CastorSimParameterMap Class Reference

#include <CastorSimParameterMap.h>

Inheritance diagram for CastorSimParameterMap:
CaloVSimParameterMap

List of all members.

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 CaloSimParameterssimParameters (const DetId &id) const
virtual ~CastorSimParameterMap ()

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.

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

configurable parameters

Definition at line 23 of file CastorSimParameterMap.cc.

virtual CastorSimParameterMap::~CastorSimParameterMap ( ) [inline, virtual]

Definition at line 17 of file CastorSimParameterMap.h.

{}

Member Function Documentation

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)
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"); 
    
}

Member Data Documentation

Definition at line 33 of file CastorSimParameterMap.h.

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