CMS 3D CMS Logo

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

Public Member Functions

void produce (edm::Event &e, const edm::EventSetup &c) override
 
 TotemRPRecHitProducer (const edm::ParameterSet &conf)
 
 ~TotemRPRecHitProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &)
 

Private Attributes

TotemRPRecHitProducerAlgorithm algorithm_
 
const edm::ParameterSet conf_
 
edm::InputTag tagCluster_
 
edm::EDGetTokenT< edm::DetSetVector< TotemRPCluster > > tokenCluster_
 
int verbosity_
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Detailed Description

Definition at line 26 of file TotemRPRecHitProducer.cc.

Constructor & Destructor Documentation

◆ TotemRPRecHitProducer()

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

Definition at line 53 of file TotemRPRecHitProducer.cc.

53  : conf_(conf), algorithm_(conf) {
54  verbosity_ = conf.getParameter<int>("verbosity");
55 
56  tagCluster_ = conf.getParameter<edm::InputTag>("tagCluster");
57  tokenCluster_ = consumes<edm::DetSetVector<TotemRPCluster>>(tagCluster_);
58 
59  produces<edm::DetSetVector<TotemRPRecHit>>();
60 }

References edm::ParameterSet::getParameter(), tagCluster_, tokenCluster_, and verbosity_.

◆ ~TotemRPRecHitProducer()

TotemRPRecHitProducer::~TotemRPRecHitProducer ( )
inlineoverride

Definition at line 36 of file TotemRPRecHitProducer.cc.

Member Function Documentation

◆ fillDescriptions()

void TotemRPRecHitProducer::fillDescriptions ( edm::ConfigurationDescriptions descr)
static

Definition at line 84 of file TotemRPRecHitProducer.cc.

84  {
86 
87  desc.add<edm::InputTag>("tagCluster", edm::InputTag("totemRPClusterProducer"))
88  ->setComment("input clusters collection to retrieve");
89  desc.add<int>("verbosity", 0);
90 
91  descr.add("totemRPRecHitProducer", desc);
92 }

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

◆ produce()

void TotemRPRecHitProducer::produce ( edm::Event e,
const edm::EventSetup c 
)
override

Definition at line 64 of file TotemRPRecHitProducer.cc.

64  {
65  // get input
67  e.getByToken(tokenCluster_, input);
68 
69  // prepare output
71 
72  // build reco hits
73  for (auto& ids : *input) {
74  DetSet<TotemRPRecHit>& ods = output.find_or_insert(ids.detId());
75  algorithm_.buildRecoHits(ids, ods);
76  }
77 
78  // save output
79  e.put(make_unique<DetSetVector<TotemRPRecHit>>(output));
80 }

References algorithm_, TotemRPRecHitProducerAlgorithm::buildRecoHits(), MillePedeFileConverter_cfg::e, input, convertSQLitetoXML_cfg::output, and tokenCluster_.

Member Data Documentation

◆ algorithm_

TotemRPRecHitProducerAlgorithm TotemRPRecHitProducer::algorithm_
private

Definition at line 45 of file TotemRPRecHitProducer.cc.

Referenced by produce().

◆ conf_

const edm::ParameterSet TotemRPRecHitProducer::conf_
private

Definition at line 42 of file TotemRPRecHitProducer.cc.

◆ tagCluster_

edm::InputTag TotemRPRecHitProducer::tagCluster_
private

Definition at line 47 of file TotemRPRecHitProducer.cc.

Referenced by TotemRPRecHitProducer().

◆ tokenCluster_

edm::EDGetTokenT<edm::DetSetVector<TotemRPCluster> > TotemRPRecHitProducer::tokenCluster_
private

Definition at line 48 of file TotemRPRecHitProducer.cc.

Referenced by produce(), and TotemRPRecHitProducer().

◆ verbosity_

int TotemRPRecHitProducer::verbosity_
private

Definition at line 43 of file TotemRPRecHitProducer.cc.

Referenced by TotemRPRecHitProducer().

edm::DetSetVector< TotemRPRecHit >
input
static const std::string input
Definition: EdmProvDump.cc:48
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:89287
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
TotemRPRecHitProducer::tagCluster_
edm::InputTag tagCluster_
Definition: TotemRPRecHitProducer.cc:47
edm::Handle
Definition: AssociativeIterator.h:50
TotemRPRecHitProducer::algorithm_
TotemRPRecHitProducerAlgorithm algorithm_
Definition: TotemRPRecHitProducer.cc:45
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
TotemRPRecHitProducerAlgorithm::buildRecoHits
void buildRecoHits(const edm::DetSet< TotemRPCluster > &input, edm::DetSet< TotemRPRecHit > &output)
Definition: TotemRPRecHitProducerAlgorithm.cc:13
TotemRPRecHitProducer::conf_
const edm::ParameterSet conf_
Definition: TotemRPRecHitProducer.cc:42
TotemRPRecHitProducer::tokenCluster_
edm::EDGetTokenT< edm::DetSetVector< TotemRPCluster > > tokenCluster_
Definition: TotemRPRecHitProducer.cc:48
TotemRPRecHitProducer::verbosity_
int verbosity_
Definition: TotemRPRecHitProducer.cc:43
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::InputTag
Definition: InputTag.h:15
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37