Skip to content

Commit f30e053

Browse files
authored
Merge pull request cms-sw#36172 from rovere/PatternRecognitionByFastJet
HGCAL Pattern Recognition using FastJet
2 parents de96df3 + 3a0c1b3 commit f30e053

File tree

9 files changed

+467
-2
lines changed

9 files changed

+467
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import FWCore.ParameterSet.Config as cms
2+
3+
# This modifier is for injecting CLUE3D-based iterations in TICL.
4+
5+
fastJetTICL = cms.Modifier()

Configuration/PyReleaseValidation/python/upgradeWorkflowComponents.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,52 @@ def condition(self, fragment, stepList, key, hasHarvest):
394394
offset = 0.9,
395395
)
396396

397+
# Special TICL Pattern recognition Workflows
398+
class UpgradeWorkflow_ticl_clue3D(UpgradeWorkflow):
399+
def setup_(self, step, stepName, stepDict, k, properties):
400+
if 'RecoGlobal' in step:
401+
stepDict[stepName][k] = merge([self.step3, stepDict[step][k]])
402+
if 'HARVESTGlobal' in step:
403+
stepDict[stepName][k] = merge([self.step4, stepDict[step][k]])
404+
def condition(self, fragment, stepList, key, hasHarvest):
405+
return (fragment=="TTbar_14TeV" or 'CloseByPGun_CE' in fragment) and '2026' in key
406+
upgradeWFs['ticl_clue3D'] = UpgradeWorkflow_ticl_clue3D(
407+
steps = [
408+
'RecoGlobal',
409+
'HARVESTGlobal'
410+
],
411+
PU = [
412+
'RecoGlobal',
413+
'HARVESTGlobal'
414+
],
415+
suffix = '_ticl_clue3D',
416+
offset = 0.201,
417+
)
418+
upgradeWFs['ticl_clue3D'].step3 = {'--procModifiers': 'clue3D'}
419+
upgradeWFs['ticl_clue3D'].step4 = {'--procModifiers': 'clue3D'}
420+
421+
class UpgradeWorkflow_ticl_FastJet(UpgradeWorkflow):
422+
def setup_(self, step, stepName, stepDict, k, properties):
423+
if 'RecoGlobal' in step:
424+
stepDict[stepName][k] = merge([self.step3, stepDict[step][k]])
425+
if 'HARVESTGlobal' in step:
426+
stepDict[stepName][k] = merge([self.step4, stepDict[step][k]])
427+
def condition(self, fragment, stepList, key, hasHarvest):
428+
return (fragment=="TTbar_14TeV" or 'CloseByPGun_CE' in fragment) and '2026' in key
429+
upgradeWFs['ticl_FastJet'] = UpgradeWorkflow_ticl_FastJet(
430+
steps = [
431+
'RecoGlobal',
432+
'HARVESTGlobal'
433+
],
434+
PU = [
435+
'RecoGlobal',
436+
'HARVESTGlobal'
437+
],
438+
suffix = '_ticl_FastJet',
439+
offset = 0.202,
440+
)
441+
upgradeWFs['ticl_FastJet'].step3 = {'--procModifiers': 'fastJetTICL'}
442+
upgradeWFs['ticl_FastJet'].step4 = {'--procModifiers': 'fastJetTICL'}
397443

398444
# Track DNN workflows
399445
class UpgradeWorkflow_trackdnn(UpgradeWorkflow):

RecoHGCal/TICL/plugins/BuildFile.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<use name="TrackingTools/GeomPropagators"/>
3030
<use name="TrackingTools/Records"/>
3131
<use name="TrackingTools/TrajectoryState"/>
32+
<use name="fastjet"/>
3233
<library file="*.cc" name="RecoHGCalTICLPlugins">
3334
<flags EDM_PLUGIN="1"/>
3435
</library>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#include "RecoHGCal/TICL/plugins/PatternRecognitionPluginFactory.h"
22
#include "PatternRecognitionbyCA.h"
33
#include "PatternRecognitionbyCLUE3D.h"
4+
#include "PatternRecognitionbyFastJet.h"
45
#include "FWCore/ParameterSet/interface/ValidatedPluginFactoryMacros.h"
56
#include "FWCore/ParameterSet/interface/ValidatedPluginMacros.h"
67

78
EDM_REGISTER_VALIDATED_PLUGINFACTORY(PatternRecognitionFactory, "PatternRecognitionFactory");
89
EDM_REGISTER_VALIDATED_PLUGINFACTORY(PatternRecognitionHFNoseFactory, "PatternRecognitionHFNoseFactory");
910
DEFINE_EDM_VALIDATED_PLUGIN(PatternRecognitionFactory, ticl::PatternRecognitionbyCA<TICLLayerTiles>, "CA");
1011
DEFINE_EDM_VALIDATED_PLUGIN(PatternRecognitionFactory, ticl::PatternRecognitionbyCLUE3D<TICLLayerTiles>, "CLUE3D");
12+
DEFINE_EDM_VALIDATED_PLUGIN(PatternRecognitionFactory, ticl::PatternRecognitionbyFastJet<TICLLayerTiles>, "FastJet");
1113
DEFINE_EDM_VALIDATED_PLUGIN(PatternRecognitionHFNoseFactory, ticl::PatternRecognitionbyCA<TICLLayerTilesHFNose>, "CA");

0 commit comments

Comments
 (0)