CMS 3D CMS Logo

SiStripRecHitConverter.cc
Go to the documentation of this file.
7 
9  : recHitConverterAlgorithm(conf, consumesCollector()),
10  matchedRecHitsTag(conf.getParameter<std::string>("matchedRecHits")),
11  rphiRecHitsTag(conf.getParameter<std::string>("rphiRecHits")),
12  stereoRecHitsTag(conf.getParameter<std::string>("stereoRecHits")),
13  doMatching(conf.getParameter<bool>("doMatching")) {
15  consumes<edmNew::DetSetVector<SiStripCluster> >(conf.getParameter<edm::InputTag>("ClusterProducer"));
16 
17  produces<SiStripRecHit2DCollection>(rphiRecHitsTag);
18  produces<SiStripRecHit2DCollection>(stereoRecHitsTag);
19  if (doMatching) {
20  produces<SiStripMatchedRecHit2DCollection>(matchedRecHitsTag);
21  produces<SiStripRecHit2DCollection>(rphiRecHitsTag + "Unmatched");
22  produces<SiStripRecHit2DCollection>(stereoRecHitsTag + "Unmatched");
23  }
24 }
25 
28  desc.add<edm::InputTag>("ClusterProducer", edm::InputTag("siStripClusters"));
29  desc.add<std::string>("rphiRecHits", "rphiRecHit");
30  desc.add<std::string>("stereoRecHits", "stereoRecHit");
31  desc.add<std::string>("matchedRecHits", "matchedRecHit");
32 
34 
35  // unused? could be removed after parameter gets removed from HLT menu?
36  desc.addOptionalUntracked<int>("VerbosityLevel");
37 
38  descriptions.addWithDefaultLabel(desc);
39 }
40 
43 
45  e.getByToken(clusterProducer, clusters);
48  output.shrink_to_fit();
49  LogDebug("SiStripRecHitConverter") << "found\n"
50  << output.rphi->dataSize() << " clusters in mono detectors\n"
51  << output.stereo->dataSize() << " clusters in partners stereo detectors\n";
52 
53  e.put(std::move(output.rphi), rphiRecHitsTag);
54  e.put(std::move(output.stereo), stereoRecHitsTag);
55  if (doMatching) {
56  e.put(std::move(output.matched), matchedRecHitsTag);
57  e.put(std::move(output.rphiUnmatched), rphiRecHitsTag + "Unmatched");
58  e.put(std::move(output.stereoUnmatched), stereoRecHitsTag + "Unmatched");
59  }
60 }
ConfigurationDescriptions.h
electrons_cff.bool
bool
Definition: electrons_cff.py:366
MessageLogger.h
SiStripRecHitConverter::SiStripRecHitConverter
SiStripRecHitConverter(const edm::ParameterSet &)
Definition: SiStripRecHitConverter.cc:8
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:89281
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
ParameterSetDescription.h
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
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:233
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
SiStripRecHitConverter.h
edm::EventSetup
Definition: EventSetup.h:58
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition: eostools.py:511
std
Definition: JetResolutionObject.h:76
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
ConsumesCollector.h
SiStripRecHitConverter::matchedRecHitsTag
std::string matchedRecHitsTag
Definition: SiStripRecHitConverter.h:17
DQMOfflineHeavyIons_cff.doMatching
doMatching
Definition: DQMOfflineHeavyIons_cff.py:109
edm::Event
Definition: Event.h:73
SiStripRecHitConverter::rphiRecHitsTag
std::string rphiRecHitsTag
Definition: SiStripRecHitConverter.h:17
edm::InputTag
Definition: InputTag.h:15
SiStripRecHitConverter::produce
void produce(edm::Event &, const edm::EventSetup &) override
Definition: SiStripRecHitConverter.cc:41
edm::ConfigurationDescriptions::addWithDefaultLabel
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:87
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
SiStripRecHitConverter::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: SiStripRecHitConverter.cc:26
SiStripRecHitConverter::doMatching
bool doMatching
Definition: SiStripRecHitConverter.h:19