File indexing completed on 2024-12-08 23:43:53
0001 import FWCore.ParameterSet.Config as cms
0002
0003 def HGCalValidator(*args, **kwargs):
0004 mod = cms.EDProducer('HGCalValidator',
0005 ptMinCP = cms.double(0.5),
0006 ptMaxCP = cms.double(300),
0007 minRapidityCP = cms.double(-3.1),
0008 maxRapidityCP = cms.double(3.1),
0009 lipCP = cms.double(30),
0010 tipCP = cms.double(60),
0011 chargedOnlyCP = cms.bool(False),
0012 stableOnlyCP = cms.bool(False),
0013 notConvertedOnlyCP = cms.bool(True),
0014 pdgIdCP = cms.vint32(
0015 11,
0016 -11,
0017 13,
0018 -13,
0019 22,
0020 111,
0021 211,
0022 -211,
0023 321,
0024 -321,
0025 311,
0026 130,
0027 310
0028 ),
0029 signalOnlyCP = cms.bool(True),
0030 intimeOnlyCP = cms.bool(True),
0031 minHitCP = cms.int32(0),
0032 maxSimClustersCP = cms.int32(-1),
0033 histoProducerAlgoBlock = cms.PSet(
0034 minEta = cms.double(-4.5),
0035 maxEta = cms.double(4.5),
0036 nintEta = cms.int32(100),
0037 useFabsEta = cms.bool(False),
0038 minEne = cms.double(0),
0039 maxEne = cms.double(500),
0040 nintEne = cms.int32(250),
0041 minPt = cms.double(0),
0042 maxPt = cms.double(100),
0043 nintPt = cms.int32(100),
0044 minPhi = cms.double(-3.2),
0045 maxPhi = cms.double(3.2),
0046 nintPhi = cms.int32(80),
0047 minMixedHitsSimCluster = cms.double(0),
0048 maxMixedHitsSimCluster = cms.double(800),
0049 nintMixedHitsSimCluster = cms.int32(100),
0050 minMixedHitsCluster = cms.double(0),
0051 maxMixedHitsCluster = cms.double(800),
0052 nintMixedHitsCluster = cms.int32(100),
0053 minEneCl = cms.double(0),
0054 maxEneCl = cms.double(110),
0055 nintEneCl = cms.int32(110),
0056 minLongDepBary = cms.double(0),
0057 maxLongDepBary = cms.double(110),
0058 nintLongDepBary = cms.int32(110),
0059 minZpos = cms.double(-550),
0060 maxZpos = cms.double(550),
0061 nintZpos = cms.int32(1100),
0062 minTotNsimClsperlay = cms.double(0),
0063 maxTotNsimClsperlay = cms.double(50),
0064 nintTotNsimClsperlay = cms.int32(50),
0065 minTotNClsperlay = cms.double(0),
0066 maxTotNClsperlay = cms.double(50),
0067 nintTotNClsperlay = cms.int32(50),
0068 minEneClperlay = cms.double(0),
0069 maxEneClperlay = cms.double(110),
0070 nintEneClperlay = cms.int32(110),
0071 minScore = cms.double(0),
0072 maxScore = cms.double(1.02),
0073 nintScore = cms.int32(51),
0074 minSharedEneFrac = cms.double(0),
0075 maxSharedEneFrac = cms.double(1.02),
0076 nintSharedEneFrac = cms.int32(51),
0077 minTSTSharedEneFracEfficiency = cms.double(0.5),
0078 minTSTSharedEneFrac = cms.double(0),
0079 maxTSTSharedEneFrac = cms.double(1.01),
0080 nintTSTSharedEneFrac = cms.int32(101),
0081 minTotNsimClsperthick = cms.double(0),
0082 maxTotNsimClsperthick = cms.double(800),
0083 nintTotNsimClsperthick = cms.int32(100),
0084 minTotNClsperthick = cms.double(0),
0085 maxTotNClsperthick = cms.double(800),
0086 nintTotNClsperthick = cms.int32(100),
0087 minTotNcellsperthickperlayer = cms.double(0),
0088 maxTotNcellsperthickperlayer = cms.double(500),
0089 nintTotNcellsperthickperlayer = cms.int32(100),
0090 minDisToSeedperthickperlayer = cms.double(0),
0091 maxDisToSeedperthickperlayer = cms.double(300),
0092 nintDisToSeedperthickperlayer = cms.int32(100),
0093 minDisToSeedperthickperlayerenewei = cms.double(0),
0094 maxDisToSeedperthickperlayerenewei = cms.double(10),
0095 nintDisToSeedperthickperlayerenewei = cms.int32(50),
0096 minDisToMaxperthickperlayer = cms.double(0),
0097 maxDisToMaxperthickperlayer = cms.double(300),
0098 nintDisToMaxperthickperlayer = cms.int32(100),
0099 minDisToMaxperthickperlayerenewei = cms.double(0),
0100 maxDisToMaxperthickperlayerenewei = cms.double(50),
0101 nintDisToMaxperthickperlayerenewei = cms.int32(50),
0102 minDisSeedToMaxperthickperlayer = cms.double(0),
0103 maxDisSeedToMaxperthickperlayer = cms.double(300),
0104 nintDisSeedToMaxperthickperlayer = cms.int32(100),
0105 minClEneperthickperlayer = cms.double(0),
0106 maxClEneperthickperlayer = cms.double(10),
0107 nintClEneperthickperlayer = cms.int32(100),
0108 minCellsEneDensperthick = cms.double(0),
0109 maxCellsEneDensperthick = cms.double(100),
0110 nintCellsEneDensperthick = cms.int32(200),
0111 minTotNTSTs = cms.double(0),
0112 maxTotNTSTs = cms.double(50),
0113 nintTotNTSTs = cms.int32(50),
0114 minTotNClsinTSTs = cms.double(0),
0115 maxTotNClsinTSTs = cms.double(400),
0116 nintTotNClsinTSTs = cms.int32(100),
0117 minTotNClsinTSTsperlayer = cms.double(0),
0118 maxTotNClsinTSTsperlayer = cms.double(50),
0119 nintTotNClsinTSTsperlayer = cms.int32(50),
0120 minMplofLCs = cms.double(0),
0121 maxMplofLCs = cms.double(20),
0122 nintMplofLCs = cms.int32(20),
0123 minSizeCLsinTSTs = cms.double(0),
0124 maxSizeCLsinTSTs = cms.double(50),
0125 nintSizeCLsinTSTs = cms.int32(50),
0126 minClEnepermultiplicity = cms.double(0),
0127 maxClEnepermultiplicity = cms.double(10),
0128 nintClEnepermultiplicity = cms.int32(10),
0129 minX = cms.double(-300),
0130 maxX = cms.double(300),
0131 nintX = cms.int32(100),
0132 minY = cms.double(-300),
0133 maxY = cms.double(300),
0134 nintY = cms.int32(100),
0135 minZ = cms.double(-550),
0136 maxZ = cms.double(550),
0137 nintZ = cms.int32(1100)
0138 ),
0139 hits = cms.VInputTag(
0140 'HGCalRecHit:HGCEERecHits',
0141 'HGCalRecHit:HGCHEFRecHits',
0142 'HGCalRecHit:HGCHEBRecHits'
0143 ),
0144 label_lcl = cms.InputTag('hgcalMergeLayerClusters'),
0145 label_tst = cms.VInputTag(
0146 'ticlTrackstersCLUE3DHigh',
0147 'ticlTrackstersMerge',
0148 'ticlSimTracksters:fromCPs',
0149 'ticlSimTracksters'
0150 ),
0151 label_simTS = cms.InputTag('ticlSimTracksters'),
0152 label_simTSFromCP = cms.InputTag('ticlSimTracksters', 'fromCPs'),
0153 associator = cms.untracked.InputTag('layerClusterCaloParticleAssociationProducer'),
0154 associatorSim = cms.untracked.InputTag('layerClusterSimClusterAssociationProducer'),
0155 SaveGeneralInfo = cms.untracked.bool(True),
0156 doCaloParticlePlots = cms.untracked.bool(True),
0157 doCaloParticleSelection = cms.untracked.bool(True),
0158 doSimClustersPlots = cms.untracked.bool(True),
0159 label_SimClusters = cms.InputTag('SimClusters'),
0160 label_SimClustersLevel = cms.InputTag('ClusterLevel'),
0161 doLayerClustersPlots = cms.untracked.bool(True),
0162 label_layerClusterPlots = cms.InputTag('hgcalMergeLayerClusters'),
0163 label_LCToCPLinking = cms.InputTag('LCToCP_association'),
0164 doTrackstersPlots = cms.untracked.bool(True),
0165 label_TS = cms.string('Morphology'),
0166 label_TSbyHitsCP = cms.string('TSbyHits_CP'),
0167 label_TSbyHits = cms.string('TSbyHits'),
0168 label_TSbyLCs = cms.string('TSbyLCs'),
0169 label_TSbyLCsCP = cms.string('TSbyLCs_CP'),
0170 simClustersToCaloParticlesMap = cms.InputTag('SimClusterToCaloParticleAssociation', 'simClusterToCaloParticleMap'),
0171 allTracksterTracksterAssociatorsLabels = cms.VInputTag(
0172 'allTrackstersToSimTrackstersAssociationsByLCs:ticlTrackstersCLUE3DHighToticlSimTracksters',
0173 'allTrackstersToSimTrackstersAssociationsByLCs:ticlSimTrackstersToticlTrackstersCLUE3DHigh',
0174 'allTrackstersToSimTrackstersAssociationsByLCs:ticlTrackstersCLUE3DHighToticlSimTrackstersfromCPs',
0175 'allTrackstersToSimTrackstersAssociationsByLCs:ticlSimTrackstersfromCPsToticlTrackstersCLUE3DHigh',
0176 'allTrackstersToSimTrackstersAssociationsByLCs:ticlTracksterLinksToticlSimTracksters',
0177 'allTrackstersToSimTrackstersAssociationsByLCs:ticlSimTrackstersToticlTracksterLinks',
0178 'allTrackstersToSimTrackstersAssociationsByLCs:ticlTracksterLinksToticlSimTrackstersfromCPs',
0179 'allTrackstersToSimTrackstersAssociationsByLCs:ticlSimTrackstersfromCPsToticlTracksterLinks',
0180 'allTrackstersToSimTrackstersAssociationsByLCs:ticlCandidateToticlSimTracksters',
0181 'allTrackstersToSimTrackstersAssociationsByLCs:ticlSimTrackstersToticlCandidate',
0182 'allTrackstersToSimTrackstersAssociationsByLCs:ticlCandidateToticlSimTrackstersfromCPs',
0183 'allTrackstersToSimTrackstersAssociationsByLCs:ticlSimTrackstersfromCPsToticlCandidate'
0184 ),
0185 allTracksterTracksterByHitsAssociatorsLabels = cms.VInputTag(
0186 'allTrackstersToSimTrackstersAssociationsByHits:ticlTrackstersCLUE3DHighToticlSimTracksters',
0187 'allTrackstersToSimTrackstersAssociationsByHits:ticlSimTrackstersToticlTrackstersCLUE3DHigh',
0188 'allTrackstersToSimTrackstersAssociationsByHits:ticlTrackstersCLUE3DHighToticlSimTrackstersfromCPs',
0189 'allTrackstersToSimTrackstersAssociationsByHits:ticlSimTrackstersfromCPsToticlTrackstersCLUE3DHigh',
0190 'allTrackstersToSimTrackstersAssociationsByHits:ticlTracksterLinksToticlSimTracksters',
0191 'allTrackstersToSimTrackstersAssociationsByHits:ticlSimTrackstersToticlTracksterLinks',
0192 'allTrackstersToSimTrackstersAssociationsByHits:ticlTracksterLinksToticlSimTrackstersfromCPs',
0193 'allTrackstersToSimTrackstersAssociationsByHits:ticlSimTrackstersfromCPsToticlTracksterLinks',
0194 'allTrackstersToSimTrackstersAssociationsByHits:ticlCandidateToticlSimTracksters',
0195 'allTrackstersToSimTrackstersAssociationsByHits:ticlSimTrackstersToticlCandidate',
0196 'allTrackstersToSimTrackstersAssociationsByHits:ticlCandidateToticlSimTrackstersfromCPs',
0197 'allTrackstersToSimTrackstersAssociationsByHits:ticlSimTrackstersfromCPsToticlCandidate'
0198 ),
0199 doCandidatesPlots = cms.untracked.bool(True),
0200 ticlCandidates = cms.string('ticlCandidates'),
0201 ticlTrackstersMerge = cms.InputTag('ticlTrackstersMerge'),
0202 simTiclCandidates = cms.InputTag('ticlSimTracksters'),
0203 recoTracks = cms.InputTag('generalTracks'),
0204 mergeRecoToSimAssociator = cms.InputTag('allTrackstersToSimTrackstersAssociationsByLCs', 'ticlTrackstersMergeToticlSimTrackstersfromCPs'),
0205 mergeSimToRecoAssociator = cms.InputTag('allTrackstersToSimTrackstersAssociationsByLCs', 'ticlSimTrackstersfromCPsToticlTrackstersMerge'),
0206 cummatbudinxo = cms.FileInPath('Validation/HGCalValidation/data/D41.cumulative.xo'),
0207 label_cp_effic = cms.InputTag('mix', 'MergedCaloTruth'),
0208 label_cp_fake = cms.InputTag('mix', 'MergedCaloTruth'),
0209 label_scl = cms.InputTag('mix', 'MergedCaloTruth'),
0210 simVertices = cms.InputTag('g4SimHits'),
0211 LayerClustersInputMask = cms.VInputTag(
0212 'ticlTrackstersCLUE3DHigh',
0213 'ticlSimTracksters:fromCPs',
0214 'ticlSimTracksters'
0215 ),
0216 totallayers_to_monitor = cms.int32(52),
0217 thicknesses_to_monitor = cms.vint32(
0218 120,
0219 200,
0220 300,
0221 -1
0222 ),
0223 dirName = cms.string('HGCAL/HGCalValidator/'),
0224 isticlv5 = cms.untracked.bool(False),
0225 mightGet = cms.optional.untracked.vstring
0226 )
0227 for a in args:
0228 mod.update_(a)
0229 mod.update_(kwargs)
0230 return mod