-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathexampleConfig.py
67 lines (59 loc) · 3.47 KB
/
exampleConfig.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras
process = cms.Process("Demo")
process.load('Configuration.StandardSequences.Services_cff')
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
process.load('Configuration.Geometry.GeometryExtended2026D41Reco_cff')
process.load('Configuration.StandardSequences.MagneticField_cff')
process.load('Configuration.EventContent.EventContent_cff')
process.load("FWCore.MessageService.MessageLogger_cfi")
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
try:
process.load('RecoLocalCalo.HGCalRecProducers.HGCalLocalRecoSequence_cff')
except Exception: # ConfigFileReadError in case config does not exist
process.load('SimCalorimetry.HGCalSimProducers.hgcalDigitizer_cfi')
process.load('RecoLocalCalo.HGCalRecProducers.hgcalLayerClusters_cff')
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:phase2_realistic', '')
from FastSimulation.Event.ParticleFilter_cfi import *
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) )
process.source = cms.Source("PoolSource",
# replace 'step3.root' with the source file you want to use
fileNames = cms.untracked.vstring(
'/store/cmst3/group/hgcal/CMG_studies/validation/step3.root'
),
duplicateCheckMode = cms.untracked.string("noDuplicateCheck")
)
process.ana = cms.EDAnalyzer('HGCalAnalysis',
detector = cms.string("all"),
inputTag_HGCalMultiCluster = cms.string("hgcalMultiClusters"),
rawRecHits = cms.bool(True),
verbose = cms.bool(True),
readCaloParticles = cms.bool(True),
storeGenParticleOrigin = cms.bool(True),
storeGenParticleExtrapolation = cms.bool(True),
storeElectrons = cms.bool(True),
storePFCandidates = cms.bool(True),
storeGunParticles = cms.bool(True),
readGenParticles = cms.bool(True),
layerClusterPtThreshold = cms.double(-1), # All LayerCluster belonging to a multicluster are saved; this Pt threshold applied to the others
TestParticleFilter = ParticleFilterBlock.ParticleFilter
)
process.ana.TestParticleFilter.protonEMin = cms.double(100000)
process.ana.TestParticleFilter.etaMax = cms.double(3.1)
process.TFileService = cms.Service("TFileService",
fileName = cms.string("hgcalNtuple.root")
)
# The clustering algorithm has been changed
reRunClustering = False
if reRunClustering:
#process.hgcalLayerClusters.minClusters = cms.uint32(0)
#process.hgcalLayerClusters.realSpaceCone = cms.bool(True)
#process.hgcalLayerClusters.multiclusterRadius = cms.double(2.) # in cm if realSpaceCone is true
#process.hgcalLayerClusters.dependSensor = cms.bool(True)
#process.hgcalLayerClusters.ecut = cms.double(3.) # multiple of sigma noise if dependSensor is true
#process.hgcalLayerClusters.kappa = cms.double(9.) # multiple of sigma noise if dependSensor is true
#process.hgcalLayerClusters.deltac = cms.vdouble(2.,3.,5.) #specify delta c for each subdetector separately
process.p = cms.Path(process.hgcalLayerClusters+process.ana)
else:
process.p = cms.Path(process.ana)