Skip to content

Commit

Permalink
Merge pull request #2 from mmusich/addSiPixelCalCosmics_onTop_ofTamasPR
Browse files Browse the repository at this point in the history
Add SiPixelCalCosmics on top of PR cms-sw#28574
  • Loading branch information
tvami authored Dec 12, 2019
2 parents d97ee49 + 5638b30 commit 4e4cefe
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import FWCore.ParameterSet.Config as cms

OutALCARECOSiPixelCalCosmics_noDrop = cms.PSet(
SelectEvents = cms.untracked.PSet(
SelectEvents = cms.vstring('pathALCARECOSiPixelCalCosmics')
),
outputCommands = cms.untracked.vstring(
'keep *_ALCARECOSiPixelCalCosmics_*_*',
'keep *_muons__*',
'keep *_*riggerResults_*_HLT'
)
)
import copy

OutALCARECOSiPixelCalCosmics=copy.deepcopy(OutALCARECOSiPixelCalCosmics_noDrop)
OutALCARECOSiPixelCalCosmics.outputCommands.insert(0, "drop *")
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import FWCore.ParameterSet.Config as cms
import copy

# DCS partitions
# "EBp","EBm","EEp","EEm","HBHEa","HBHEb","HBHEc","HF","HO","RPC"
# "DT0","DTp","DTm","CSCp","CSCm","CASTOR","TIBTID","TOB","TECp","TECm"
# "BPIX","FPIX","ESp","ESm"
import DPGAnalysis.Skims.skim_detstatus_cfi
ALCARECOSiPixelCalCosmicsDCSFilter = DPGAnalysis.Skims.skim_detstatus_cfi.dcsstatus.clone(
DetectorType = cms.vstring('BPIX','FPIX'),
ApplyFilter = cms.bool(True),
AndOr = cms.bool(True),
DebugOn = cms.untracked.bool(False)
)

from ALCARECOSiPixelCalSingleMuon_cff import ALCARECOSiPixelCalSingleMuonHLTFilter
ALCARECOSiPixelCalCosmicsHLTFilter = ALCARECOSiPixelCalSingleMuonHLTFilter.clone(
HLTPaths = ["HLT_*"],
eventSetupPathsKey = ''
)

from ALCARECOSiPixelCalSingleMuon_cff import ALCARECOSiPixelCalSingleMuon
ALCARECOSiPixelCalCosmics = ALCARECOSiPixelCalSingleMuon.clone(
filter = True,
applyBasicCuts = True,
ptMin = 3.,
ptMax = 99999.,
pMin = 0.,
pMax = 99999.,
etaMin = -99., ##-2.4 keep also what is going through...
etaMax = 99., ## 2.4 ...both TEC with flat slope
chi2nMax = 3.,
applyMultiplicityFilter = False,
applyNHighestPt = False, ## select only highest pT track
src = 'ctfWithMaterialTracksP5',
)
ALCARECOSiPixelCalCosmics.minHitsPerSubDet.inPIXEL = 1

# Sequence #
seqALCARECOSiPixelCalCosmics = cms.Sequence(ALCARECOSiPixelCalCosmicsDCSFilter+ALCARECOSiPixelCalCosmicsHLTFilter*ALCARECOSiPixelCalCosmics)
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
'keep *_ALCARECOMuAlOverlaps_*_*',
'keep *_ALCARECOMuAlCalIsolatedMu_*_*',
'keep *_ALCARECOSiPixelCalSingleMuon_*_*',
'keep *_ALCARECOSiPixelCalCosmics_*_*',
'keep *_cosmicMuons_*_*',
'keep *_cosmictrackfinderP5_*_*',
'keep *_globalMuons_*_*',
Expand Down
1 change: 1 addition & 0 deletions Configuration/EventContent/python/AlCaRecoOutput_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
from CalibTracker.SiPixelQuality.ALCARECOSiPixelCalZeroBias_Output_cff import *
# AlCaReco for tracker calibration using Cosmics events
from Calibration.TkAlCaRecoProducers.ALCARECOSiStripCalCosmics_Output_cff import *
from Calibration.TkAlCaRecoProducers.ALCARECOSiPixelCalCosmics_Output_cff import *

# AlCaReco for tracker based alignment using beam halo
from Alignment.CommonAlignmentProducer.ALCARECOTkAlBeamHalo_Output_cff import *
Expand Down
12 changes: 6 additions & 6 deletions Configuration/PyReleaseValidation/python/relval_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2421,9 +2421,9 @@ def gen2018HiMix(fragment,howMuch):
'-s':'ALCA:TkAlCosmics0T+MuAlGlobalCosmics+HcalCalHOCosmics+DQM'
}

steps['ALCACOSDRUN2']=merge([{'--conditions':'auto:run2_data','--era':'Run2_2016','-s':'ALCA:TkAlCosmics0T+SiStripCalCosmics+MuAlGlobalCosmics+HcalCalHOCosmics+DtCalibCosmics+DQM'},steps['ALCACOSD']])
steps['ALCACOSDRUN2']=merge([{'--conditions':'auto:run2_data','--era':'Run2_2016','-s':'ALCA:SiPixelCalCosmics+TkAlCosmics0T+SiStripCalCosmics+MuAlGlobalCosmics+HcalCalHOCosmics+DtCalibCosmics+DQM'},steps['ALCACOSD']])

steps['ALCACOSDRUN3']=merge([{'--conditions':'auto:run3_data_promptlike','--era':'Run3','-s':'ALCA:TkAlCosmics0T+SiStripCalCosmics+MuAlGlobalCosmics+HcalCalHOCosmics+DtCalibCosmics+DQM'},steps['ALCACOSD']])
steps['ALCACOSDRUN3']=merge([{'--conditions':'auto:run3_data_promptlike','--era':'Run3','-s':'ALCA:SiPixelCalCosmics+TkAlCosmics0T+SiStripCalCosmics+MuAlGlobalCosmics+HcalCalHOCosmics+DtCalibCosmics+DQM'},steps['ALCACOSD']])

