SimCalorimetry
CastorSim
src
CastorSimParameterMap.cc
Go to the documentation of this file.
1
#include "
DataFormats/DetId/interface/DetId.h
"
2
#include "
DataFormats/HcalDetId/interface/HcalCastorDetId.h
"
3
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
4
#include "
DataFormats/HcalDetId/interface/HcalSubdetector.h
"
5
#include "
SimCalorimetry/CastorSim/src/CastorSimParameterMap.h
"
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
17
CastorSimParameterMap::CastorSimParameterMap
(
const
edm::ParameterSet
&
p
)
18
: theCastorParameters(
p
.getParameter<
edm
::
ParameterSet
>(
"castor"
)) {}
19
20
const
CaloSimParameters
&
CastorSimParameterMap::simParameters
(
const
DetId
&detId)
const
{
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
33
void
CastorSimParameterMap::setDbService
(
const
CastorDbService
*dbService) {
34
theCastorParameters
.
setDbService
(dbService);
35
}
funct::false
false
Definition:
Factorize.h:34
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:36
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
Generated for CMSSW Reference Manual by
1.8.16