CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
EcalDigiProducer_Ph2.cc File Reference
#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")
 

Function Documentation

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().

146  {
147  assert(0 == row || 1. >= ebCorMatG10Ph2[row]);
148  assert(0 == row || 1. >= ebCorMatG01Ph2[row]);
149 
150  for (unsigned int column(0); column <= row; ++column) {
151  const unsigned int index(row - column);
152  ebMatrix[0](row, column) = ebCorMatG10Ph2[index];
153  ebMatrix[1](row, column) = ebCorMatG01Ph2[index];
154  }
155  }
EcalCorrMatrix_Ph2 ebMatrix[2]
assert(be >=bs)
const std::vector< double > ebCorMatG01Ph2
const std::vector< double > ebCorMatG10Ph2
if ( cosmicsPhase  )

Definition at line 134 of file EcalDigiProducer_Ph2.cc.

134  {
135  m_EBResponse->setPhaseShift(1. + cosmicsShift);
136  }
const double cosmicsShift
if ( m_apdSeparateDigi  )

Definition at line 162 of file EcalDigiProducer_Ph2.cc.

References applyConstantTerm, and rmsConstantTerm.

162  {
163  m_APDCoder = std::make_unique<EcalLiteDTUCoder>(false, m_PreMix1, m_EBCorrNoise[0].get(), m_EBCorrNoise[1].get());
164 
165  m_APDElectronicsSim = std::make_unique<EcalElectronicsSim_Ph2>(
166  m_ParameterMap.get(), m_APDCoder.get(), applyConstantTerm, rmsConstantTerm);
167 
168  m_APDDigitizer = std::make_unique<EBDigitizer_Ph2>(m_APDResponse.get(), m_APDElectronicsSim.get(), false);
169  }
const bool applyConstantTerm
const double rmsConstantTerm
m_EBCorrNoise[0]

Variable Documentation

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
Initial value:
=
std::make_unique<EcalElectronicsSim_Ph2>(m_ParameterMap.get(), m_Coder.get(), applyConstantTerm, rmsConstantTerm)
const bool applyConstantTerm
const double rmsConstantTerm

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().