CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorSimParameterMap.cc
Go to the documentation of this file.
6 #include <iostream>
7 
8 
9 //some arbitrary numbers for now
11  theCastorParameters(1., 4.3333,
12  2.09 , -4.,
13  false)
14 {
15 }
16 /*
17  CaloSimParameters(double photomultiplierGain, double amplifierGain,
18  double samplingFactor, double timePhase,
19  int readoutFrameSize, int binOfMaximum,
20  bool doPhotostatistics);
21 */
22 
24 : theCastorParameters( p.getParameter<edm::ParameterSet>("castor") )
25 {
26 }
27 
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 }
41 
43 {
45 }
46 
void setDbService(const CastorDbService *service)
void setDbService(const CastorDbService *service)
CastorSimParameters theCastorParameters
Main class for Parameters in different subdetectors.
CastorSimParameterMap()
hardcoded default parameters
Definition: DetId.h:20
virtual const CaloSimParameters & simParameters(const DetId &id) const
bool isHcalCastorDetId() const