Skip to content
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

Use consumes interface for TrackerHitAssociator(Geom) #9095

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion SLHCUpgradeSimulations/Geometry/test/StdHitNtuplizer.cc
Expand Up @@ -66,6 +66,7 @@ using namespace reco;

StdHitNtuplizer::StdHitNtuplizer(edm::ParameterSet const& conf) :
conf_(conf),
trackerHitAssociatorConfig_(conf, consumesCollector()),
src_( conf.getParameter<edm::InputTag>( "src" ) ),
rphiRecHits_( conf.getParameter<edm::InputTag>("rphiRecHits") ),
stereoRecHits_( conf.getParameter<edm::InputTag>("stereoRecHits") ),
Expand Down Expand Up @@ -141,7 +142,7 @@ void StdHitNtuplizer::analyze(const edm::Event& e, const edm::EventSetup& es)
e.getByLabel( src_, recHitColl);

// for finding matched simhit
TrackerHitAssociator associate( e, conf_ );
TrackerHitAssociator associate( e, trackerHitAssociatorConfig_ );

// std::cout << " Step A: Standard RecHits found " << (recHitColl.product())->dataSize() << std::endl;
if((recHitColl.product())->dataSize() > 0) {
Expand Down
2 changes: 2 additions & 0 deletions SLHCUpgradeSimulations/Geometry/test/StdHitNtuplizer.h
Expand Up @@ -29,6 +29,7 @@

#include "SimDataFormats/Track/interface/SimTrack.h"
#include "SimDataFormats/Track/interface/SimTrackContainer.h"
#include "SimTracker/TrackerHitAssociation/interface/TrackerHitAssociator.h"

class TTree;
class TFile;
Expand Down Expand Up @@ -71,6 +72,7 @@ class StdHitNtuplizer : public edm::EDAnalyzer

private:
edm::ParameterSet conf_;
TrackerHitAssociator::Config trackerHitAssociatorConfig_;
edm::InputTag src_;
edm::InputTag rphiRecHits_;
edm::InputTag stereoRecHits_;
Expand Down