CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
SiStripClusters2ApproxClusters Class Reference
Inheritance diagram for SiStripClusters2ApproxClusters:
edm::stream::EDProducer<>

Public Member Functions

void produce (edm::Event &, const edm::EventSetup &) override
 
 SiStripClusters2ApproxClusters (const edm::ParameterSet &conf)
 
- 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 EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Attributes

edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusterToken
 
edm::InputTag inputClusters
 
unsigned int maxNSat
 

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
 

Detailed Description

Definition at line 18 of file SiStripClusters2ApproxClusters.cc.

Constructor & Destructor Documentation

◆ SiStripClusters2ApproxClusters()

SiStripClusters2ApproxClusters::SiStripClusters2ApproxClusters ( const edm::ParameterSet conf)
explicit

Definition at line 32 of file SiStripClusters2ApproxClusters.cc.

References clusterToken, edm::ParameterSet::getParameter(), inputClusters, and maxNSat.

32  {
33  inputClusters = conf.getParameter<edm::InputTag>("inputClusters");
34  maxNSat = conf.getParameter<unsigned int>("maxSaturatedStrips");
35 
36  clusterToken = consumes<edmNew::DetSetVector<SiStripCluster> >(inputClusters);
37  produces<edmNew::DetSetVector<SiStripApproximateCluster> >();
38 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusterToken

Member Function Documentation

◆ fillDescriptions()

void SiStripClusters2ApproxClusters::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 54 of file SiStripClusters2ApproxClusters.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and HLT_2022v15_cff::InputTag.

54  {
56  desc.add<edm::InputTag>("inputClusters", edm::InputTag("siStripClusters"));
57  desc.add<unsigned int>("maxSaturatedStrips", 3);
58  descriptions.add("SiStripClusters2ApproxClusters", desc);
59 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ produce()

void SiStripClusters2ApproxClusters::produce ( edm::Event event,
const edm::EventSetup  
)
override

Definition at line 40 of file SiStripClusters2ApproxClusters.cc.

References ALCARECOSiPixelCalSingleMuonDQM_cff::clusterCollection, clusterToken, alignCSCRings::ff, maxNSat, eostools::move(), and mps_fire::result.

40  {
41  auto result = std::make_unique<edmNew::DetSetVector<SiStripApproximateCluster> >();
42  const auto& clusterCollection = event.get(clusterToken);
43 
44  for (const auto& detClusters : clusterCollection) {
46 
47  for (const auto& cluster : detClusters)
48  ff.push_back(SiStripApproximateCluster(cluster, maxNSat));
49  }
50 
51  event.put(std::move(result));
52 }
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusterToken
def move(src, dest)
Definition: eostools.py:511

Member Data Documentation

◆ clusterToken

edm::EDGetTokenT<edmNew::DetSetVector<SiStripCluster> > SiStripClusters2ApproxClusters::clusterToken
private

Definition at line 27 of file SiStripClusters2ApproxClusters.cc.

Referenced by produce(), and SiStripClusters2ApproxClusters().

◆ inputClusters

edm::InputTag SiStripClusters2ApproxClusters::inputClusters
private

Definition at line 26 of file SiStripClusters2ApproxClusters.cc.

Referenced by SiStripClusters2ApproxClusters().

◆ maxNSat

unsigned int SiStripClusters2ApproxClusters::maxNSat
private

Definition at line 29 of file SiStripClusters2ApproxClusters.cc.

Referenced by produce(), and SiStripClusters2ApproxClusters().