-
Notifications
You must be signed in to change notification settings - Fork 4.6k
PPS: AlCaReco producer, content filters and testing files #36273
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b253134
PPS AlcaReco producer, content filters and testing files
grzanka 689092d
major renaming of producers
grzanka c02c2a7
Fixed the python indentation in the PPSAlCaRecoProducer config.
MatiXOfficial 6016617
Updated the InputTags in the PPSAlCaRecoProducer tests.
MatiXOfficial ead8252
Added unit tests for PPSAlCaRecoProducer.
MatiXOfficial File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
Calibration/PPSAlCaRecoProducer/python/ALCARECOPPSCalMaxTracks_Output_cff.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| import FWCore.ParameterSet.Config as cms | ||
|
|
||
| OutALCARECOPPSCalMaxTracks_noDrop = cms.PSet( | ||
| SelectEvents = cms.untracked.PSet( | ||
| SelectEvents = cms.vstring('pathALCARECOPPSCalMaxTracks') | ||
| ), | ||
| outputCommands = cms.untracked.vstring( | ||
| # timing diamonds | ||
| 'keep TotemFEDInfos_ctppsDiamondRawToDigiAlCaRecoProducer_*_*', | ||
| 'keep CTPPSDiamondDigiedmDetSetVector_ctppsDiamondRawToDigiAlCaRecoProducer_*_*', | ||
| 'keep TotemVFATStatusedmDetSetVector_ctppsDiamondRawToDigiAlCaRecoProducer_*_*', | ||
| 'keep CTPPSDiamondRecHitedmDetSetVector_ctppsDiamondRecHitsAlCaRecoProducer_*_*', | ||
| 'keep CTPPSDiamondLocalTrackedmDetSetVector_ctppsDiamondLocalTracksAlCaRecoProducer_*_*', | ||
|
|
||
| #diamond sampic | ||
| 'keep TotemTimingDigiedmDetSetVector_totemTimingRawToDigiAlCaRecoProducer_*_*', | ||
| 'keep TotemTimingRecHitedmDetSetVector_totemTimingRecHitsAlCaRecoProducer_*_*', | ||
| 'keep TotemTimingLocalTrackedmDetSetVector_diamondSampicLocalTracksAlCaRecoProducer_*_*', | ||
|
|
||
| # tracking pixels | ||
| 'keep CTPPSPixelDigiedmDetSetVector_ctppsPixelDigisAlCaRecoProducer_*_*', | ||
| 'keep CTPPSPixelDataErroredmDetSetVector_ctppsPixelDigisAlCaRecoProducer_*_*', | ||
| 'keep CTPPSPixelClusteredmDetSetVector_ctppsPixelClustersAlCaRecoProducer_*_*', | ||
| 'keep CTPPSPixelRecHitedmDetSetVector_ctppsPixelRecHitsAlCaRecoProducer_*_*', | ||
| 'keep CTPPSPixelLocalTrackedmDetSetVector_ctppsPixelLocalTracksAlCaRecoProducer_*_*', | ||
|
|
||
| # CTPPS common | ||
| 'keep CTPPSLocalTrackLites_ctppsLocalTrackLiteProducerAlCaRecoProducer_*_*', | ||
| 'keep recoForwardProtons_ctppsProtonsAlCaRecoProducer_*_*', | ||
|
|
||
| # HLT info | ||
| 'keep *_hltGtStage2ObjectMap_*_*', | ||
| 'keep edmTriggerResults_*_*_*', | ||
| 'keep triggerTriggerEvent_*_*_*' | ||
| ) | ||
| ) | ||
|
|
||
| OutALCARECOPPSCalMaxTracks = OutALCARECOPPSCalMaxTracks_noDrop.clone() | ||
| OutALCARECOPPSCalMaxTracks.outputCommands.insert(0, 'drop *') |
105 changes: 105 additions & 0 deletions
105
Calibration/PPSAlCaRecoProducer/python/ALCARECOPPSCalMaxTracks_cff.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,105 @@ | ||||||
| import FWCore.ParameterSet.Config as cms | ||||||
|
|
||||||
| # 1. HLT filter | ||||||
| #------------------------------------------------------ | ||||||
| import HLTrigger.HLTfilters.hltHighLevel_cfi as _hlt | ||||||
| ALCARECOPPSCalMaxTracksFilter = _hlt.hltHighLevel.clone(eventSetupPathsKey = 'PPSCalMaxTracks') | ||||||
|
|
||||||
|
|
||||||
| # 2. RAW2DIGI | ||||||
| #------------------------------------------------------ | ||||||
|
|
||||||
| from EventFilter.CTPPSRawToDigi.ctppsRawToDigi_cff import * | ||||||
| from EventFilter.CTPPSRawToDigi.ctppsRawToDigi_cff import ctppsDiamondRawToDigi as _ctppsDiamondRawToDigi | ||||||
| from EventFilter.CTPPSRawToDigi.ctppsRawToDigi_cff import totemTimingRawToDigi as _totemTimingRawToDigi | ||||||
| from EventFilter.CTPPSRawToDigi.ctppsRawToDigi_cff import ctppsPixelDigis as _ctppsPixelDigis | ||||||
|
|
||||||
| ctppsDiamondRawToDigiAlCaRecoProducer = _ctppsDiamondRawToDigi.clone(rawDataTag = cms.InputTag('hltPPSCalibrationRaw')) | ||||||
| totemTimingRawToDigiAlCaRecoProducer = _totemTimingRawToDigi.clone(rawDataTag = cms.InputTag('hltPPSCalibrationRaw') ) | ||||||
| ctppsPixelDigisAlCaRecoProducer = _ctppsPixelDigis.clone(inputLabel = cms.InputTag('hltPPSCalibrationRaw')) | ||||||
|
|
||||||
| ctppsRawToDigiTaskAlCaRecoProducer = cms.Task( | ||||||
| ctppsDiamondRawToDigiAlCaRecoProducer, | ||||||
| totemTimingRawToDigiAlCaRecoProducer, | ||||||
| ctppsPixelDigisAlCaRecoProducer | ||||||
| ) | ||||||
|
|
||||||
| ALCARECOPPSCalMaxTracksRaw2Digi = cms.Sequence(ctppsRawToDigiTaskAlCaRecoProducer) | ||||||
|
|
||||||
| # 3 a). RECO - PIXELS | ||||||
| #------------------------------------------------------ | ||||||
|
|
||||||
| from RecoPPS.Configuration.recoCTPPS_cff import * | ||||||
| from RecoPPS.Local.ctppsPixelClusters_cfi import ctppsPixelClusters as _ctppsPixelClusters | ||||||
| from RecoPPS.Local.ctppsPixelRecHits_cfi import ctppsPixelRecHits as _ctppsPixelRecHits | ||||||
| from RecoPPS.Local.ctppsPixelLocalTracks_cfi import ctppsPixelLocalTracks as _ctppsPixelLocalTracks | ||||||
|
|
||||||
| ctppsPixelClustersAlCaRecoProducer = _ctppsPixelClusters.clone(tag = 'ctppsPixelDigisAlCaRecoProducer') | ||||||
| ctppsPixelRecHitsAlCaRecoProducer = _ctppsPixelRecHits.clone(RPixClusterTag = 'ctppsPixelClustersAlCaRecoProducer') | ||||||
| ctppsPixelLocalTracksAlCaRecoProducer = _ctppsPixelLocalTracks.clone(tag = 'ctppsPixelRecHitsAlCaRecoProducer') | ||||||
|
|
||||||
| ctppsPixelLocalReconstructionTaskAlCaRecoProducer = cms.Task( | ||||||
| ctppsPixelClustersAlCaRecoProducer, | ||||||
| ctppsPixelRecHitsAlCaRecoProducer, | ||||||
| ctppsPixelLocalTracksAlCaRecoProducer | ||||||
| ) | ||||||
|
|
||||||
| # 3 b). RECO - CTPPS DIAMONDS | ||||||
| #------------------------------------------------------ | ||||||
|
|
||||||
| from RecoPPS.Local.ctppsDiamondRecHits_cfi import ctppsDiamondRecHits as _ctppsDiamondRecHits | ||||||
| from RecoPPS.Local.ctppsDiamondLocalTracks_cfi import ctppsDiamondLocalTracks as _ctppsDiamondLocalTracks | ||||||
| ctppsDiamondRecHitsAlCaRecoProducer = _ctppsDiamondRecHits.clone(digiTag = cms.InputTag('ctppsDiamondRawToDigiAlCaRecoProducer','TimingDiamond')) | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| ctppsDiamondLocalTracksAlCaRecoProducer = _ctppsDiamondLocalTracks.clone(recHitsTag = 'ctppsDiamondRecHitsAlCaRecoProducer') | ||||||
|
|
||||||
| ctppsDiamondLocalReconstructionTaskAlCaRecoProducer = cms.Task( | ||||||
| ctppsDiamondRecHitsAlCaRecoProducer, | ||||||
| ctppsDiamondLocalTracksAlCaRecoProducer | ||||||
| ) | ||||||
|
|
||||||
| # 3 c). RECO - TIMING DIAMONDS | ||||||
| #------------------------------------------------------ | ||||||
|
|
||||||
| from RecoPPS.Local.totemTimingRecHits_cfi import totemTimingRecHits as _totemTimingRecHits | ||||||
| from RecoPPS.Local.diamondSampicLocalTracks_cfi import diamondSampicLocalTracks as _diamondSampicLocalTracks | ||||||
|
|
||||||
| totemTimingRecHitsAlCaRecoProducer = _totemTimingRecHits.clone(digiTag = cms.InputTag('totemTimingRawToDigiAlCaRecoProducer','TotemTiming')) | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| diamondSampicLocalTracksAlCaRecoProducer = _diamondSampicLocalTracks.clone(recHitsTag = 'totemTimingRecHitsAlCaRecoProducer') | ||||||
|
|
||||||
| diamondSampicLocalReconstructionTaskAlCaRecoProducer = cms.Task( | ||||||
| totemTimingRecHitsAlCaRecoProducer, | ||||||
| diamondSampicLocalTracksAlCaRecoProducer | ||||||
| ) | ||||||
|
|
||||||
| # 4. RECO - TRACKS and PROTONS | ||||||
| #------------------------------------------------------ | ||||||
|
|
||||||
| from RecoPPS.Local.ctppsLocalTrackLiteProducer_cff import ctppsLocalTrackLiteProducer as _ctppsLocalTrackLiteProducer | ||||||
|
|
||||||
| ctppsLocalTrackLiteProducerAlCaRecoProducer = _ctppsLocalTrackLiteProducer.clone( | ||||||
| includeStrips = False, | ||||||
| includeDiamonds = True, | ||||||
| includePixels = True, | ||||||
| tagDiamondTrack = 'ctppsDiamondLocalTracksAlCaRecoProducer', | ||||||
| tagPixelTrack = 'ctppsPixelLocalTracksAlCaRecoProducer' | ||||||
| ) | ||||||
|
|
||||||
| from RecoPPS.ProtonReconstruction.ctppsProtons_cff import ctppsProtons as _ctppsProtons | ||||||
| ctppsProtonsAlCaRecoProducer = _ctppsProtons.clone(tagLocalTrackLite = 'ctppsLocalTrackLiteProducerAlCaRecoProducer') | ||||||
|
|
||||||
| # 5. RECO - final task assembly | ||||||
| #------------------------------------------------------ | ||||||
|
|
||||||
| recoPPSTaskAlCaRecoProducer = cms.Task( | ||||||
| ctppsDiamondLocalReconstructionTaskAlCaRecoProducer , | ||||||
| diamondSampicLocalReconstructionTaskAlCaRecoProducer , | ||||||
| ctppsPixelLocalReconstructionTaskAlCaRecoProducer , | ||||||
| ctppsLocalTrackLiteProducerAlCaRecoProducer , | ||||||
| ctppsProtonsAlCaRecoProducer | ||||||
| ) | ||||||
| recoPPSSequenceAlCaRecoProducer = cms.Sequence(recoPPSTaskAlCaRecoProducer) | ||||||
|
|
||||||
| # 6. master sequence object | ||||||
| #------------------------------------------------------ | ||||||
|
|
||||||
| seqALCARECOPPSCalMaxTracksReco = cms.Sequence( ALCARECOPPSCalMaxTracksFilter + ALCARECOPPSCalMaxTracksRaw2Digi + recoPPSSequenceAlCaRecoProducer) | ||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <bin name="testExpressPPSAlCaRecoProducer" file="TestDriver.cpp"> | ||
| <flags TEST_RUNNER_ARGS="/bin/bash Calibration/PPSAlCaRecoProducer/test test_express_AlCaRecoProducer.sh"/> | ||
| <use name="FWCore/Utilities"/> | ||
| </bin> | ||
| <bin name="testExpressPPSAlCaRecoOutput" file="TestDriver.cpp"> | ||
| <flags TEST_RUNNER_ARGS="/bin/bash Calibration/PPSAlCaRecoProducer/test test_express_PPSAlCaReco_output.sh"/> | ||
| <flags PRE_TEST="testExpressPPSAlCaRecoProducer"/> | ||
| <use name="FWCore/Utilities"/> | ||
| </bin> | ||
| <bin name="testPromptPPSAlCaRecoProducer" file="TestDriver.cpp"> | ||
| <flags TEST_RUNNER_ARGS="/bin/bash Calibration/PPSAlCaRecoProducer/test test_prompt_AlCaRecoProducer.sh"/> | ||
| <use name="FWCore/Utilities"/> | ||
| </bin> | ||
| <bin name="testPromptPPSAlCaRecoOutput" file="TestDriver.cpp"> | ||
| <flags TEST_RUNNER_ARGS="/bin/bash Calibration/PPSAlCaRecoProducer/test test_prompt_PPSAlCaReco_output.sh"/> | ||
| <flags PRE_TEST="testPromptPPSAlCaRecoProducer"/> | ||
| <use name="FWCore/Utilities"/> | ||
| </bin> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| #include "FWCore/Utilities/interface/TestHelper.h" | ||
| RUNTEST() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.