-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Updated Phase2TrackerClusterizer validation code #14225
Merged
cmsbuild
merged 2 commits into
cms-sw:CMSSW_8_1_X
from
thomaslenzi:CMSSW_8_0_1_Phase2Clusterizer
Apr 28, 2016
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
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
61 changes: 61 additions & 0 deletions
61
RecoLocalTracker/SiPhase2Clusterizer/test/ClustersValidationTest_flat_cfg.py
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Imports | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
# Create a new CMS process | ||
process = cms.Process('cluTest') | ||
|
||
# Import all the necessary files | ||
process.load('Configuration.StandardSequences.Services_cff') | ||
process.load('FWCore.MessageService.MessageLogger_cfi') | ||
process.load('Configuration.EventContent.EventContent_cff') | ||
process.load('Configuration.StandardSequences.MagneticField_38T_cff') | ||
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff') | ||
process.load('Configuration.Geometry.GeometryExtended2023LRecoReco_cff') | ||
|
||
# Number of events (-1 = all) | ||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(-1) | ||
) | ||
|
||
# Input file | ||
process.source = cms.Source('PoolSource', | ||
fileNames = cms.untracked.vstring('file:step3.root') | ||
) | ||
|
||
# TAG | ||
from Configuration.AlCa.GlobalTag import GlobalTag | ||
#process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgradePLS3', '') | ||
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '') | ||
|
||
# Output | ||
process.TFileService = cms.Service('TFileService', | ||
fileName = cms.string('file:cluster_validation.root') | ||
) | ||
|
||
# DEBUG | ||
process.MessageLogger = cms.Service('MessageLogger', | ||
debugModules = cms.untracked.vstring('siPhase2Clusters'), | ||
destinations = cms.untracked.vstring('cout'), | ||
cout = cms.untracked.PSet( | ||
threshold = cms.untracked.string('ERROR') | ||
) | ||
) | ||
|
||
# Analyzer | ||
process.analysis = cms.EDAnalyzer('Phase2TrackerClusterizerValidation', | ||
src = cms.InputTag("siPhase2Clusters"), | ||
links = cms.InputTag("simSiPixelDigis", "Tracker") | ||
) | ||
|
||
# Processes to run | ||
process.p = cms.Path(process.analysis) | ||
|
||
|
||
#from SLHCUpgradeSimulations.Configuration.phase2TkFlat import * | ||
#customise(process) | ||
|
||
# Automatic addition of the customisation function from SLHCUpgradeSimulations.Configuration.combinedCustoms | ||
from SLHCUpgradeSimulations.Configuration.combinedCustoms import cust_2023LReco | ||
|
||
#call to customisation function cust_2023dev imported from SLHCUpgradeSimulations.Configuration.combinedCustoms | ||
process = cust_2023LReco(process) |
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
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.
Please move non-sim code to some other place.
Reco* subsystem should depend on the Sim minimally.
It's OK for validation code, but for the Phase2TrackerDigiCommon it doesn't seem justifiable, since the code just deals with TrackerTopology and DetId
SimTracker/SiPhase2Digitizer/src/Phase2TrackerDigiCommon.cc
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.
Do I understand correctly that your comment is related to the file in SimTracker and not the ClusterValidation file ? If so, I cannot move this file but can copy/paste the code locally (which might not be the best solution).
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.
@thomaslenzi
Yes, the comment was about somewhat improper location of Phase2TrackerDigiCommon.
If you are not the main developer there, please pass this along.
It doesn't have to be addressed with this PR, but better be, eventually.