#include <DataMixingSiPixelMCDigiWorker.h>
Classes | |
struct | PixelEfficiencies |
Public Member Functions | |
void | addSiPixelPileups (const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *) |
void | addSiPixelSignals (const edm::Event &e) |
DataMixingSiPixelMCDigiWorker () | |
DataMixingSiPixelMCDigiWorker (const edm::ParameterSet &ps, edm::ConsumesCollector &&iC) | |
void | init_DynIneffDB (const edm::EventSetup &, const unsigned int &) |
virtual void | initializeEvent (edm::Event const &e, edm::EventSetup const &c) |
void | putSiPixel (edm::Event &e, edm::EventSetup const &iSetup, std::vector< PileupSummaryInfo > &ps, int &bs) |
void | setPileupInfo (const std::vector< PileupSummaryInfo > &ps, const int &bs) |
virtual | ~DataMixingSiPixelMCDigiWorker () |
Private Types | |
typedef int | Amplitude |
typedef std::multimap< int, PixelDigi > | OneDetectorMap |
typedef std::map< uint32_t, OneDetectorMap > | SiGlobalIndex |
typedef signal_map_type::const_iterator | signal_map_const_iterator |
typedef signal_map_type::iterator | signal_map_iterator |
typedef std::map< int, Amplitude, std::less< int > > | signal_map_type |
typedef std::map< uint32_t, signal_map_type > | signalMaps |
Private Attributes | |
signalMaps | _signal |
const bool | AddPixelInefficiency |
bool | FirstCall_ |
const std::string | geometryType_ |
std::string | label_ |
const int | NumberOfBarrelLayers |
const int | NumberOfEndcapDisks |
edm::ESHandle< TrackerGeometry > | pDD |
edm::InputTag | pixeldigi_collectionPile_ |
edm::InputTag | pixeldigi_collectionSig_ |
std::string | PixelDigiCollectionDM_ |
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > | PixelDigiPToken_ |
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > | PixelDigiToken_ |
PixelEfficiencies | pixelEff_ |
SiGlobalIndex | SiHitStorage_ |
edm::ESHandle< SiPixelDynamicInefficiency > | SiPixelDynamicInefficiency_ |
Definition at line 53 of file DataMixingSiPixelMCDigiWorker.h.
|
private |
Definition at line 132 of file DataMixingSiPixelMCDigiWorker.h.
|
private |
Definition at line 141 of file DataMixingSiPixelMCDigiWorker.h.
|
private |
Definition at line 142 of file DataMixingSiPixelMCDigiWorker.h.
|
private |
Definition at line 135 of file DataMixingSiPixelMCDigiWorker.h.
|
private |
Definition at line 134 of file DataMixingSiPixelMCDigiWorker.h.
|
private |
Definition at line 133 of file DataMixingSiPixelMCDigiWorker.h.
|
private |
Definition at line 136 of file DataMixingSiPixelMCDigiWorker.h.
edm::DataMixingSiPixelMCDigiWorker::DataMixingSiPixelMCDigiWorker | ( | ) |
|
explicit |
standard constructor
Definition at line 42 of file DataMixingSiPixelMCDigiWorker.cc.
References FirstCall_, edm::ParameterSet::getParameter(), pixeldigi_collectionPile_, pixeldigi_collectionSig_, PixelDigiCollectionDM_, PixelDigiPToken_, PixelDigiToken_, SiHitStorage_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
void DataMixingSiPixelMCDigiWorker::addSiPixelPileups | ( | const int | bcr, |
const edm::EventPrincipal * | ep, | ||
unsigned int | EventId, | ||
ModuleCallingContext const * | mcc | ||
) |
Definition at line 318 of file DataMixingSiPixelMCDigiWorker.cc.
References begin, edm::DetSetVector< T >::begin(), end, edm::DetSetVector< T >::end(), edm::EventPrincipal::id(), input, LogDebug, pixeldigi_collectionPile_, and SiHitStorage_.
Referenced by edm::DataMixingModule::pileWorker().
void DataMixingSiPixelMCDigiWorker::addSiPixelSignals | ( | const edm::Event & | e | ) |
Definition at line 282 of file DataMixingSiPixelMCDigiWorker.cc.
References begin, end, edm::Event::getByToken(), edm::EventBase::id(), input, LogDebug, PixelDigiToken_, and SiHitStorage_.
Referenced by edm::DataMixingModule::addSignals().
void DataMixingSiPixelMCDigiWorker::init_DynIneffDB | ( | const edm::EventSetup & | es, |
const unsigned int & | bunchspace | ||
) |
Definition at line 217 of file DataMixingSiPixelMCDigiWorker.cc.
References AddPixelInefficiency, edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::FromConfig, edm::EventSetup::get(), edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::init_from_db(), pDD, pixelEff_, and SiPixelDynamicInefficiency_.
Referenced by putSiPixel().
|
virtual |
Definition at line 83 of file DataMixingSiPixelMCDigiWorker.cc.
References geometryType_, edm::EventSetup::get(), and pDD.
Referenced by edm::DataMixingModule::initializeEvent().
void DataMixingSiPixelMCDigiWorker::putSiPixel | ( | edm::Event & | e, |
edm::EventSetup const & | iSetup, | ||
std::vector< PileupSummaryInfo > & | ps, | ||
int & | bs | ||
) |
Definition at line 386 of file DataMixingSiPixelMCDigiWorker.cc.
References _signal, ecalMGPA::adc(), officialStyle::chan, PixelDigi::channelToPixel(), edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::ChipGeomFactors, cuy::col, edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::ColGeomFactors, mps_check::columns, TrackerGeometry::detUnits(), FirstCall_, edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::FPixIndex, edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::FromConfig, GeomDet::geographicalId(), edm::EventSetup::get(), edm::RandomNumberGenerator::getEngine(), mps_fire::i, init_DynIneffDB(), edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::iPU, PVValHelper::ladder, TrackerTopology::layer(), LogDebug, python.rootplot.argparse::module, eostools::move(), PixelTopology::ncolumns(), PixelTopology::nrows(), NumberOfBarrelLayers, GeomDetEnumerators::P1PXB, GeomDetEnumerators::P1PXEC, GeomDetEnumerators::P2OTB, GeomDetEnumerators::P2OTEC, GeomDetEnumerators::P2PXB, GeomDetEnumerators::P2PXEC, pDD, GeomDetEnumerators::PixelBarrel, PixelDigiCollectionDM_, pixelEff_, GeomDetEnumerators::PixelEndcap, edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::PixelGeomFactors, edm::ESHandle< T >::product(), edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::pu_scale, edm::DetSet< T >::push_back(), edm::Event::put(), TrackerTopology::pxbLadder(), TrackerTopology::pxbModule(), TrackerTopology::pxfModule(), TrackerTopology::pxfPanel(), rand(), DetId::rawId(), setPileupInfo(), SiHitStorage_, PixelGeomDetUnit::specificTopology(), edm::Event::streamID(), GeomDet::subDetector(), edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::theInnerEfficiency_FPix, edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::theLadderEfficiency_BPix, edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::theModuleEfficiency_BPix, edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::theOuterEfficiency_FPix, edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::thePixelChipEfficiency, edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::thePixelColEfficiency, and edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::thePixelEfficiency.
Referenced by edm::DataMixingModule::put().
void DataMixingSiPixelMCDigiWorker::setPileupInfo | ( | const std::vector< PileupSummaryInfo > & | ps, |
const int & | bs | ||
) |
Definition at line 660 of file DataMixingSiPixelMCDigiWorker.cc.
References mps_fire::i, gen::n, AlCaHLTBitMon_ParallelJobs::p, pixelEff_, edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::pu_scale, edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::theInstLumiScaleFactor, and edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::thePUEfficiency.
Referenced by putSiPixel().
|
private |
Definition at line 139 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by putSiPixel().
|
private |
Definition at line 159 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by init_DynIneffDB().
|
private |
Definition at line 163 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by DataMixingSiPixelMCDigiWorker(), and putSiPixel().
|
private |
Definition at line 150 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by initializeEvent().
|
private |
Definition at line 149 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by SequenceTypes.DummyModule::__repr__(), Mixins._Labelable::_findDependencies(), and Mixins._Labelable::setLabel().
|
private |
Definition at line 153 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::PixelEfficiencies(), and putSiPixel().
|
private |
Definition at line 154 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by edm::DataMixingSiPixelMCDigiWorker::PixelEfficiencies::PixelEfficiencies().
|
private |
Definition at line 123 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by init_DynIneffDB(), initializeEvent(), and putSiPixel().
|
private |
Definition at line 117 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by addSiPixelPileups(), and DataMixingSiPixelMCDigiWorker().
|
private |
Definition at line 116 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by DataMixingSiPixelMCDigiWorker().
|
private |
Definition at line 118 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by DataMixingSiPixelMCDigiWorker(), and putSiPixel().
|
private |
Definition at line 121 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by DataMixingSiPixelMCDigiWorker().
|
private |
Definition at line 120 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by addSiPixelSignals(), and DataMixingSiPixelMCDigiWorker().
|
private |
Definition at line 161 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by init_DynIneffDB(), putSiPixel(), and setPileupInfo().
|
private |
Definition at line 144 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by addSiPixelPileups(), addSiPixelSignals(), DataMixingSiPixelMCDigiWorker(), and putSiPixel().
|
private |
Definition at line 126 of file DataMixingSiPixelMCDigiWorker.h.
Referenced by init_DynIneffDB().