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

Add CLDconfig #1

Merged
merged 33 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
049ff0e
Copy fcceeConfig to CLDConfig
Zehvogel Jul 25, 2023
033b971
CLDConfig: rename files
Zehvogel Jul 25, 2023
62ccaa8
CLDConfig: add auto converted Gaudi steering file
Zehvogel Jul 25, 2023
3b60f13
Update readme
Zehvogel Jul 25, 2023
f319b5b
CLDReconstruction.py: remove trailing white space
Zehvogel Jul 26, 2023
c7feb66
CLDReconstruction.py: move MyADIAProcessor and EventNumber to their c…
Zehvogel Jul 26, 2023
d19dd69
CLDReconstruction.py: correct DD4hep file path
Zehvogel Jul 26, 2023
5a73d4f
CLDReconstruction.py: Remove Config processor
Zehvogel Jul 26, 2023
1341cf6
CLDReconstruction.py: change input filename hint
Zehvogel Jul 26, 2023
5199f48
CLDReconstruction.py: move and refactor Overlay
Zehvogel Jul 27, 2023
de605dd
CLDReconstruction.py: refactor DDCaloDigi parameters
Zehvogel Jul 27, 2023
25b8001
CLDReconstruction.py: switch to `k4DataSvc`
Zehvogel Jul 27, 2023
449f1ee
CLDReconstruction.py: make Overlay configurable
Zehvogel Jul 27, 2023
cd1104a
CLDReconstruction.py: refactor Pandora parameters
Zehvogel Jul 27, 2023
49919b5
CLDReconstruction.py: configurable CaloIntegrationTIme
Zehvogel Jul 27, 2023
8e742d8
CLDReconstruction.py: configurable tracking
Zehvogel Jul 27, 2023
2f13671
CLDReconstruction.py: move EventNumber to the back
Zehvogel Aug 16, 2023
d498f6c
CLDReconstruction.py: conf. VertexUnconstrained
Zehvogel Aug 16, 2023
2867403
CLDReconstruction.py: move LCIOOutputProcessors
Zehvogel Aug 16, 2023
492bb26
fix Pandora settings
Zehvogel Aug 17, 2023
4f6c337
CLDReconstruction.py: add in- and output for lcio/edm4hep
Zehvogel Aug 17, 2023
f55bea5
CLDReconstruction.pt: reformat tracking parameters
Zehvogel Aug 17, 2023
eb47e28
add first test
Zehvogel Aug 18, 2023
14656d1
remove test output limit
Zehvogel Aug 18, 2023
61336f5
remove double import
Zehvogel Aug 18, 2023
18ba084
fix typo
Zehvogel Aug 29, 2023
2715b0c
CLDReco: add import os
andresailer Oct 11, 2023
96b67bc
CLDReco: introduce svcList, add evtsvc to this list, set input for ev…
andresailer Oct 11, 2023
b9048a1
CLDReco: replace MarlinDD4hep with GeoSvc
andresailer Oct 11, 2023
304110b
CLDReco: set default for output_basename
andresailer Oct 11, 2023
2228141
CLDReco: Use EDM4hep2LCIO when we have EDM4hep input, attach tool
andresailer Oct 11, 2023
9eb44a4
CLDReco: add input processor to algList
andresailer Oct 11, 2023
afba8bb
Test: set detector model, fix inputFileS
andresailer Oct 11, 2023
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
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: test

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
SETUP: ['/cvmfs/sw.hsf.org/key4hep/setup.sh', '/cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh']
steps:
- uses: cvmfs-contrib/[email protected]

- name: Checkout
uses: actions/checkout@v3

- name: Download test inputs
run: |
wget http://lreichen.webtest.cern.ch/test.slcio

- name: Start container
run: |
docker run \
-it --name CLDConfig_CI \
-v ${{ github.workspace }}:/CLDConfig \
-v /cvmfs:/cvmfs:shared \
-d ghcr.io/aidasoft/centos7:latest /bin/bash

- name: Run tests (pytest)
run: |
docker exec CLDConfig_CI /bin/bash -c 'source ${{ matrix.SETUP }};
cd CLDConfig;
pytest;
'
1,155 changes: 1,155 additions & 0 deletions CLDConfig/CLDReconstruction.py

Large diffs are not rendered by default.

1,505 changes: 1,505 additions & 0 deletions CLDConfig/CLDReconstruction.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<!-- Pandora settings xml file -->

<pandora>
<!-- GLOBAL SETTINGS -->
<IsMonitoringEnabled>true</IsMonitoringEnabled>
<ShouldDisplayAlgorithmInfo>false</ShouldDisplayAlgorithmInfo>
<ShouldCollapseMCParticlesToPfoTarget>true</ShouldCollapseMCParticlesToPfoTarget>

