1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
6 prefix =
'HGCAL/HGCalValidator/'
11 eff_layers = [
"effic_eta_layer{:02d} 'LayerCluster Efficiency vs #eta Layer{:02d} in z-' Num_CaloParticle_Eta_perlayer{:02d} Denom_CaloParticle_Eta_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "effic_eta_layer{:02d} 'LayerCluster Efficiency vs #eta Layer{:02d} in z+' Num_CaloParticle_Eta_perlayer{:02d} Denom_CaloParticle_Eta_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ]
12 eff_layers.extend([
"effic_phi_layer{:02d} 'LayerCluster Efficiency vs #phi Layer{:02d} in z-' Num_CaloParticle_Phi_perlayer{:02d} Denom_CaloParticle_Phi_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "effic_phi_layer{:02d} 'LayerCluster Efficiency vs #phi Layer{:02d} in z+' Num_CaloParticle_Phi_perlayer{:02d} Denom_CaloParticle_Phi_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ])
13 eff_layers.extend([
"duplicate_eta_layer{:02d} 'LayerCluster Duplicate(Split) Rate vs #eta Layer{:02d} in z-' NumDup_CaloParticle_Eta_perlayer{:02d} Denom_CaloParticle_Eta_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "duplicate_eta_layer{:02d} 'LayerCluster Duplicate(Split) Rate vs #eta Layer{:02d} in z+' NumDup_CaloParticle_Eta_perlayer{:02d} Denom_CaloParticle_Eta_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ])
14 eff_layers.extend([
"duplicate_phi_layer{:02d} 'LayerCluster Duplicate(Split) Rate vs #phi Layer{:02d} in z-' NumDup_CaloParticle_Phi_perlayer{:02d} Denom_CaloParticle_Phi_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "duplicate_phi_layer{:02d} 'LayerCluster Duplicate(Split) Rate vs #phi Layer{:02d} in z+' NumDup_CaloParticle_Phi_perlayer{:02d} Denom_CaloParticle_Phi_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ])
15 eff_layers.extend([
"fake_eta_layer{:02d} 'LayerCluster Fake Rate vs #eta Layer{:02d} in z-' Num_LayerCluster_Eta_perlayer{:02d} Denom_LayerCluster_Eta_perlayer{:02d} fake".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "fake_eta_layer{:02d} 'LayerCluster Fake Rate vs #eta Layer{:02d} in z+' Num_LayerCluster_Eta_perlayer{:02d} Denom_LayerCluster_Eta_perlayer{:02d} fake".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ])
16 eff_layers.extend([
"fake_phi_layer{:02d} 'LayerCluster Fake Rate vs #phi Layer{:02d} in z-' Num_LayerCluster_Phi_perlayer{:02d} Denom_LayerCluster_Phi_perlayer{:02d} fake".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "fake_phi_layer{:02d} 'LayerCluster Fake Rate vs #phi Layer{:02d} in z+' Num_LayerCluster_Phi_perlayer{:02d} Denom_LayerCluster_Phi_perlayer{:02d} fake".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ])
17 eff_layers.extend([
"merge_eta_layer{:02d} 'LayerCluster Merge Rate vs #eta Layer{:02d} in z-' NumMerge_LayerCluster_Eta_perlayer{:02d} Denom_LayerCluster_Eta_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "merge_eta_layer{:02d} 'LayerCluster Merge Rate vs #eta Layer{:02d} in z+' NumMerge_LayerCluster_Eta_perlayer{:02d} Denom_LayerCluster_Eta_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ])
18 eff_layers.extend([
"merge_phi_layer{:02d} 'LayerCluster Merge Rate vs #phi Layer{:02d} in z-' NumMerge_LayerCluster_Phi_perlayer{:02d} Denom_LayerCluster_Phi_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "merge_phi_layer{:02d} 'LayerCluster Merge Rate vs #phi Layer{:02d} in z+' NumMerge_LayerCluster_Phi_perlayer{:02d} Denom_LayerCluster_Phi_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ])
20 lcToCP_linking = hgcalValidator.label_LCToCPLinking._InputTag__moduleLabel
22 subDirs = cms.untracked.vstring(prefix + hgcalValidator.label_layerClusterPlots._InputTag__moduleLabel +
'/' + lcToCP_linking),
23 efficiency = cms.vstring(eff_layers),
24 resolution = cms.vstring(),
25 cumulativeDists = cms.untracked.vstring(),
26 noFlowDists = cms.untracked.vstring(),
27 outputFileName = cms.untracked.string(
""),
28 verbose = cms.untracked.uint32(4))
31 eff_simclusters = [
"effic_eta_layer{:02d} 'LayerCluster Efficiency vs #eta Layer{:02d} in z-' Num_SimCluster_Eta_perlayer{:02d} Denom_SimCluster_Eta_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "effic_eta_layer{:02d} 'LayerCluster Efficiency vs #eta Layer{:02d} in z+' Num_SimCluster_Eta_perlayer{:02d} Denom_SimCluster_Eta_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ]
32 eff_simclusters.extend([
"effic_phi_layer{:02d} 'LayerCluster Efficiency vs #phi Layer{:02d} in z-' Num_SimCluster_Phi_perlayer{:02d} Denom_SimCluster_Phi_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "effic_phi_layer{:02d} 'LayerCluster Efficiency vs #phi Layer{:02d} in z+' Num_SimCluster_Phi_perlayer{:02d} Denom_SimCluster_Phi_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ])
33 eff_simclusters.extend([
"duplicate_eta_layer{:02d} 'LayerCluster Duplicate(Split) Rate vs #eta Layer{:02d} in z-' NumDup_SimCluster_Eta_perlayer{:02d} Denom_SimCluster_Eta_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "duplicate_eta_layer{:02d} 'LayerCluster Duplicate(Split) Rate vs #eta Layer{:02d} in z+' NumDup_SimCluster_Eta_perlayer{:02d} Denom_SimCluster_Eta_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ])
34 eff_simclusters.extend([
"duplicate_phi_layer{:02d} 'LayerCluster Duplicate(Split) Rate vs #phi Layer{:02d} in z-' NumDup_SimCluster_Phi_perlayer{:02d} Denom_SimCluster_Phi_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "duplicate_phi_layer{:02d} 'LayerCluster Duplicate(Split) Rate vs #phi Layer{:02d} in z+' NumDup_SimCluster_Phi_perlayer{:02d} Denom_SimCluster_Phi_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ])
35 eff_simclusters.extend([
"fake_eta_layer{:02d} 'LayerCluster Fake Rate vs #eta Layer{:02d} in z-' Num_LayerCluster_in_SimCluster_Eta_perlayer{:02d} Denom_LayerCluster_in_SimCluster_Eta_perlayer{:02d} fake".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "fake_eta_layer{:02d} 'LayerCluster Fake Rate vs #eta Layer{:02d} in z+' Num_LayerCluster_in_SimCluster_Eta_perlayer{:02d} Denom_LayerCluster_in_SimCluster_Eta_perlayer{:02d} fake".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ])
36 eff_simclusters.extend([
"fake_phi_layer{:02d} 'LayerCluster Fake Rate vs #phi Layer{:02d} in z-' Num_LayerCluster_in_SimCluster_Phi_perlayer{:02d} Denom_LayerCluster_in_SimCluster_Phi_perlayer{:02d} fake".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "fake_phi_layer{:02d} 'LayerCluster Fake Rate vs #phi Layer{:02d} in z+' Num_LayerCluster_in_SimCluster_Phi_perlayer{:02d} Denom_LayerCluster_in_SimCluster_Phi_perlayer{:02d} fake".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ])
37 eff_simclusters.extend([
"merge_eta_layer{:02d} 'LayerCluster Merge Rate vs #eta Layer{:02d} in z-' NumMerge_LayerCluster_in_SimCluster_Eta_perlayer{:02d} Denom_LayerCluster_in_SimCluster_Eta_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "merge_eta_layer{:02d} 'LayerCluster Merge Rate vs #eta Layer{:02d} in z+' NumMerge_LayerCluster_in_SimCluster_Eta_perlayer{:02d} Denom_LayerCluster_in_SimCluster_Eta_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ])
38 eff_simclusters.extend([
"merge_phi_layer{:02d} 'LayerCluster Merge Rate vs #phi Layer{:02d} in z-' NumMerge_LayerCluster_in_SimCluster_Phi_perlayer{:02d} Denom_LayerCluster_in_SimCluster_Phi_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
if (i<maxlayerzm)
else "merge_phi_layer{:02d} 'LayerCluster Merge Rate vs #phi Layer{:02d} in z+' NumMerge_LayerCluster_in_SimCluster_Phi_perlayer{:02d} Denom_LayerCluster_in_SimCluster_Phi_perlayer{:02d}".
format(i, i%maxlayerzm+1, i, i)
for i
in range(maxlayerzp) ])
40 subdirsSim = [prefix + hgcalValidator.label_SimClusters._InputTag__moduleLabel +
'/ticlTracksters'+iteration+
'/' for iteration
in ticlIterLabelsMerge]
41 subdirsSim.extend([prefix + hgcalValidator.label_SimClusters._InputTag__moduleLabel +
'/ticlSimTracksters'])
43 subDirs = cms.untracked.vstring(subdirsSim),
44 efficiency = cms.vstring(eff_simclusters),
45 resolution = cms.vstring(),
46 cumulativeDists = cms.untracked.vstring(),
47 noFlowDists = cms.untracked.vstring(),
48 outputFileName = cms.untracked.string(
""),
49 verbose = cms.untracked.uint32(4))
51 eff_tracksters = [
"purity_eta 'Trackster Purity vs #eta' Num_CaloParticle_Eta Denom_CaloParticle_Eta"]
52 eff_tracksters.extend([
"purity_phi 'Trackster Purity vs #phi' Num_CaloParticle_Phi Denom_CaloParticle_Phi"])
53 eff_tracksters.extend([
"effic_eta 'Trackster Efficiency vs #eta' NumEff_CaloParticle_Eta Denom_CaloParticle_Eta"])
54 eff_tracksters.extend([
"effic_phi 'Trackster Efficiency vs #phi' NumEff_CaloParticle_Phi Denom_CaloParticle_Phi"])
55 eff_tracksters.extend([
"duplicate_eta 'Trackster Duplicate(Split) Rate vs #eta' NumDup_Trackster_Eta Denom_Trackster_Eta"])
56 eff_tracksters.extend([
"duplicate_phi 'Trackster Duplicate(Split) Rate vs #phi' NumDup_Trackster_Phi Denom_Trackster_Phi"])
57 eff_tracksters.extend([
"fake_eta 'Trackster Fake Rate vs #eta' Num_Trackster_Eta Denom_Trackster_Eta fake"])
58 eff_tracksters.extend([
"fake_phi 'Trackster Fake Rate vs #phi' Num_Trackster_Phi Denom_Trackster_Phi fake"])
59 eff_tracksters.extend([
"merge_eta 'Trackster Merge Rate vs #eta' NumMerge_Trackster_Eta Denom_Trackster_Eta"])
60 eff_tracksters.extend([
"merge_phi 'Trackster Merge Rate vs #phi' NumMerge_Trackster_Phi Denom_Trackster_Phi"])
62 tsToCP_linking = hgcalValidator.label_TSToCPLinking._InputTag__moduleLabel
63 subdirsTracksters = [prefix+
'hgcalTracksters/'+tsToCP_linking, prefix+
'ticlSimTracksters/'+tsToCP_linking]
64 subdirsTracksters.extend(prefix+
'ticlTracksters'+iteration+
'/'+tsToCP_linking
for iteration
in ticlIterLabelsMerge)
67 subDirs = cms.untracked.vstring(subdirsTracksters),
68 efficiency = cms.vstring(eff_tracksters),
69 resolution = cms.vstring(),
70 cumulativeDists = cms.untracked.vstring(),
71 noFlowDists = cms.untracked.vstring(),
72 outputFileName = cms.untracked.string(
""),
73 verbose = cms.untracked.uint32(4)
const uint16_t range(const Frame &aFrame)