CMS 3D CMS Logo

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