<!-- PLUGIN SETTINGS -->
<EmShowerPlugin>LCEmShowerId</EmShowerPlugin>
<PhotonPlugin>LCPhotonId</PhotonPlugin>
<ElectronPlugin>LCElectronId</ElectronPlugin>
<MuonPlugin>LCMuonId</MuonPlugin>

<!-- PLUGIN SETTINGS -->
<LCMuonId>
<MinMuonTrackSegmentHitsCut>5</MinMuonTrackSegmentHitsCut>
<MuonRmsCut>15.625</MuonRmsCut>
</LCMuonId>
<!-- ALGORITHM SETTINGS -->

<!-- Set calo hit properties, then select tracks and hits to use for clustering -->
<algorithm type = "CaloHitPreparation"/>
<algorithm type = "EventPreparation">
<OutputTrackListName>Tracks</OutputTrackListName>
<OutputCaloHitListName>CaloHits</OutputCaloHitListName>
<OutputMuonCaloHitListName>MuonYokeHits</OutputMuonCaloHitListName>
<ReplacementTrackListName>Tracks</ReplacementTrackListName>
<ReplacementCaloHitListName>CaloHits</ReplacementCaloHitListName>
</algorithm>

<!-- Standalone muon clustering -->
<algorithm type = "MuonReconstruction">
<algorithm type = "ConeClustering" description = "MuonClusterFormation">
<TanConeAngleCoarse>0.3</TanConeAngleCoarse>
<ConeApproachMaxSeparation>2000</ConeApproachMaxSeparation>
<MaxClusterDirProjection>2000</MaxClusterDirProjection>
<ShouldUseIsolatedHits>true</ShouldUseIsolatedHits>
<LayersToStepBackCoarse>30</LayersToStepBackCoarse>
<AdditionalPadWidthsCoarse>1</AdditionalPadWidthsCoarse>
<SameLayerPadWidthsCoarse>1.8</SameLayerPadWidthsCoarse>
<ShouldUseTrackSeed>false</ShouldUseTrackSeed>
<MaxTrackSeedSeparation>0</MaxTrackSeedSeparation>
<MaxLayersToTrackSeed>0</MaxLayersToTrackSeed>
<MaxLayersToTrackLikeHit>0</MaxLayersToTrackLikeHit>
<TrackPathWidth>0</TrackPathWidth>
</algorithm>
<MinClusterOccupiedLayers>5</MinClusterOccupiedLayers>
<MinClusterLayerSpan>5</MinClusterLayerSpan>
<MaxClusterCaloHits>30</MaxClusterCaloHits>
<!-- Input lists -->
<InputTrackListName>Tracks</InputTrackListName>
<InputCaloHitListName>CaloHits</InputCaloHitListName>
<InputMuonCaloHitListName>MuonYokeHits</InputMuonCaloHitListName>
<!-- Output lists -->
<OutputTrackListName>MuonRemovedTracks</OutputTrackListName>
<OutputCaloHitListName>MuonRemovedCaloHits</OutputCaloHitListName>
<OutputMuonCaloHitListName>MuonRemovedYokeHits</OutputMuonCaloHitListName>
<OutputMuonClusterListName>MuonClusters</OutputMuonClusterListName>
<OutputMuonPfoListName>MuonPfos</OutputMuonPfoListName>
<!-- Current list management -->
<ReplacementTrackListName>MuonRemovedTracks</ReplacementTrackListName>
<ReplacementCaloHitListName>MuonRemovedCaloHits</ReplacementCaloHitListName>
<ReplaceCurrentClusterList>false</ReplaceCurrentClusterList>
<ReplaceCurrentPfoList>false</ReplaceCurrentPfoList>
</algorithm>

<!-- Standalone photon clustering -->
<algorithm type = "PhotonReconstruction">
<algorithm type = "ConeClustering" description = "PhotonClusterFormation">
<ClusterSeedStrategy>0</ClusterSeedStrategy>
<ShouldUseTrackSeed>false</ShouldUseTrackSeed>
<ShouldUseOnlyECalHits>true</ShouldUseOnlyECalHits>
<ConeApproachMaxSeparation>250.</ConeApproachMaxSeparation>
</algorithm>
<ClusterListName>PhotonClusters</ClusterListName>
<ReplaceCurrentClusterList>true</ReplaceCurrentClusterList>
<ShouldMakePdfHistograms>true</ShouldMakePdfHistograms>
<ShouldDrawPdfHistograms>false</ShouldDrawPdfHistograms>
<EnergyBinLowerEdges>0 0.2 0.5 1 1.5 2.5 5 10 20</EnergyBinLowerEdges>
<NEnergyBins>9</NEnergyBins>
<HistogramFile>PandoraLikelihoodData9EBin.xml</HistogramFile>
</algorithm>
</pandora>
Loading
Loading