-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace SeedingLayersESProducer with an EDProducer #2286
Closed
Closed
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
37d5679
Remove hasPredefinedHitErrors member from SeedingLayer(SetsBuilder) a…
makortel 83eea6b
Remove useErrorsFromParam, hitErrorRZ, and hitErrorRPhi from configur…
makortel 6dbdcd7
Add SeedingLayerSetsHits for transient EDProduct of SeedingLayers
makortel 7df8d58
Add SeedingLayersEDProducer
makortel 1237791
Add TrackingRegion::hits(const SeedingLayerSetsHits::SeedingLayer&) i…
makortel 305e5f7
Migrate LayerHitMapCache to SeedingLayerSetsHits
makortel 75cfe0d
Migrate HitPairGeneratorFromLayerPair to SeedingLayerSetsHits
makortel 3e95527
Migrate CombinedHitPairGenerator to SeedingLayerSetsHits
makortel 87bde9e
Migrate LayerTriplets to SeedingLayerSetsHits
makortel b26a535
Migrate HitTripletGeneratorFromPairAndLayers classes to SeedingLayerS…
makortel 9115c4a
Migrate CombinedHitTripletGenerator to SeedingLayerSetsHits
makortel f682617
Migrate CombinedMultiHitGenerator, MultiHitGeneratorFromPairAndLayers…
makortel 17085dc
Migrate configuration: TobTecLayerPairs_cfi
makortel 908cdaf
Migrate configuration: PixelLessLayerPairs_cfi
makortel 731b81d
Migrate configuration: PixelLessLayerPairs4PixelLessTracking_cfi
makortel 8f30b29
Migrate configuration: PixelLayerTriplets_cfi
makortel 64ea607
Migrate configuration: PixelLayerPairs_cfi
makortel 61e9c98
Migrate configuration: PixelAndStripLayerPairs_cfi
makortel 08fa5b0
Migrate configuration: MixedLayerPairs_cfi
makortel d20d665
Migrate bunch of configuration files without any knock-on effects
makortel ba933e6
Migrate conversion configuration files
makortel 6bc7328
Migrate configuration: thirdStep_cff
makortel 40e98dc
Migrate configuration: secondStep_cff
makortel 5faaa18
Migrate EgammaHLTRegionalPixelSeedGeneratorProducers
makortel a474c60
Migrate QuadrupletSeedMerger
makortel 39a110b
Remove SeedingLayerESProducer as obsolete
makortel ae69042
Add edm::ConsumesCollector parameter to SeedFilter constructor
makortel 90d3741
Add edm::ConsumesCollector to OrderedHitsGenerator constructors
makortel 78f5c73
Migrate SeedingLayerSetsHits consumers to getByToken
makortel 7d51d79
Construct HitExtractors in SeedingLayerSetsBuilder constructor
makortel 845ad22
Convert HitExtractorPIX and HitExtractorSTRP to getByToken()
makortel 2deb1c9
Add SeedingLayerSetsBuilder::check(), use edm::ESWatcher
makortel 8f3a596
Use SeedingLayerSetsBuilder::check() in SeedingLayerSetsBuilder users
makortel 35bd5a8
Add SeedindLayerSetsHits::swap() for more efficient edm::Event::put()
makortel 7b39909
Fix SeedingLayerSetsHits::size() for nlayers_==0
makortel d528016
Pass GeomDetEnumerators::SubDetector to HitExtractorSTRP constructor
makortel ea37c80
Restructure SeedingLayerSetsBuilder
makortel c0c0b37
Change LogError to cms::Exception in SeedingLayerSetsBuilder::updateE…
makortel a17e0b7
Add theTTRHBuilders member to SeedingLayerSetsBuilder
makortel 40c3e15
Deliver TTRHBuilder to HitExtractor instead of SeedingLayer itself
makortel aa55dd6
Add SeedingLayersEDProducer-friendly interface to SeedingLayerSetsBui…
makortel c71d377
Migrate SeedingLayerSetsHits and SeedingLayersEDProducer to the new i…
makortel 7dc8432
Return all hits and indices for each layer from SeedingLayerSetsBuild…
makortel 8af5229
Deliver hits to SeedingLayerSetsHits with swap-style interface
makortel 285f169
Fix typos
makortel 8698006
Add constructors taking edm::ConsumesCollector& to ClusterChecker and…
makortel 088e68d
Some cleanup in PhotonConversionTrajectorySeedProducerFrom(SingleLeg|…
makortel e235fb5
Further fixes to configuration
makortel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ | |
#include "FWCore/Framework/interface/EDProducer.h" | ||
#include "FWCore/Framework/interface/Event.h" | ||
#include "FWCore/Framework/interface/MakerMacros.h" | ||
#include "FWCore/Framework/interface/ConsumesCollector.h" | ||
#include "FWCore/MessageLogger/interface/MessageLogger.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
||
|
@@ -49,7 +50,7 @@ using namespace reco ; | |
|
||
ElectronSeedProducer::ElectronSeedProducer( const edm::ParameterSet& iConfig ) | ||
: //conf_(iConfig), | ||
seedFilter_(0), applyHOverECut_(true), hcalHelper_(0), | ||
applyHOverECut_(true), hcalHelper_(0), | ||
caloGeom_(0), caloGeomCacheId_(0), caloTopo_(0), caloTopoCacheId_(0) | ||
{ | ||
conf_ = iConfig.getParameter<edm::ParameterSet>("SeedConfiguration") ; | ||
|
@@ -115,27 +116,30 @@ ElectronSeedProducer::ElectronSeedProducer( const edm::ParameterSet& iConfig ) | |
superClusters_[1]= | ||
consumes<reco::SuperClusterCollection>(iConfig.getParameter<edm::InputTag>("endcapSuperClusters")) ; | ||
|
||
//register your products | ||
produces<ElectronSeedCollection>() ; | ||
} | ||
|
||
|
||
void ElectronSeedProducer::beginRun(edm::Run const&, edm::EventSetup const&) { | ||
// Construction of SeedFilter was in beginRun() with the comment | ||
// below, but it has to be done here because of ConsumesCollector | ||
// | ||
// FIXME: because of a bug presumably in tracker seeding, | ||
// perhaps in CombinedHitPairGenerator, badly caching some EventSetup product, | ||
// we must redo the SeedFilter for each run. | ||
if (prefilteredSeeds_) { | ||
SeedFilter::Tokens sf_tokens; | ||
sf_tokens.token_bs = beamSpotTag_; | ||
sf_tokens.token_vtx = filterVtxTag_; | ||
seedFilter_ = new SeedFilter(conf_,sf_tokens) ; | ||
edm::ConsumesCollector iC = consumesCollector(); | ||
seedFilter_.reset(new SeedFilter(conf_, sf_tokens, iC)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SeedFilter is constructed only if |
||
} | ||
|
||
//register your products | ||
produces<ElectronSeedCollection>() ; | ||
} | ||
|
||
|
||
void ElectronSeedProducer::beginRun(edm::Run const&, edm::EventSetup const&) { | ||
} | ||
|
||
void ElectronSeedProducer::endRun(edm::Run const&, edm::EventSetup const&) | ||
{ | ||
delete seedFilter_ ; | ||
seedFilter_ = 0 ; | ||
} | ||
|
||
ElectronSeedProducer::~ElectronSeedProducer() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Within ElectronSeedProducer, SeedFilter is the only place where
OrderedHitsFactoryPSet
(includingSeedingLayers
) is used.