steps['ALCAPROMPT']={'-s':'ALCA:PromptCalibProd',
'--filein':'file:TkAlMinBias.root',
Expand Down Expand Up @@ -2480,10 +2480,10 @@ def gen2018HiMix(fragment,howMuch):

steps['ALCAHAL']=merge([{'-s':'ALCA:TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo'},step4Up2015Defaults])
steps['ALCACOS_UP15']=merge([{'--conditions':'auto:run2_mc_cosmics','-s':'ALCA:TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo'},step4Up2015Defaults])
steps['ALCACOS_UP16']=merge([{'--conditions':'auto:run2_mc_cosmics','-s':'ALCA:TkAlCosmics0T+SiStripCalCosmics+TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo','--era':'Run2_2016'},step4Up2015Defaults])
steps['ALCACOS_UP17']=merge([{'--conditions':'auto:phase1_2017_cosmics','-s':'ALCA:TkAlCosmics0T+SiStripCalCosmics+TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo','--era':'Run2_2017'},step4Up2015Defaults])
steps['ALCACOS_UP18']=merge([{'--conditions':'auto:phase1_2018_cosmics','-s':'ALCA:TkAlCosmics0T+SiStripCalCosmics+TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo','--era':'Run2_2018'},step4Up2015Defaults])
steps['ALCACOS_UP21']=merge([{'--conditions':'auto:phase1_2021_cosmics','-s':'ALCA:TkAlCosmics0T+SiStripCalCosmics+TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo','--era':'Run3'},step4Up2015Defaults])
steps['ALCACOS_UP16']=merge([{'--conditions':'auto:run2_mc_cosmics','-s':'ALCA:TkAlCosmics0T+SiStripCalCosmics+SiPixelCalCosmics+TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo','--era':'Run2_2016'},step4Up2015Defaults])
steps['ALCACOS_UP17']=merge([{'--conditions':'auto:phase1_2017_cosmics','-s':'ALCA:TkAlCosmics0T+SiStripCalCosmics+SiPixelCalCosmics+TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo','--era':'Run2_2017'},step4Up2015Defaults])
steps['ALCACOS_UP18']=merge([{'--conditions':'auto:phase1_2018_cosmics','-s':'ALCA:TkAlCosmics0T+SiStripCalCosmics+SiPixelCalCosmics+TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo','--era':'Run2_2018'},step4Up2015Defaults])
steps['ALCACOS_UP21']=merge([{'--conditions':'auto:phase1_2021_cosmics','-s':'ALCA:TkAlCosmics0T+SiStripCalCosmics+SiPixelCalCosmics+TkAlBeamHalo+MuAlBeamHaloOverlaps+MuAlBeamHalo','--era':'Run3'},step4Up2015Defaults])
steps['ALCAHARVD']={'-s':'ALCAHARVEST:BeamSpotByRun+BeamSpotByLumi+SiStripQuality',
'--conditions':'auto:run1_data',
'--scenario':'pp',
Expand Down
11 changes: 11 additions & 0 deletions Configuration/StandardSequences/python/AlCaRecoStreams_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
###############################################################
# AlCaReco for pixel calibration using muons
from Calibration.TkAlCaRecoProducers.ALCARECOSiPixelCalSingleMuon_cff import *
from Calibration.TkAlCaRecoProducers.ALCARECOSiPixelCalCosmics_cff import *
# AlCaReco for tracker calibration using MinBias events
from Calibration.TkAlCaRecoProducers.ALCARECOSiStripCalMinBias_cff import *
from Calibration.TkAlCaRecoProducers.ALCARECOSiStripCalMinBiasAAG_cff import *
Expand Down Expand Up @@ -170,6 +171,7 @@
pathALCARECOTkAlMinBias = cms.Path(seqALCARECOTkAlMinBias*ALCARECOTkAlMinBiasDQM)
pathALCARECOTkAlMinBias = cms.Path(seqALCARECOTkAlMinBias*ALCARECOTkAlMinBiasDQM)
pathALCARECOSiPixelCalSingleMuon = cms.Path(seqALCARECOSiPixelCalSingleMuon)
pathALCARECOSiPixelCalCosmics = cms.Path(seqALCARECOSiPixelCalCosmics)
pathALCARECOSiStripCalMinBias = cms.Path(seqALCARECOSiStripCalMinBias*ALCARECOSiStripCalMinBiasDQM)
pathALCARECOSiStripCalCosmics = cms.Path(seqALCARECOSiStripCalCosmics)
pathALCARECOSiStripCalMinBiasAAG = cms.Path(seqALCARECOSiStripCalMinBiasAAG*ALCARECOSiStripCalMinBiasAAGDQM)
Expand Down Expand Up @@ -355,6 +357,15 @@
dataTier = cms.untracked.string('ALCARECO')
)

ALCARECOStreamSiPixelCalCosmics = cms.FilteredStream(
responsible = 'Tamas Almos Vami',
name = 'SiPixelCalCosmics',
paths = (pathALCARECOSiPixelCalCosmics),
content = OutALCARECOSiPixelCalCosmics.outputCommands,
selectEvents = OutALCARECOSiPixelCalCosmics.SelectEvents,
dataTier = cms.untracked.string('ALCARECO')
)

ALCARECOStreamSiStripCalMinBias = cms.FilteredStream(
responsible = 'Vitaliano Ciulli',
name = 'SiStripCalMinBias',
Expand Down

0 comments on commit 4e4cefe

Please sign in to comment.