CMS 3D CMS Logo

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

#include <SiStripRecHitConverter.h>

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

Public Member Functions

void produce (edm::Event &, const edm::EventSetup &) override
 
 SiStripRecHitConverter (const edm::ParameterSet &)
 
- 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 &descriptions)
 

Private Attributes

edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusterProducer
 
bool doMatching
 
std::string matchedRecHitsTag
 
SiStripRecHitConverterAlgorithm recHitConverterAlgorithm
 
std::string rphiRecHitsTag
 
std::string stereoRecHitsTag
 

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 8 of file SiStripRecHitConverter.h.

Constructor & Destructor Documentation

◆ SiStripRecHitConverter()

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

Definition at line 7 of file SiStripRecHitConverter.cc.

8  : recHitConverterAlgorithm(conf, consumesCollector()),
9  matchedRecHitsTag(conf.getParameter<std::string>("matchedRecHits")),
10  rphiRecHitsTag(conf.getParameter<std::string>("rphiRecHits")),
11  stereoRecHitsTag(conf.getParameter<std::string>("stereoRecHits")),
12  doMatching(conf.getParameter<bool>("doMatching")) {
14  consumes<edmNew::DetSetVector<SiStripCluster> >(conf.getParameter<edm::InputTag>("ClusterProducer"));
15 
16  produces<SiStripRecHit2DCollection>(rphiRecHitsTag);
17  produces<SiStripRecHit2DCollection>(stereoRecHitsTag);
18  if (doMatching) {
19  produces<SiStripMatchedRecHit2DCollection>(matchedRecHitsTag);
20  produces<SiStripRecHit2DCollection>(rphiRecHitsTag + "Unmatched");
21  produces<SiStripRecHit2DCollection>(stereoRecHitsTag + "Unmatched");
22  }
23 }

References clusterProducer, doMatching, edm::ParameterSet::getParameter(), matchedRecHitsTag, rphiRecHitsTag, and stereoRecHitsTag.

Member Function Documentation

◆ fillDescriptions()

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

Definition at line 25 of file SiStripRecHitConverter.cc.

25  {
27  desc.add<edm::InputTag>("ClusterProducer", edm::InputTag("siStripClusters"));
28  desc.add<std::string>("rphiRecHits", "rphiRecHit");
29  desc.add<std::string>("stereoRecHits", "stereoRecHit");
30  desc.add<std::string>("matchedRecHits", "matchedRecHit");
31 
33 
34  // unused? could be removed after parameter gets removed from HLT menu?
35  desc.addOptionalUntracked<int>("VerbosityLevel");
36 
37  descriptions.addWithDefaultLabel(desc);
38 }

References edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, SiStripRecHitConverterAlgorithm::fillPSetDescription(), HLT_FULL_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ produce()

void SiStripRecHitConverter::produce ( edm::Event e,
const edm::EventSetup es 
)
override

Definition at line 40 of file SiStripRecHitConverter.cc.

40  {
42 
44  e.getByToken(clusterProducer, clusters);
47  output.shrink_to_fit();
48  LogDebug("SiStripRecHitConverter") << "found\n"
49  << output.rphi->dataSize() << " clusters in mono detectors\n"
50  << output.stereo->dataSize() << " clusters in partners stereo detectors\n";
51 
52  e.put(std::move(output.rphi), rphiRecHitsTag);
53  e.put(std::move(output.stereo), stereoRecHitsTag);
54  if (doMatching) {
55  e.put(std::move(output.matched), matchedRecHitsTag);
56  e.put(std::move(output.rphiUnmatched), rphiRecHitsTag + "Unmatched");
57  e.put(std::move(output.stereoUnmatched), stereoRecHitsTag + "Unmatched");
58  }
59 }

References clusterProducer, bsc_activity_cfg::clusters, doMatching, MillePedeFileConverter_cfg::e, SiStripRecHitConverterAlgorithm::initialize(), LogDebug, matchedRecHitsTag, eostools::move(), convertSQLitetoXML_cfg::output, recHitConverterAlgorithm, rphiRecHitsTag, SiStripRecHitConverterAlgorithm::run(), and stereoRecHitsTag.

Member Data Documentation

◆ clusterProducer

edm::EDGetTokenT<edmNew::DetSetVector<SiStripCluster> > SiStripRecHitConverter::clusterProducer
private

Definition at line 18 of file SiStripRecHitConverter.h.

Referenced by produce(), and SiStripRecHitConverter().

◆ doMatching

bool SiStripRecHitConverter::doMatching
private

Definition at line 19 of file SiStripRecHitConverter.h.

Referenced by produce(), and SiStripRecHitConverter().

◆ matchedRecHitsTag

std::string SiStripRecHitConverter::matchedRecHitsTag
private

Definition at line 17 of file SiStripRecHitConverter.h.

Referenced by produce(), and SiStripRecHitConverter().

◆ recHitConverterAlgorithm

SiStripRecHitConverterAlgorithm SiStripRecHitConverter::recHitConverterAlgorithm
private

Definition at line 16 of file SiStripRecHitConverter.h.

Referenced by produce().

◆ rphiRecHitsTag

std::string SiStripRecHitConverter::rphiRecHitsTag
private

Definition at line 17 of file SiStripRecHitConverter.h.

Referenced by produce(), and SiStripRecHitConverter().

◆ stereoRecHitsTag

std::string SiStripRecHitConverter::stereoRecHitsTag
private

Definition at line 17 of file SiStripRecHitConverter.h.

Referenced by produce(), and SiStripRecHitConverter().

SiStripRecHitConverterAlgorithm::initialize
void initialize(const edm::EventSetup &)
Definition: SiStripRecHitConverterAlgorithm.cc:42
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:72
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89353
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
SiStripRecHitConverterAlgorithm::run
void run(edm::Handle< edmNew::DetSetVector< SiStripCluster > > input, products &output)
Definition: SiStripRecHitConverterAlgorithm.cc:53
SiStripRecHitConverter::clusterProducer
edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusterProducer
Definition: SiStripRecHitConverter.h:18
edm::Handle
Definition: AssociativeIterator.h:50
SiStripRecHitConverter::stereoRecHitsTag
std::string stereoRecHitsTag
Definition: SiStripRecHitConverter.h:17
SiStripRecHitConverterAlgorithm::products
Definition: SiStripRecHitConverterAlgorithm.h:27
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripRecHitConverter::recHitConverterAlgorithm
SiStripRecHitConverterAlgorithm recHitConverterAlgorithm
Definition: SiStripRecHitConverter.h:16
bsc_activity_cfg.clusters
clusters
Definition: bsc_activity_cfg.py:36
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:223
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
SiStripRecHitConverterAlgorithm::fillPSetDescription
static void fillPSetDescription(edm::ParameterSetDescription &desc)
Definition: SiStripRecHitConverterAlgorithm.cc:33
SiStripRecHitConverter::matchedRecHitsTag
std::string matchedRecHitsTag
Definition: SiStripRecHitConverter.h:17
SiStripRecHitConverter::rphiRecHitsTag
std::string rphiRecHitsTag
Definition: SiStripRecHitConverter.h:17
edm::InputTag
Definition: InputTag.h:15
edm::ConfigurationDescriptions::addWithDefaultLabel
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:87
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
SiStripRecHitConverter::doMatching
bool doMatching
Definition: SiStripRecHitConverter.h:19