Skip to content

Commit

Permalink
track down everywhere where DigiSimLinks are sourced, remove hard-wir…
Browse files Browse the repository at this point in the history
…ed InputTags
  • Loading branch information
mdhildreth committed Sep 11, 2015
1 parent 45af043 commit 302f97a
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SimMuon/MCTruth/python/MuonAssociatorByHits_cfi.py
Expand Up @@ -64,6 +64,8 @@
#
associatePixel = cms.bool(True),
associateStrip = cms.bool(True),
pixelSimLinkSrc = cms.InputTag("simSiPixelDigis"),
stripSimLinkSrc = cms.InputTag("simSiStripDigis"),
associateRecoTracks = cms.bool(True),
#
ROUList = cms.vstring('TrackerHitsTIBLowTof',
Expand Down
Expand Up @@ -148,6 +148,10 @@ QuickTrackAssociatorByHitsProducer::makeHitAssociatorParameters(const edm::Param
// I only want to use the hit associator methods that work on the hit IDs (i.e. the uint32_t trackId
// and the EncodedEventId eventId) so I'm not interested in matching that to the PSimHit objects.
hitAssociatorParameters.addParameter<bool>("associateRecoTracks",true);
// add these new ones to allow redirection of inputs:
hitAssociatorParameters.addParameter<edm::InputTag>( "pixelSimLinkSrc", iConfig.getParameter<edm::InputTag>("pixelSimLinkSrc") );
hitAssociatorParameters.addParameter<edm::InputTag>( "stripSimLinkSrc", iConfig.getParameter<edm::InputTag>("stripSimLinkSrc") );

return hitAssociatorParameters;
}

Expand Down
Expand Up @@ -22,6 +22,8 @@
ThreeHitTracksAreSpecial = cms.bool(True),
AbsoluteNumberOfHits = cms.bool(False),
associateStrip = cms.bool(True),
pixelSimLinkSrc = cms.InputTag("simSiPixelDigis"),
stripSimLinkSrc = cms.InputTag("simSiStripDigis"),
Purity_SimToReco = cms.double(0.75),
Cut_RecoToSim = cms.double(0.75),
SimToRecoDenominator = cms.string('sim'), ##"reco"
Expand Down
2 changes: 2 additions & 0 deletions Validation/GlobalRecHits/python/globalrechits_analyze_cfi.py
Expand Up @@ -30,6 +30,8 @@
ECalUncalEESrc = cms.InputTag("ecalWeightUncalibRecHit","EcalUncalibRecHitsEE"),
Name = cms.untracked.string('GlobalRecHitsAnalyzer'),
Verbosity = cms.untracked.int32(0), ## 0 provides no output
pixelSimLinkSrc = cms.InputTag("simSiPixelDigis"),
stripSimLinkSrc = cms.InputTag("simSiStripDigis"),

associateStrip = cms.bool(True),
MuRPCSrc = cms.InputTag("rpcRecHits"),
Expand Down
Expand Up @@ -16,6 +16,8 @@
associatePixel = cms.bool(True),
associateRecoTracks = cms.bool(False),
associateStrip = cms.bool(False),
pixelSimLinkSrc = cms.InputTag("simSiPixelDigis"),
stripSimLinkSrc = cms.InputTag("simSiStripDigis"),
ROUList = cms.vstring('g4SimHitsTrackerHitsPixelBarrelLowTof',
'g4SimHitsTrackerHitsPixelBarrelHighTof',
'g4SimHitsTrackerHitsPixelEndcapLowTof',
Expand Down
Expand Up @@ -992,6 +992,8 @@
'g4SimHitsTrackerHitsTECHighTof'),
associateRecoTracks = cms.bool(False),
# string trajectoryInput = "rsWithMaterialTracks"
pixelSimLinkSrc = cms.InputTag("simSiPixelDigis"),
stripSimLinkSrc = cms.InputTag("simSiStripDigis"),
associateStrip = cms.bool(True)
)

Expand Down
2 changes: 2 additions & 0 deletions Validation/TrackerRecHits/python/SiPixelRecHitsValid_cfi.py
Expand Up @@ -9,6 +9,8 @@
'g4SimHitsTrackerHitsPixelEndcapHighTof'),
associateRecoTracks = cms.bool(False),
associateStrip = cms.bool(False),
pixelSimLinkSrc = cms.InputTag("simSiPixelDigis"),
stripSimLinkSrc = cms.InputTag("simSiStripDigis"),
verbose = cms.untracked.bool(False)
)

Expand Down
2 changes: 2 additions & 0 deletions Validation/TrackerRecHits/python/SiStripRecHitsValid_cfi.py
Expand Up @@ -289,6 +289,8 @@
associateStrip = cms.bool(True),
rphiRecHits = cms.InputTag("siStripMatchedRecHits","rphiRecHit"),
RecHitProducer = cms.string('siStripMatchedRecHits'),
pixelSimLinkSrc = cms.InputTag("simSiPixelDigis"),
stripSimLinkSrc = cms.InputTag("simSiStripDigis"),
verbose = cms.untracked.bool(False)
)

Expand Down

0 comments on commit 302f97a

Please sign in to comment.