Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimCalorimetry
CastorSim
src
CastorSimParameterMap.cc
Go to the documentation of this file.
1
#include "
SimCalorimetry/CastorSim/src/CastorSimParameterMap.h
"
2
#include "
DataFormats/DetId/interface/DetId.h
"
3
#include "
DataFormats/HcalDetId/interface/HcalSubdetector.h
"
4
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
5
#include "
DataFormats/HcalDetId/interface/HcalCastorDetId.h
"
6
#include <iostream>
7
8
9
//some arbitrary numbers for now
10
CastorSimParameterMap::CastorSimParameterMap
() :
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
23
CastorSimParameterMap::CastorSimParameterMap
(
const
edm::ParameterSet
&
p
)
24
: theCastorParameters( p.getParameter<edm::
ParameterSet
>(
"castor"
) )
25
{
26
}
27
28
const
CaloSimParameters
&
CastorSimParameterMap::simParameters
(
const
DetId
& detId)
const
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
42
void
CastorSimParameterMap::setDbService
(
const
CastorDbService
* dbService)
43
{
44
theCastorParameters
.
setDbService
(dbService);
45
}
46
CastorSimParameters::setDbService
void setDbService(const CastorDbService *service)
Definition:
CastorSimParameters.h:26
Exception
Definition:
hltDiff.cc:290
ParameterSet
Definition:
Functions.h:16
HcalSubdetector.h
CastorSimParameterMap::setDbService
void setDbService(const CastorDbService *service)
Definition:
CastorSimParameterMap.cc:42
CastorSimParameterMap::theCastorParameters
CastorSimParameters theCastorParameters
Definition:
CastorSimParameterMap.h:33
CaloSimParameters
Main class for Parameters in different subdetectors.
Definition:
CaloSimParameters.h:14
CastorSimParameterMap::CastorSimParameterMap
CastorSimParameterMap()
hardcoded default parameters
Definition:
CastorSimParameterMap.cc:10
HcalDetId.h
CastorSimParameterMap.h
HcalGenericDetId
Definition:
HcalGenericDetId.h:15
DetId
Definition:
DetId.h:18
HcalCastorDetId.h
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:152
CastorDbService
Definition:
CastorDbService.h:28
edm::ParameterSet
Definition:
ParameterSet.h:36
CastorSimParameterMap::simParameters
virtual const CaloSimParameters & simParameters(const DetId &id) const
Definition:
CastorSimParameterMap.cc:28
HcalGenericDetId::isHcalCastorDetId
bool isHcalCastorDetId() const
Definition:
HcalGenericDetId.cc:69
edm::false
volatile std::atomic< bool > shutdown_flag false
Definition:
UnixSignalHandlers.cc:22
DetId.h
Generated for CMSSW Reference Manual by
1.8.5