Skip to content

Commit 5530fdb

Browse files
authored
Merge pull request #47577 from jlidrych/cosmicsStripClusterCut
Increase threshold of max number of strips clusters for cosmics
2 parents 0d9a24f + d253042 commit 5530fdb

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

HLTrigger/Configuration/python/customizeHLTforCMSSW.py

+16
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,21 @@ def customizeHLTfor47378(process):
5252

5353
return process
5454

55+
def customizeHLTfor47577(process):
56+
"""Needed to increase threshold of max number of strips clusters for cosmics"""
57+
58+
for prod in producers_by_type(process, "SimpleCosmicBONSeeder"):
59+
if hasattr(prod, 'ClusterCheckPSet'):
60+
pset = getattr(prod,'ClusterCheckPSet')
61+
if hasattr(pset, 'MaxNumberOfStripClusters'):
62+
prod.ClusterCheckPSet.MaxNumberOfStripClusters = 1000
63+
64+
for prod in producers_by_type(process, "CtfSpecialSeedGenerator"):
65+
if hasattr(prod, 'MaxNumberOfStripClusters'):
66+
prod.MaxNumberOfStripClusters = 1000
67+
68+
return process
69+
5570
# CMSSW version specific customizations
5671
def customizeHLTforCMSSW(process, menuType="GRun"):
5772

@@ -60,5 +75,6 @@ def customizeHLTforCMSSW(process, menuType="GRun"):
6075
# add call to action function in proper order: newest last!
6176
# process = customiseFor12718(process)
6277
process = customizeHLTfor47378(process)
78+
process = customizeHLTfor47577(process)
6379

6480
return process

RecoTracker/SpecialSeedGenerators/python/CombinatorialSeedGeneratorForCosmics_cfi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
CheckHitsAreOnDifferentLayers = cms.bool(False),
108108
SetMomentum = cms.bool(True),
109109
ClusterCollectionLabel = cms.InputTag("siStripClusters"),
110-
MaxNumberOfStripClusters = cms.uint32(300),
110+
MaxNumberOfStripClusters = cms.uint32(1000),
111111
PixelClusterCollectionLabel = cms.InputTag("siPixelClusters"),
112112
MaxNumberOfPixelClusters = cms.uint32(1000),
113113
requireBOFF = cms.bool(False),

RecoTracker/SpecialSeedGenerators/python/CosmicSeed_cfi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
GeometricStructure = cms.untracked.string('STANDARD'), ##other choice: TIBD+
77

88
matchedRecHits = cms.InputTag("siStripMatchedRecHits","matchedRecHit"),
9-
MaxNumberOfStripClusters = cms.uint32(300),
9+
MaxNumberOfStripClusters = cms.uint32(1000),
1010
maxSeeds = cms.int32(10000),
1111
SeedPt = cms.double(5.0),
1212
HitsForSeeds = cms.untracked.string('pairs'),

RecoTracker/SpecialSeedGenerators/python/SimpleCosmicBONSeeder_cfi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def makeSimpleCosmicSeedLayers(*layers):
3838
TTRHBuilder = 'WithTrackAngle',
3939
ClusterCheckPSet = cms.PSet(
4040
doClusterCheck = cms.bool(True),
41-
MaxNumberOfStripClusters = cms.uint32(300),
41+
MaxNumberOfStripClusters = cms.uint32(1000),
4242
ClusterCollectionLabel = cms.InputTag("siStripClusters"),
4343
DontCountDetsAboveNClusters = cms.uint32(20), # if N > 0, ignore in total the dets with more than N clusters
4444
MaxNumberOfPixelClusters = cms.uint32(1000),

RecoTracker/SpecialSeedGenerators/src/SimpleCosmicBONSeeder.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ void SimpleCosmicBONSeeder::fillDescriptions(edm::ConfigurationDescriptions &des
629629

630630
edm::ParameterSetDescription clusterCheckPSet;
631631
clusterCheckPSet.add<bool>("doClusterCheck", true);
632-
clusterCheckPSet.add<uint32_t>("MaxNumberOfStripClusters", 300);
632+
clusterCheckPSet.add<uint32_t>("MaxNumberOfStripClusters", 1000);
633633
clusterCheckPSet.add<edm::InputTag>("ClusterCollectionLabel", edm::InputTag("siStripClusters"));
634634
clusterCheckPSet.add<uint32_t>("DontCountDetsAboveNClusters", 20);
635635
clusterCheckPSet.add<uint32_t>("MaxNumberOfPixelClusters", 1000);

0 commit comments

Comments
 (0)