Skip to content

Commit

Permalink
Merge pull request cms-sw#95 from mastrolorenzo/GeometricC2d_fixed
Browse files Browse the repository at this point in the history
fixed the variable used to cut on seeding and clustering thresholds
  • Loading branch information
jbsauvan authored Mar 25, 2017
2 parents 7f465e4 + e891ecd commit 1d86e66
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
4 changes: 2 additions & 2 deletions L1Trigger/L1THGCal/src/be_algorithms/HGCalClusteringImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void HGCalClusteringImpl::clusterize( const edm::PtrVector<l1t::HGCalTriggerCell
/* search for cluster seeds */
int itc=0;
for( edm::PtrVector<l1t::HGCalTriggerCell>::const_iterator tc = triggerCellsPtrs.begin(); tc != triggerCellsPtrs.end(); ++tc,++itc ){
isSeed[itc] = ( (*tc)->hwPt() > seedThreshold_) ? true : false;
isSeed[itc] = ( (*tc)->mipPt() > seedThreshold_) ? true : false;
}

/* clustering the TCs */
Expand All @@ -53,7 +53,7 @@ void HGCalClusteringImpl::clusterize( const edm::PtrVector<l1t::HGCalTriggerCell
itc=0;
for( edm::PtrVector<l1t::HGCalTriggerCell>::const_iterator tc = triggerCellsPtrs.begin(); tc != triggerCellsPtrs.end(); ++tc,++itc ){

if( (*tc)->hwPt() < triggerCellThreshold_ ){
if( (*tc)->mipPt() < triggerCellThreshold_ ){
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion L1Trigger/L1THGCal/test/BuildFile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<use name="DataFormats/L1Trigger"/>
<use name="SimDataFormats/CaloTest"/>

<library name="testL1TriggerL1THGCal" file="HGCalTriggerBestChoiceTester.cc,HGCalTriggerBestChoiceTriggerCellTester.cc,HGCalTriggerGeomTester.cc,HGCalTriggerBestChoiceMonitor.cc,HGCalTriggerThresholdTriggerCellTester.cc, calib/*.cc, hgc_clustering/*.cc">
<library name="testL1TriggerL1THGCal" file="HGCalTriggerBestChoiceTester.cc,HGCalTriggerBestChoiceTriggerCellTester.cc,HGCalTriggerGeomTester.cc,HGCalTriggerBestChoiceMonitor.cc,HGCalTriggerThresholdTriggerCellTester.cc, calib/*.cc">
<flags EDM_PLUGIN="1"/>
</library>

Expand Down
8 changes: 1 addition & 7 deletions L1Trigger/L1THGCal/test/L1Clustering_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,6 @@
process.hgcalTriggerPrimitiveDigiProducer.BEConfiguration.algorithms = cms.VPSet( cluster_algo_all )
process.hgcl1tpg_step = cms.Path( process.hgcalTriggerPrimitives )
process.digi2raw_step = cms.Path( process.DigiToRaw )
process.HGC_clustering = cms.EDAnalyzer("testHGCClustering",
#Luca triggerCellInputTag=cms.InputTag("hgcalTriggerPrimitiveDigiProducer:C2dClusterAlgoBestChoice")
clusterInputTag=cms.InputTag("hgcalTriggerPrimitiveDigiProducer:HGCClusterAlgoBestChoice")
)

process.test_step = cms.Path(process.HGC_clustering)

process.endjob_step = cms.EndPath(process.endOfProcess)
process.FEVTDEBUGoutput_step = cms.EndPath(process.FEVTDEBUGoutput)
Expand All @@ -149,7 +143,7 @@
# Schedule definition
process.schedule = cms.Schedule( process.generation_step, process.genfiltersummary_step, process.simulation_step,
process.digitisation_step, process.L1simulation_step, process.hgcl1tpg_step,
process.digi2raw_step, #process.test_step,
process.digi2raw_step,
process.ntuple_step,
process.endjob_step,
process.FEVTDEBUGoutput_step
Expand Down
10 changes: 3 additions & 7 deletions L1Trigger/L1THGCal/test/testNtuplyzer_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
2 ** process.hgcalTriggerPrimitiveDigiProducer.FECodec.triggerCellTruncationBits.value()
)

# Adjust the max-dR for 2D-clustering
process.hgcalTriggerPrimitiveDigiProducer.BEConfiguration.algorithms[0].C2d_parameters.dR_cluster = cms.double(3.)

trgCells_algo_all = cms.PSet( AlgorithmName = cms.string('SingleCellClusterAlgoBestChoice'),
FECodec = process.hgcalTriggerPrimitiveDigiProducer.FECodec,
Expand All @@ -73,11 +75,6 @@
process.hgcalTriggerPrimitiveDigiProducer.BEConfiguration.algorithms = cms.VPSet( cluster_algo_all )
process.hgcl1tpg_step = cms.Path( process.hgcalTriggerPrimitives )
process.digi2raw_step = cms.Path( process.DigiToRaw )
#process.HGC_clustering = cms.EDAnalyzer("testHGCClustering",
# clusterInputTag=cms.InputTag("hgcalTriggerPrimitiveDigiProducer:HGCClusterAlgoBestChoice")
# )

#process.test_step = cms.Path(process.HGC_clustering)

process.endjob_step = cms.EndPath(process.endOfProcess)

Expand All @@ -87,8 +84,7 @@

# Schedule definition
process.schedule = cms.Schedule( process.hgcl1tpg_step,
#process.digi2raw_step,
#process.test_step,
#process.digi2raw_step,
process.ntuple_step, # create the persistent event
process.endjob_step
)
Expand Down

0 comments on commit 1d86e66

Please sign in to comment.