CMS 3D CMS Logo

CastorSimParameterMap.cc
Go to the documentation of this file.
6 #include <iostream>
7 
8 // some arbitrary numbers for now
9 CastorSimParameterMap::CastorSimParameterMap() : theCastorParameters(1., 4.3333, 2.09, -4., false) {}
10 /*
11  CaloSimParameters(double photomultiplierGain, double amplifierGain,
12  double samplingFactor, double timePhase,
13  int readoutFrameSize, int binOfMaximum,
14  bool doPhotostatistics);
15 */
16 
18  : theCastorParameters(p.getParameter<edm::ParameterSet>("castor")) {}
19 
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 }
32 
35 }
void setDbService(const CastorDbService *service)
const CaloSimParameters & simParameters(const DetId &id) const override
void setDbService(const CastorDbService *service)
CastorSimParameters theCastorParameters
Main class for Parameters in different subdetectors.
CastorSimParameterMap()
hardcoded default parameters
Definition: DetId.h:17
HLT enums.
bool isHcalCastorDetId() const