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 SimCalorimetry.HGCalAssociatorProducers.LCToCPAssociation_cfi import layerClusterCaloParticleAssociation
7 from SimCalorimetry.HGCalAssociatorProducers.LCToSCAssociation_cfi import layerClusterSimClusterAssociation
8 
9 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
10 
11 from RecoHGCal.TICL.iterativeTICL_cff import ticlIterLabels, ticlIterLabelsMerge
12 
13 labelMcl = [cms.InputTag("ticlMultiClustersFromTracksters"+iteration) for iteration in ticlIterLabelsMerge]
14 labelMcl.extend(["ticlMultiClustersFromSimTracksters"])
15 lcInputMask = [cms.InputTag("ticlTracksters"+iteration) for iteration in ticlIterLabels]
16 lcInputMask.extend(["ticlSimTracksters"])
17 hgcalValidator = DQMEDAnalyzer(
18  "HGCalValidator",
19 
20 
22  CaloParticleSelectionForEfficiency,
23 
24 
26  label_lcl = layerClusterCaloParticleAssociation.label_lc,
27  label_mcl = cms.VInputTag(labelMcl),
28 
29  associator = cms.untracked.InputTag("layerClusterCaloParticleAssociationProducer"),
30 
31  associatorSim = cms.untracked.InputTag("layerClusterSimClusterAssociationProducer"),
32 
33  #General info on layers etc.
34  SaveGeneralInfo = cms.untracked.bool(True),
35  #CaloParticle related plots
36  doCaloParticlePlots = cms.untracked.bool(True),
37  #Select caloParticles for efficiency or pass through
38  doCaloParticleSelection = cms.untracked.bool(True),
39  #SimCluster related plots
40  doSimClustersPlots = cms.untracked.bool(True),
41  #Layer Cluster related plots
42  doLayerClustersPlots = cms.untracked.bool(True),
43  #Multi Cluster related plots
44  doMultiClustersPlots = cms.untracked.bool(True),
45 
46  #The cumulative material budget in front of each layer. To be more specific, it
47  #is the material budget just in front of the active material (not including it).
48  #This file is created using the official material budget code.
49  cummatbudinxo = cms.FileInPath('Validation/HGCalValidation/data/D41.cumulative.xo'),
50 
51 
52  label_cp_effic = layerClusterCaloParticleAssociation.label_cp,
53  label_cp_fake = cms.InputTag("mix","MergedCaloTruth"),
54  #simClusters
55  label_scl = layerClusterSimClusterAssociation.label_scl,
56 
57  simVertices = cms.InputTag("g4SimHits"),
58 
59  LayerClustersInputMask = cms.VInputTag(lcInputMask),
60 
61  #Total number of layers of HGCal that we want to monitor
62  #Could get this also from HGCalImagingAlgo::maxlayer but better to get it from here
63  totallayers_to_monitor = cms.int32(52),
64  #Thicknesses we want to monitor. -1 is for scintillator
65  thicknesses_to_monitor = cms.vint32(120,200,300,-1),
66 
67  # HistoProducerAlgo. Defines the set of plots to be booked and filled
68  histoProducerAlgoBlock = HGVHistoProducerAlgoBlock,
69 
70 
71  dirName = cms.string('HGCAL/HGCalValidator/')
72 
73 )
74 
75 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
76 premix_stage2.toModify(hgcalValidator,
77  label_cp_fake = "mixData:MergedCaloTruth"
78 )
79 
80 from Configuration.Eras.Modifier_phase2_hgcalV10_cff import phase2_hgcalV10
81 phase2_hgcalV10.toModify(hgcalValidator, totallayers_to_monitor = cms.int32(50))
CaloParticleSelectionForEfficiency_cfi
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
iterativeTICL_cff
HGVHistoProducerAlgoBlock_cfi