CMS 3D CMS Logo

HGCalValidator_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
5 
6 hgcalValidator = cms.EDAnalyzer(
7  "HGCalValidator",
8 
9  ### general settings ###
10  # selection of CP for evaluation of efficiency #
11  CaloParticleSelectionForEfficiency,
12 
13  ### reco input configuration ###
14  #2dlayerclusters, pfclusters, multiclusters
15  label_lcl = cms.InputTag("hgcalLayerClusters"),
16  label_mcl = cms.VInputTag(),
17 
18  #General info on layers etc.
19  SaveGeneralInfo = cms.untracked.bool(True),
20  #CaloParticle related plots
21  doCaloParticlePlots = cms.untracked.bool(True),
22  #Layer Cluster related plots
23  dolayerclustersPlots = cms.untracked.bool(True),
24  #Multi Cluster related plots
25  domulticlustersPlots = cms.untracked.bool(False),
26 
27  #The cumulative material budget in front of each layer. To be more specific, it
28  #is the material budget just in front of the active material (not including it).
29  #This file is created using the official material budget code.
30  cummatbudinxo = cms.FileInPath('Validation/HGCalValidation/data/D41.cumulative.xo'),
31 
32  ### sim input configuration ###
33  label_cp_effic = cms.InputTag("mix","MergedCaloTruth"),
34  label_cp_fake = cms.InputTag("mix","MergedCaloTruth"),
35 
36  simVertices = cms.InputTag("g4SimHits"),
37 
38  #Total number of layers of HGCal that we want to monitor
39  #Could get this also from HGCalImagingAlgo::maxlayer but better to get it from here
40  totallayers_to_monitor = cms.int32(52),
41  #Thicknesses we want to monitor. -1 is for scintillator
42  thicknesses_to_monitor = cms.vint32(120,200,300,-1),
43 
44  # HistoProducerAlgo. Defines the set of plots to be booked and filled
45  histoProducerAlgoBlock = HGVHistoProducerAlgoBlock,
46 
47  ### output configuration
48  dirName = cms.string('HGCAL/HGCalValidator/')
49 
50 )
51 
52 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
53 premix_stage2.toModify(hgcalValidator,
54  label_cp_effic = "mixData:MergedCaloTruth",
55  label_cp_fake = "mixData:MergedCaloTruth"
56 )
57 
58 from Configuration.Eras.Modifier_phase2_hgcalV10_cff import phase2_hgcalV10
59 phase2_hgcalV10.toModify(hgcalValidator, totallayers_to_monitor = cms.int32(50))