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
 

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 30 of file SiStripClusters2ApproxClusters.cc.

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

30  {
31  inputClusters = conf.getParameter<edm::InputTag>("inputClusters");
32 
33  clusterToken = consumes<edmNew::DetSetVector<SiStripCluster> >(inputClusters);
34  produces<edmNew::DetSetVector<SiStripApproximateCluster> >();
35 }
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 51 of file SiStripClusters2ApproxClusters.cc.

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

51  {
53  desc.add<edm::InputTag>("inputClusters", edm::InputTag("siStripClusters"));
54  descriptions.add("SiStripClusters2ApproxClusters", desc);
55 }
void add(std::string const &label, ParameterSetDescription const &psetDescription)

◆ produce()

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

Definition at line 37 of file SiStripClusters2ApproxClusters.cc.

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

37  {
38  auto result = std::make_unique<edmNew::DetSetVector<SiStripApproximateCluster> >();
39  const auto& clusterCollection = event.get(clusterToken);
40 
41  for (const auto& detClusters : clusterCollection) {
43 
44  for (const auto& cluster : detClusters)
45  ff.push_back(SiStripApproximateCluster(cluster));
46  }
47 
48  event.put(std::move(result));
49 }
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().