Skip to content
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

update sliding window clustering job options #140

Merged
merged 2 commits into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 17 additions & 19 deletions FCCee/FullSim/ALLEGRO/ALLEGRO_o1_v02/run_digi_reco.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from Configurables import PodioOutput
from Configurables import GeoSvc
from Configurables import CorrectCaloClusters
from Configurables import CreateCaloClustersSlidingWindow
from Configurables import CaloTowerTool
from Configurables import CreateCaloClustersSlidingWindowFCCee
from Configurables import CaloTowerToolFCCee
from Configurables import CreateEmptyCaloCellsCollection
from Configurables import CreateCaloCellPositionsFCCee
from Configurables import CellPositionsECalBarrelModuleThetaSegTool
Expand Down Expand Up @@ -220,10 +220,8 @@
createemptycells.cells.Path = "emptyCaloCells"

# Produce sliding window clusters
towers = CaloTowerTool("towers",
deltaEtaTower=0.01, deltaPhiTower=2*_pi/768,
radiusForPosition=2160 + 40 / 2.0,
# ecalBarrelReadoutName = ecalBarrelReadoutNamePhiEta,
towers = CaloTowerToolFCCee("towers",
deltaThetaTower = 0.009817477, deltaPhiTower = 2*2*_pi/1536.,
ecalBarrelReadoutName=ecalBarrelReadoutName,
ecalEndcapReadoutName=ecalEndcapReadoutName,
ecalFwdReadoutName="",
Expand All @@ -232,7 +230,7 @@
hcalEndcapReadoutName="",
hcalFwdReadoutName="",
OutputLevel=INFO)
towers.ecalBarrelCells.Path = ecalBarrelCellsName
towers.ecalBarrelCells.Path = ecalBarrelPositionedCellsName
towers.ecalEndcapCells.Path = "ECalEndcapCells"
towers.ecalFwdCells.Path = "emptyCaloCells"

Expand All @@ -242,23 +240,23 @@
towers.hcalFwdCells.Path = "emptyCaloCells"

# Cluster variables
windE = 9
windT = 9
windP = 17
posE = 5
posT = 5
posP = 11
dupE = 7
dupT = 7
dupP = 13
finE = 9
finT = 9
finP = 17
# Minimal energy to create a cluster in GeV (FCC-ee detectors have to reconstruct low energy particles)
threshold = 0.040

createClusters = CreateCaloClustersSlidingWindow("CreateClusters",
createClusters = CreateCaloClustersSlidingWindowFCCee("CreateClusters",
towerTool=towers,
nEtaWindow=windE, nPhiWindow=windP,
nEtaPosition=posE, nPhiPosition=posP,
nEtaDuplicates=dupE, nPhiDuplicates=dupP,
nEtaFinal=finE, nPhiFinal=finP,
nThetaWindow=windT, nPhiWindow=windP,
nThetaPosition=posT, nPhiPosition=posP,
nThetaDuplicates=dupT, nPhiDuplicates=dupP,
nThetaFinal=finT, nPhiFinal=finP,
energyThreshold=threshold,
energySharingCorrection=False,
attachCells=True,
Expand Down Expand Up @@ -424,9 +422,9 @@
]
TopAlg += [
createemptycells,
# createClusters,
# createEcalBarrelPositionedCaloClusterCells,
# correctCaloClusters,
createClusters,
createEcalBarrelPositionedCaloClusterCells,
correctCaloClusters,
createTopoClusters,
createEcalBarrelPositionedCaloTopoClusterCells,
correctCaloTopoClusters,
Expand Down
Loading