CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
CTPPSPixelRecHitProducer Class Reference

#include <CTPPSPixelRecHitProducer.h>

Inheritance diagram for CTPPSPixelRecHitProducer:
edm::stream::EDProducer<>

Public Member Functions

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

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Member Functions

void run (const edm::DetSetVector< CTPPSPixelCluster > &input, edm::DetSetVector< CTPPSPixelRecHit > &output, const PPSPixelTopology &ppt)
 

Private Attributes

RPixClusterToHit cluster2hit_
 
edm::ParameterSet param_
 
edm::ESGetToken< PPSPixelTopology, PPSPixelTopologyRcdpixelTopologyToken_
 
edm::InputTag src_
 
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelCluster > > tokenCTPPSPixelCluster_
 
int verbosity_
 

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 33 of file CTPPSPixelRecHitProducer.h.

Constructor & Destructor Documentation

◆ CTPPSPixelRecHitProducer()

CTPPSPixelRecHitProducer::CTPPSPixelRecHitProducer ( const edm::ParameterSet param)
explicit

Definition at line 3 of file CTPPSPixelRecHitProducer.cc.

3  : param_(conf), cluster2hit_(conf) {
4  src_ = conf.getParameter<edm::InputTag>("RPixClusterTag");
5  verbosity_ = conf.getUntrackedParameter<int>("RPixVerbosity");
6  tokenCTPPSPixelCluster_ = consumes<edm::DetSetVector<CTPPSPixelCluster> >(src_);
7  produces<edm::DetSetVector<CTPPSPixelRecHit> >();
8  pixelTopologyToken_ = esConsumes<PPSPixelTopology, PPSPixelTopologyRcd>();
9 }

References edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), pixelTopologyToken_, src_, tokenCTPPSPixelCluster_, and verbosity_.

◆ ~CTPPSPixelRecHitProducer()

CTPPSPixelRecHitProducer::~CTPPSPixelRecHitProducer ( )
override

Definition at line 11 of file CTPPSPixelRecHitProducer.cc.

11 {}

Member Function Documentation

◆ fillDescriptions()

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

Definition at line 13 of file CTPPSPixelRecHitProducer.cc.

13  {
15  desc.addUntracked<int>("RPixVerbosity", 0);
16  desc.add<edm::InputTag>("RPixClusterTag", edm::InputTag("ctppsPixelClusters"));
17  descriptions.add("ctppsPixelRecHits", desc);
18 }

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

◆ produce()

void CTPPSPixelRecHitProducer::produce ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
override

Definition at line 20 of file CTPPSPixelRecHitProducer.cc.

20  {
22  iEvent.getByToken(tokenCTPPSPixelCluster_, rpCl);
23 
25 
27 
28  // run reconstruction
29  if (!rpCl->empty())
30  run(*rpCl, output, *thePixelTopology);
31 
32  iEvent.put(std::make_unique<edm::DetSetVector<CTPPSPixelRecHit> >(output));
33 }

References edm::EventSetup::getHandle(), iEvent, convertSQLitetoXML_cfg::output, pixelTopologyToken_, run(), and tokenCTPPSPixelCluster_.

◆ run()

void CTPPSPixelRecHitProducer::run ( const edm::DetSetVector< CTPPSPixelCluster > &  input,
edm::DetSetVector< CTPPSPixelRecHit > &  output,
const PPSPixelTopology ppt 
)
private

Definition at line 35 of file CTPPSPixelRecHitProducer.cc.

37  {
38  for (const auto &ds_cluster : input) {
39  edm::DetSet<CTPPSPixelRecHit> &ds_rechit = output.find_or_insert(ds_cluster.id);
40 
41  //calculate the cluster parameters and convert it into a rechit
42  cluster2hit_.buildHits(ds_cluster.id, ds_cluster.data, ds_rechit.data, ppt);
43  }
44 }

References RPixClusterToHit::buildHits(), cluster2hit_, edm::DetSet< T >::data, input, and convertSQLitetoXML_cfg::output.

Referenced by produce().

Member Data Documentation

◆ cluster2hit_

RPixClusterToHit CTPPSPixelRecHitProducer::cluster2hit_
private

Definition at line 54 of file CTPPSPixelRecHitProducer.h.

Referenced by run().

◆ param_

edm::ParameterSet CTPPSPixelRecHitProducer::param_
private

Definition at line 47 of file CTPPSPixelRecHitProducer.h.

◆ pixelTopologyToken_

edm::ESGetToken<PPSPixelTopology, PPSPixelTopologyRcd> CTPPSPixelRecHitProducer::pixelTopologyToken_
private

Definition at line 52 of file CTPPSPixelRecHitProducer.h.

Referenced by CTPPSPixelRecHitProducer(), and produce().

◆ src_

edm::InputTag CTPPSPixelRecHitProducer::src_
private

Definition at line 50 of file CTPPSPixelRecHitProducer.h.

Referenced by CTPPSPixelRecHitProducer().

◆ tokenCTPPSPixelCluster_

edm::EDGetTokenT<edm::DetSetVector<CTPPSPixelCluster> > CTPPSPixelRecHitProducer::tokenCTPPSPixelCluster_
private

Definition at line 51 of file CTPPSPixelRecHitProducer.h.

Referenced by CTPPSPixelRecHitProducer(), and produce().

◆ verbosity_

int CTPPSPixelRecHitProducer::verbosity_
private

Definition at line 48 of file CTPPSPixelRecHitProducer.h.

Referenced by CTPPSPixelRecHitProducer().

CTPPSPixelRecHitProducer::src_
edm::InputTag src_
Definition: CTPPSPixelRecHitProducer.h:50
edm::DetSetVector< CTPPSPixelRecHit >
RPixClusterToHit::buildHits
void buildHits(unsigned int detId, const std::vector< CTPPSPixelCluster > &clusters, std::vector< CTPPSPixelRecHit > &hits, const PPSPixelTopology &ppt)
Definition: RPixClusterToHit.cc:9
input
static const std::string input
Definition: EdmProvDump.cc:48
CTPPSPixelRecHitProducer::tokenCTPPSPixelCluster_
edm::EDGetTokenT< edm::DetSetVector< CTPPSPixelCluster > > tokenCTPPSPixelCluster_
Definition: CTPPSPixelRecHitProducer.h:51
edm::DetSet
Definition: DetSet.h:23
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89301
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::Handle
Definition: AssociativeIterator.h:50
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
edm::ESHandle
Definition: DTSurvey.h:22
CTPPSPixelRecHitProducer::param_
edm::ParameterSet param_
Definition: CTPPSPixelRecHitProducer.h:47
CTPPSPixelRecHitProducer::cluster2hit_
RPixClusterToHit cluster2hit_
Definition: CTPPSPixelRecHitProducer.h:54
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:155
CTPPSPixelRecHitProducer::verbosity_
int verbosity_
Definition: CTPPSPixelRecHitProducer.h:48
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
CTPPSPixelRecHitProducer::run
void run(const edm::DetSetVector< CTPPSPixelCluster > &input, edm::DetSetVector< CTPPSPixelRecHit > &output, const PPSPixelTopology &ppt)
Definition: CTPPSPixelRecHitProducer.cc:35
edm::DetSet::data
collection_type data
Definition: DetSet.h:80
CTPPSPixelRecHitProducer::pixelTopologyToken_
edm::ESGetToken< PPSPixelTopology, PPSPixelTopologyRcd > pixelTopologyToken_
Definition: CTPPSPixelRecHitProducer.h:52
edm::InputTag
Definition: InputTag.h:15