Skip to content

Commit

Permalink
Merge pull request #36273 from CTPPS/pps_AlCaRecoProducer_PR
Browse files Browse the repository at this point in the history
PPS: AlCaReco producer, content filters and testing files
  • Loading branch information
cmsbuild authored Feb 16, 2022
2 parents 0898691 + ead8252 commit a3446c6
Show file tree
Hide file tree
Showing 14 changed files with 7,860 additions and 0 deletions.
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 Calibration/PPSAlCaRecoProducer/python/ALCARECOPPSCalMaxTracks_cff.py
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'))
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'))
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)
18 changes: 18 additions & 0 deletions Calibration/PPSAlCaRecoProducer/test/BuildFile.xml
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>
2 changes: 2 additions & 0 deletions Calibration/PPSAlCaRecoProducer/test/TestDriver.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "FWCore/Utilities/interface/TestHelper.h"
RUNTEST()
Loading

0 comments on commit a3446c6

Please sign in to comment.