CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrajectorySeedValidation_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from Validation.RecoTrack.trajectorySeedTracks_cfi import trajectorySeedTracks as _trajectorySeedTracks
4 from SimTracker.TrackAssociation.trackingParticleRecoTrackAsssociation_cfi import trackingParticleRecoTrackAsssociation as _trackAssociation
6 
7 _seedProducerLabels = ["initialStepSeeds",
8  "detachedTripletStepSeeds",
9  "lowPtTripletStepSeeds",
10  "pixelPairStepSeeds",
11  "mixedTripletStepSeedsA",
12  "mixedTripletStepSeedsB",
13  "pixelLessStepSeeds",
14  "tobTecStepSeedsPair",
15  "tobTecStepSeedsTripl",
16  "jetCoreRegionalStepSeeds",
17  ]
18 
19 from Configuration.StandardSequences.Eras import eras
20 if eras.fastSim.isChosen():
21  _seedProducerLabels.remove("jetCoreRegionalStepSeeds")
22 
23 _moduleNames = []
24 for _label in _seedProducerLabels:
25  _lines = """
26 {0}Tracks = _trajectorySeedTracks.clone(src = cms.InputTag(\"{0}\"))
27 _moduleNames.extend([\"{0}Tracks\"])
28 """.format(_label)
29  exec(_lines)
30 
31 
32 trajectorySeedValidator = trackValidator.clone(
33  dodEdxPlots = False,
34  label = [cms.InputTag(x) for x in _moduleNames],
35  UseAssociators=True,
36  associators=[cms.InputTag("quickTrackAssociatorByHits")]
37  )
38 
39 _line = "trajectorySeedValidation = cms.Sequence(quickTrackAssociatorByHits+{0}+trajectorySeedValidator)".format("+".join(_moduleNames))
40 exec(_line)
41 
42 
43 tracksAndTrajectorySeedsValidationStandalone = cms.Sequence(
44  tracksValidationStandalone +
45  trajectorySeedValidation
46 )
47 
48 
49 # 'slim' sequences that only depend on track, seed, and tracking particle collections
50 trajectorySeedValidatorSlim = trajectorySeedValidator.clone(
51  doPVAssociationPlots = cms.untracked.bool(False),
52 )
53 trajectorySeedValidationSlim = trajectorySeedValidation.copy()
54 trajectorySeedValidationSlim.replace(trajectorySeedValidator,trajectorySeedValidatorSlim)
55 
56 tracksAndTrajectorySeedsValidationSlim = cms.Sequence(
57  tracksValidationSlim +
58  trajectorySeedValidationSlim
59 )
static std::string join(char **cmd)
Definition: RemoteFile.cc:18