-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22299 from cerminar/hpbeamspot_101_v1
Complete integration of HP beamspot workflow for PCL
- Loading branch information
Showing
15 changed files
with
201 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
17 changes: 17 additions & 0 deletions
17
Calibration/TkAlCaRecoProducers/python/ALCARECOPromptCalibProdBeamSpotHP_Output_cff.py
This file contains 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,17 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
|
||
|
||
|
||
OutALCARECOPromptCalibProdBeamSpotHP_noDrop = cms.PSet( | ||
SelectEvents = cms.untracked.PSet( | ||
SelectEvents = cms.vstring('pathALCARECOPromptCalibProdBeamSpotHP') | ||
), | ||
outputCommands = cms.untracked.vstring( | ||
'keep *_alcaBeamSpotProducerHP_*_*') | ||
) | ||
|
||
import copy | ||
|
||
OutALCARECOPromptCalibProdBeamSpotHP=copy.deepcopy(OutALCARECOPromptCalibProdBeamSpotHP_noDrop) | ||
OutALCARECOPromptCalibProdBeamSpotHP.outputCommands.insert(0, "drop *") |
36 changes: 36 additions & 0 deletions
36
Calibration/TkAlCaRecoProducers/python/ALCARECOPromptCalibProdBeamSpotHP_cff.py
This file contains 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,36 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
# ------------------------------------------------------------------------------ | ||
# configure a filter to run only on the events selected by TkAlMinBias AlcaReco | ||
import copy | ||
from HLTrigger.HLTfilters.hltHighLevel_cfi import * | ||
ALCARECOTkAlMinBiasFilterForBSHP = copy.deepcopy(hltHighLevel) | ||
ALCARECOTkAlMinBiasFilterForBSHP.HLTPaths = ['pathALCARECOTkAlMinBias'] | ||
ALCARECOTkAlMinBiasFilterForBSHP.throw = True ## dont throw on unknown path names | ||
ALCARECOTkAlMinBiasFilterForBSHP.TriggerResultsTag = cms.InputTag("TriggerResults","","RECO") | ||
#process.TkAlMinBiasFilterForBS.eventSetupPathsKey = 'pathALCARECOTkAlMinBias:RECO' | ||
#ALCARECODtCalibHLTFilter.andOr = True ## choose logical OR between Triggerbits | ||
|
||
|
||
# ------------------------------------------------------------------------------ | ||
# configure the beam-spot production | ||
from Calibration.TkAlCaRecoProducers.AlcaBeamSpotProducerHP_cff import * | ||
|
||
|
||
# ------------------------------------------------------------------------------ | ||
# this is for filtering on L1 technical trigger bit | ||
# Set the HLT paths | ||
import HLTrigger.HLTfilters.hltHighLevel_cfi | ||
ALCARECOHltFilterForBSHP = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone( | ||
andOr = True, ## choose logical OR between Triggerbits | ||
## HLTPaths = [ | ||
## #Minimum Bias | ||
## "HLT_MinBias*" | ||
## ], | ||
eventSetupPathsKey = 'PromptCalibProd', | ||
throw = False # tolerate triggers stated above, but not available | ||
) | ||
|
||
seqALCARECOPromptCalibProdBeamSpotHP = cms.Sequence(ALCARECOTkAlMinBiasFilterForBSHP * | ||
ALCARECOHltFilterForBSHP * | ||
alcaBeamSpotProducerHP) |
4 changes: 4 additions & 0 deletions
4
Calibration/TkAlCaRecoProducers/python/AlcaBeamSpotProducerHP_cff.py
This file contains 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,4 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from Calibration.TkAlCaRecoProducers.AlcaBeamSpotProducerHP_cfi import alcaBeamSpotProducerHP | ||
alcaBeamSpotHP = cms.Sequence( alcaBeamSpotProducerHP ) |
58 changes: 58 additions & 0 deletions
58
Calibration/TkAlCaRecoProducers/python/AlcaBeamSpotProducerHP_cfi.py
This file contains 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,58 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
alcaBeamSpotProducerHP = cms.EDProducer("AlcaBeamSpotProducer", | ||
AlcaBeamSpotProducerParameters = cms.PSet( | ||
RunAllFitters = cms.bool(False), ## False: run only default fitter | ||
RunBeamWidthFit = cms.bool(False), | ||
WriteToDB = cms.bool(False), ## do not write results to DB | ||
fitEveryNLumi = cms.untracked.int32( 1 ), | ||
resetEveryNLumi = cms.untracked.int32( 1 ) | ||
), | ||
BeamFitter = cms.PSet( | ||
Debug = cms.untracked.bool(False), | ||
TrackCollection = cms.untracked.InputTag('ALCARECOTkAlMinBias'), | ||
IsMuonCollection = cms.untracked.bool(False), | ||
WriteAscii = cms.untracked.bool(False), | ||
AsciiFileName = cms.untracked.string('BeamFit.txt'), ## all results | ||
AppendRunToFileName = cms.untracked.bool(True), #runnumber will be inserted to the file name | ||
WriteDIPAscii = cms.untracked.bool(False), | ||
DIPFileName = cms.untracked.string('BeamFitDIP.txt'), ## only the last results, for DIP | ||
SaveNtuple = cms.untracked.bool(False), | ||
SaveFitResults = cms.untracked.bool(False), | ||
SavePVVertices = cms.untracked.bool(False), | ||
OutputFileName = cms.untracked.string('analyze_d0_phi.root'), | ||
MinimumPt = cms.untracked.double(1.0), | ||
MaximumEta = cms.untracked.double(2.4), | ||
MaximumImpactParameter = cms.untracked.double(1.0), | ||
MaximumZ = cms.untracked.double(60), | ||
MinimumTotalLayers = cms.untracked.int32(6), | ||
MinimumPixelLayers = cms.untracked.int32(-1), | ||
MaximumNormChi2 = cms.untracked.double(10), | ||
TrackAlgorithm = cms.untracked.vstring(), ## ctf,rs,cosmics,initialStep,lowPtTripletStep...; for all algos, leave it blank | ||
TrackQuality = cms.untracked.vstring(), ## loose, tight, highPurity...; for all qualities, leave it blank | ||
InputBeamWidth = cms.untracked.double(-1.0), ## if -1 use the value calculated by the analyzer | ||
FractionOfFittedTrks = cms.untracked.double(0.9), | ||
MinimumInputTracks = cms.untracked.int32(50) | ||
), | ||
PVFitter = cms.PSet( | ||
Debug = cms.untracked.bool(False), | ||
Apply3DFit = cms.untracked.bool(True), | ||
VertexCollection = cms.untracked.InputTag('offlinePrimaryVertices'), | ||
#WriteAscii = cms.untracked.bool(True), | ||
#AsciiFileName = cms.untracked.string('PVFit.txt'), | ||
maxNrStoredVertices = cms.untracked.uint32(10000), | ||
minNrVerticesForFit = cms.untracked.uint32(10), | ||
minVertexNdf = cms.untracked.double(10.), | ||
maxVertexNormChi2 = cms.untracked.double(10.), | ||
minVertexNTracks = cms.untracked.uint32(30), | ||
minVertexMeanWeight = cms.untracked.double(0.5), | ||
maxVertexR = cms.untracked.double(2), | ||
maxVertexZ = cms.untracked.double(10), | ||
errorScale = cms.untracked.double(0.9), | ||
nSigmaCut = cms.untracked.double(50.), | ||
FitPerBunchCrossing = cms.untracked.bool(False), | ||
useOnlyFirstPV = cms.untracked.bool(True), | ||
minSumPt = cms.untracked.double(50.) | ||
) | ||
) | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.