EDProducer to cluster PixelDigis into SiPixelClusters. More...
#include <SiPixelClusterProducer.h>
Public Member Functions | |
void | produce (edm::Event &e, const edm::EventSetup &c) override |
The "Event" entrypoint: gets called by framework for every event. More... | |
template<typename T > | |
void | run (const T &input, const edm::ESHandle< TrackerGeometry > &geom, edmNew::DetSetVector< SiPixelCluster > &output) |
Iterate over DetUnits, and invoke the PixelClusterizer on each. More... | |
void | setupClusterizer (const edm::ParameterSet &conf) |
SiPixelClusterProducer (const edm::ParameterSet &conf) | |
Constructor: set the ParameterSet and defer all thinking to setupClusterizer(). More... | |
~SiPixelClusterProducer () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Attributes | |
std::unique_ptr< PixelClusterizerBase > | clusterizer_ |
const std::string | clusterMode_ |
const int32_t | maxTotalClusters_ |
Optional limit on the total number of clusters. More... | |
std::unique_ptr< SiPixelGainCalibrationServiceBase > | theSiPixelGainCalibration_ |
edm::EDGetTokenT< SiPixelClusterCollectionNew > | tPixelClusters |
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > | tPixelDigi |
edm::EDPutTokenT< SiPixelClusterCollectionNew > | tPutPixelClusters |
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > | trackerGeomToken_ |
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > | trackerTopoToken_ |
const TrackerTopology * | tTopo_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
EDProducer to cluster PixelDigis into SiPixelClusters.
SiPixelClusterProducer is an EDProducer subclass (i.e., a module) which orchestrates clustering of PixelDigis to SiPixelClusters. Consequently, the input is edm::DetSetVector<PixelDigi> and the output is edm::DetSetVector<SiPixelCluster>.
SiPixelClusterProducer invokes one of descendents from PixelClusterizerBase, e.g. PixelThresholdClusterizer (which is the only available option right now). SiPixelClusterProducer loads the PixelDigis, and then iterates over DetIds, invoking PixelClusterizer's clusterizeDetUnit to perform the clustering. clusterizeDetUnit() returns a DetSetVector of SiPixelClusters, which are then recorded in the event.
The calibrations are not loaded at the moment (v1), although that is being planned for the near future.
Definition at line 54 of file SiPixelClusterProducer.h.
|
explicit |
Constructor: set the ParameterSet and defer all thinking to setupClusterizer().
Description: see SiPixelClusterProducer.h Author: P. Maksimovic (porting from original ORCA version) History: Oct 14, 2005, initial version Get rid of the noiseVector. d.k. 28/3/06 Implementation of the DetSetVector container. V.Chiochia, May 06 SiPixelClusterCollection typedef of DetSetVector V.Chiochia, June 06 Introduce the DetSet local container (cache) for speed. d.k. 05/07
Definition at line 48 of file SiPixelClusterProducer.cc.
References clusterMode_, edm::ParameterSet::getParameter(), HLT_2022v15_cff::payloadType, setupClusterizer(), AlCaHLTBitMon_QueryRunRegistry::string, theSiPixelGainCalibration_, tPixelClusters, tPixelDigi, trackerGeomToken_, and trackerTopoToken_.
|
overridedefault |
|
static |
Definition at line 76 of file SiPixelClusterProducer.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, SiPixelGainCalibrationServiceBase::fillPSetDescription(), PixelThresholdClusterizer::fillPSetDescription(), HLT_2022v15_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
|
override |
The "Event" entrypoint: gets called by framework for every event.
Definition at line 94 of file SiPixelClusterProducer.cc.
References clusterMode_, bsc_activity_cfg::clusters, MillePedeFileConverter_cfg::e, relativeConstraints::geom, edm::EventSetup::getHandle(), HLT_FULL_cff::inputClusters, eostools::move(), convertSQLitetoXML_cfg::output, edm::ESHandle< T >::product(), run(), theSiPixelGainCalibration_, tPixelClusters, tPixelDigi, tPutPixelClusters, trackerGeomToken_, trackerTopoToken_, and tTopo_.
void SiPixelClusterProducer::run | ( | const T & | input, |
const edm::ESHandle< TrackerGeometry > & | geom, | ||
edmNew::DetSetVector< SiPixelCluster > & | output | ||
) |
Iterate over DetUnits, and invoke the PixelClusterizer on each.
Definition at line 157 of file SiPixelClusterProducer.cc.
References cms::cuda::assert(), clusterizer_, relativeConstraints::empty, relativeConstraints::geom, input, maxTotalClusters_, convertSQLitetoXML_cfg::output, and tTopo_.
Referenced by produce().
void SiPixelClusterProducer::setupClusterizer | ( | const edm::ParameterSet & | conf | ) |
Set up the specific algorithm we are going to use. TO DO: in the future, we should allow for a different algorithm for each detector subset (e.g. barrel vs forward, per layer, etc).
Definition at line 141 of file SiPixelClusterProducer.cc.
References clusterizer_, clusterMode_, Exception, and theSiPixelGainCalibration_.
Referenced by SiPixelClusterProducer().
|
private |
Definition at line 80 of file SiPixelClusterProducer.h.
Referenced by run(), and setupClusterizer().
|
private |
Definition at line 79 of file SiPixelClusterProducer.h.
Referenced by produce(), setupClusterizer(), and SiPixelClusterProducer().
|
private |
Optional limit on the total number of clusters.
Definition at line 84 of file SiPixelClusterProducer.h.
Referenced by run().
|
private |
Definition at line 78 of file SiPixelClusterProducer.h.
Referenced by produce(), setupClusterizer(), and SiPixelClusterProducer().
|
private |
Definition at line 72 of file SiPixelClusterProducer.h.
Referenced by produce(), and SiPixelClusterProducer().
|
private |
Definition at line 73 of file SiPixelClusterProducer.h.
Referenced by produce(), and SiPixelClusterProducer().
|
private |
Definition at line 74 of file SiPixelClusterProducer.h.
Referenced by produce().
|
private |
Definition at line 76 of file SiPixelClusterProducer.h.
Referenced by produce(), and SiPixelClusterProducer().
|
private |
Definition at line 75 of file SiPixelClusterProducer.h.
Referenced by produce(), and SiPixelClusterProducer().
|
private |
Definition at line 81 of file SiPixelClusterProducer.h.