#include "FWCore/Framework/interface/Event.h"
#include "SimCalorimetry/EcalSimProducers/interface/EcalDigiProducer_Ph2.h"
#include "SimCalorimetry/EcalSimAlgos/interface/EBHitResponse.h"
#include "SimCalorimetry/CaloSimAlgos/interface/CaloHitResponse.h"
#include "SimCalorimetry/EcalSimAlgos/interface/EcalSimParameterMap.h"
#include "SimCalorimetry/EcalSimAlgos/interface/APDSimParameters.h"
#include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
#include "SimCalorimetry/EcalSimAlgos/interface/EcalLiteDTUCoder.h"
#include "Geometry/CaloGeometry/interface/CaloGeometry.h"
#include "CalibFormats/CaloObjects/interface/CaloSamples.h"
#include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "FWCore/Framework/interface/ProducerBase.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/Utilities/interface/RandomNumberGenerator.h"
#include "FWCore/Utilities/interface/StreamID.h"
#include "SimGeneral/MixingModule/interface/PileUpEventPrincipal.h"
#include "SimDataFormats/CaloHit/interface/PCaloHit.h"
#include "Geometry/Records/interface/CaloGeometryRecord.h"
#include "CondFormats/EcalObjects/interface/EcalLiteDTUPedestals.h"
#include "CondFormats/DataRecord/interface/EcalLiteDTUPedestalsRcd.h"
#include "CondFormats/EcalObjects/interface/EcalIntercalibConstantsMC.h"
#include "CondFormats/DataRecord/interface/EcalIntercalibConstantsMCRcd.h"
#include "CalibCalorimetry/EcalLaserCorrection/interface/EcalLaserDbService.h"
#include "CalibCalorimetry/EcalLaserCorrection/interface/EcalLaserDbRecord.h"
#include "CondFormats/EcalObjects/interface/EcalADCToGeVConstant.h"
#include "CondFormats/DataRecord/interface/EcalADCToGeVConstantRcd.h"
Go to the source code of this file.
Functions | |
assert (ebCorMatG10Ph2.size()==m_readoutFrameSize) | |
assert (ebCorMatG01Ph2.size()==m_readoutFrameSize) | |
assert (errorCorrelation > std::abs(ebCorMatG10Ph2[0]-1.0)) | |
assert (errorCorrelation > std::abs(ebCorMatG01Ph2[0]-1.0)) | |
for (unsigned int row(0);row!=m_readoutFrameSize;++row) | |
if (cosmicsPhase) | |
if (m_apdSeparateDigi) | |
Variables | |
const bool | addNoise = params.getParameter<bool>("doENoise") |
agcToken_ = iC.esConsumes<EcalADCToGeVConstant, EcalADCToGeVConstantRcd>() | |
const bool | applyConstantTerm = params.getParameter<bool>("applyConstantTerm") |
const bool | cosmicsPhase = params.getParameter<bool>("cosmicsPhase") |
const double | cosmicsShift = params.getParameter<double>("cosmicsShift") |
const std::vector< double > | ebCorMatG01Ph2 = params.getParameter<std::vector<double>>("EBCorrNoiseMatrixG01Ph2") |
const std::vector< double > | ebCorMatG10Ph2 = params.getParameter<std::vector<double>>("EBCorrNoiseMatrixG10Ph2") |
EcalCorrMatrix_Ph2 | ebMatrix [2] |
const double | errorCorrelation = 1.e-7 |
geom_token_ = iC.esConsumes<CaloGeometry, CaloGeometryRecord>() | |
icalToken_ = iC.esConsumes<EcalIntercalibConstants, EcalIntercalibConstantsRcd>() | |
laserToken_ = iC.esConsumes<EcalLaserDbService, EcalLaserDbRecord>() | |
m_BarrelDigitizer = std::make_unique<EBDigitizer_Ph2>(m_EBResponse.get(), m_ElectronicsSim.get(), addNoise) | |
m_Coder = std::make_unique<EcalLiteDTUCoder>(addNoise, m_PreMix1, m_EBCorrNoise[0].get(), m_EBCorrNoise[1].get()) | |
m_EBCorrNoise [0] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix_Ph2>>(ebMatrix[0]) | |
m_ElectronicsSim | |
pedestalToken_ = iC.esConsumes() | |
const double | rmsConstantTerm = params.getParameter<double>("ConstantTerm") |
assert | ( | ebCorMatG10Ph2. | size() = =m_readoutFrameSize | ) |
assert | ( | ebCorMatG01Ph2. | size() = =m_readoutFrameSize | ) |
assert | ( | errorCorrelation | , |
std:: | absebCorMatG10Ph2[0]-1.0 | ||
) |
assert | ( | errorCorrelation | , |
std:: | absebCorMatG01Ph2[0]-1.0 | ||
) |
for | ( | unsigned int row(0);row! | = m_readoutFrameSize; ++row | ) |
Definition at line 146 of file EcalDigiProducer_Ph2.cc.
References cms::cuda::assert().
if | ( | cosmicsPhase | ) |
Definition at line 134 of file EcalDigiProducer_Ph2.cc.
if | ( | m_apdSeparateDigi | ) |
Definition at line 162 of file EcalDigiProducer_Ph2.cc.
References applyConstantTerm, and rmsConstantTerm.
const bool addNoise = params.getParameter<bool>("doENoise") |
Definition at line 129 of file EcalDigiProducer_Ph2.cc.
agcToken_ = iC.esConsumes<EcalADCToGeVConstant, EcalADCToGeVConstantRcd>() |
Definition at line 119 of file EcalDigiProducer_Ph2.cc.
const bool applyConstantTerm = params.getParameter<bool>("applyConstantTerm") |
Definition at line 126 of file EcalDigiProducer_Ph2.cc.
Referenced by if().
const bool cosmicsPhase = params.getParameter<bool>("cosmicsPhase") |
Definition at line 130 of file EcalDigiProducer_Ph2.cc.
const double cosmicsShift = params.getParameter<double>("cosmicsShift") |
Definition at line 131 of file EcalDigiProducer_Ph2.cc.
const std::vector<double> ebCorMatG01Ph2 = params.getParameter<std::vector<double>>("EBCorrNoiseMatrixG01Ph2") |
Definition at line 124 of file EcalDigiProducer_Ph2.cc.
const std::vector<double> ebCorMatG10Ph2 = params.getParameter<std::vector<double>>("EBCorrNoiseMatrixG10Ph2") |
Definition at line 123 of file EcalDigiProducer_Ph2.cc.
EcalCorrMatrix_Ph2 ebMatrix[2] |
Definition at line 138 of file EcalDigiProducer_Ph2.cc.
const double errorCorrelation = 1.e-7 |
Definition at line 139 of file EcalDigiProducer_Ph2.cc.
geom_token_ = iC.esConsumes<CaloGeometry, CaloGeometryRecord>() |
Definition at line 121 of file EcalDigiProducer_Ph2.cc.
icalToken_ = iC.esConsumes<EcalIntercalibConstants, EcalIntercalibConstantsRcd>() |
Definition at line 120 of file EcalDigiProducer_Ph2.cc.
laserToken_ = iC.esConsumes<EcalLaserDbService, EcalLaserDbRecord>() |
Definition at line 118 of file EcalDigiProducer_Ph2.cc.
m_BarrelDigitizer = std::make_unique<EBDigitizer_Ph2>(m_EBResponse.get(), m_ElectronicsSim.get(), addNoise) |
Definition at line 171 of file EcalDigiProducer_Ph2.cc.
m_Coder = std::make_unique<EcalLiteDTUCoder>(addNoise, m_PreMix1, m_EBCorrNoise[0].get(), m_EBCorrNoise[1].get()) |
Definition at line 158 of file EcalDigiProducer_Ph2.cc.
m_EBCorrNoise[1] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix_Ph2>>(ebMatrix[0]) |
Definition at line 156 of file EcalDigiProducer_Ph2.cc.
m_ElectronicsSim |
Definition at line 159 of file EcalDigiProducer_Ph2.cc.
pedestalToken_ = iC.esConsumes() |
Definition at line 117 of file EcalDigiProducer_Ph2.cc.
const double rmsConstantTerm = params.getParameter<double>("ConstantTerm") |
Definition at line 127 of file EcalDigiProducer_Ph2.cc.
Referenced by if().