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 }
funct::false
false
Definition: Factorize.h:29
HcalGenericDetId
Definition: HcalGenericDetId.h:15
CastorSimParameterMap.h
edm
HLT enums.
Definition: AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CastorSimParameterMap::simParameters
const CaloSimParameters & simParameters(const DetId &id) const override
Definition: CastorSimParameterMap.cc:20
DetId
Definition: DetId.h:17
CastorSimParameterMap::theCastorParameters
CastorSimParameters theCastorParameters
Definition: CastorSimParameterMap.h:27
CaloSimParameters
Main class for Parameters in different subdetectors.
Definition: CaloSimParameters.h:14
CastorSimParameters::setDbService
void setDbService(const CastorDbService *service)
Definition: CastorSimParameters.h:19
CastorSimParameterMap::setDbService
void setDbService(const CastorDbService *service)
Definition: CastorSimParameterMap.cc:33
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
HcalDetId.h
CastorSimParameterMap::CastorSimParameterMap
CastorSimParameterMap()
hardcoded default parameters
Definition: CastorSimParameterMap.cc:9
CastorDbService
Definition: CastorDbService.h:28
HcalSubdetector.h
HcalGenericDetId::isHcalCastorDetId
bool isHcalCastorDetId() const
Definition: HcalGenericDetId.cc:84
DetId.h
Exception
Definition: hltDiff.cc:246
HcalCastorDetId.h