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 = cms.VInputTag(cms.InputTag("hgcalLayerClusters"), cms.InputTag("particleFlowClusterHGCal"), cms.InputTag("hgcalMultiClusters") ),
16  label = cms.VInputTag(cms.InputTag("hgcalLayerClusters")),
17 
18  #General info on layers etc.
19  SaveGeneralInfo = cms.untracked.bool(True),
20  #CaloParticle related plots
21  doCaloParticlePlots = cms.untracked.bool(True),
22  dolayerclustersPlots = cms.untracked.bool(True),
23 
24  #The cumulative material budget in front of each layer. To be more specific, it
25  #is the material budget just in front of the active material (not including it).
26  #This file is created using the official material budget code.
27  cummatbudinxo = cms.FileInPath('Validation/HGCalValidation/data/D28.cumulative.xo'),
28 
29  ### sim input configuration ###
30  label_cp_effic = cms.InputTag("mix","MergedCaloTruth"),
31  label_cp_fake = cms.InputTag("mix","MergedCaloTruth"),
32 
33  simVertices = cms.InputTag("g4SimHits"),
34 
35  #Total number of layers of HGCal that we want to monitor
36  #Could get this also from HGCalImagingAlgo::maxlayer but better to get it from here
37  totallayers_to_monitor = cms.int32(52),
38  #Thicknesses we want to monitor. -1 is for scintillator
39  thicknesses_to_monitor = cms.vint32(120,200,300,-1),
40 
41  # HistoProducerAlgo. Defines the set of plots to be booked and filled
42  histoProducerAlgoBlock = HGVHistoProducerAlgoBlock,
43 
44  ### output configuration
45  dirName = cms.string('HGCAL/HGCalValidator/')
46 
47 )
48 
49 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
50 premix_stage2.toModify(hgcalValidator,
51  label_cp_effic = "mixData:MergedCaloTruth",
52  label_cp_fake = "mixData:MergedCaloTruth"
53 )