Пример #1
0
#--the two below have to be picked up from confDB:
# from FastSimulation.Muons.TSGFromL2_cfi import *
# from FastSimulation.Muons.HLTL3TkMuons_cfi import *
#from FastSimulation.Muons.TrackCandidateFromL2_cfi import *
#from FastSimulation.Muons.TSGFromL2_cfi import *
#hltL3TrajectorySeed = FastSimulation.Muons.TSGFromL2_cfi.hltL3TrajectorySeed.clone()

import FastSimulation.Muons.TSGFromL2_cfi as TSG
#from FastSimulation.Muons.TSGFromL2_cfi import OIStatePropagators as OIProp
from FastSimulation.Muons.TSGFromL2_cfi import OIHitPropagators as OIHProp
## Make three individual seeders
## OIState can be taken directly from configuration
#hltL3TrajSeedOIState = TSG.l3seeds("OIState")
#hltL3TrajSeedOIState.ServiceParameters.Propagators = cms.untracked.vstring()
#OIProp(hltL3TrajSeedOIState,hltL3TrajSeedOIState.TkSeedGenerator)
hltL3TrajSeedOIHit = TSG.l3seeds("OIHitCascade")
hltL3TrajSeedOIHit.ServiceParameters.Propagators = cms.untracked.vstring()
OIHProp(hltL3TrajSeedOIHit, hltL3TrajSeedOIHit.TkSeedGenerator.iterativeTSG)
hltL3TrajSeedIOHit = TSG.l3seeds("IOHitCascade")
hltL3NoFiltersTrajSeedOIHit = TSG.l3seeds("OIHitCascade")
hltL3NoFiltersTrajSeedOIHit.ServiceParameters.Propagators = cms.untracked.vstring(
)
OIHProp(hltL3NoFiltersTrajSeedOIHit,
        hltL3NoFiltersTrajSeedOIHit.TkSeedGenerator.iterativeTSG)
hltL3NoFiltersTrajSeedIOHit = TSG.l3seeds("IOHitCascade")

## Make one TrackCand for each seeder
from FastSimulation.Muons.TrackCandidateFromL2_cfi import *
hltL3TrackCandidateFromL2OIState = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone(
)
hltL3TrackCandidateFromL2OIState.src = "hltL3TrajSeedOIState"
Пример #2
0
def SwitchToOIHit(process):
    process.hltL3TrajectorySeedOIH = TSG.l3seeds("OIHit")
Пример #3
0
#--the two below have to be picked up from confDB: 
# from FastSimulation.Muons.TSGFromL2_cfi import *
# from FastSimulation.Muons.HLTL3TkMuons_cfi import *
#from FastSimulation.Muons.TrackCandidateFromL2_cfi import *
#from FastSimulation.Muons.TSGFromL2_cfi import *
#hltL3TrajectorySeed = FastSimulation.Muons.TSGFromL2_cfi.hltL3TrajectorySeed.clone()

import FastSimulation.Muons.TSGFromL2_cfi as TSG
#from FastSimulation.Muons.TSGFromL2_cfi import OIStatePropagators as OIProp
from FastSimulation.Muons.TSGFromL2_cfi import OIHitPropagators as OIHProp
## Make three individual seeders
## OIState can be taken directly from configuration
#hltL3TrajSeedOIState = TSG.l3seeds("OIState")
#hltL3TrajSeedOIState.ServiceParameters.Propagators = cms.untracked.vstring()
#OIProp(hltL3TrajSeedOIState,hltL3TrajSeedOIState.TkSeedGenerator)
hltL3TrajSeedOIHit = TSG.l3seeds("OIHitCascade")
hltL3TrajSeedOIHit.ServiceParameters.Propagators = cms.untracked.vstring()
OIHProp(hltL3TrajSeedOIHit,hltL3TrajSeedOIHit.TkSeedGenerator.iterativeTSG)
hltL3TrajSeedIOHit = TSG.l3seeds("IOHitCascade")
hltL3NoFiltersTrajSeedOIHit = TSG.l3seeds("OIHitCascade")
hltL3NoFiltersTrajSeedOIHit.ServiceParameters.Propagators = cms.untracked.vstring()
OIHProp(hltL3NoFiltersTrajSeedOIHit,hltL3NoFiltersTrajSeedOIHit.TkSeedGenerator.iterativeTSG)
hltL3NoFiltersTrajSeedIOHit = TSG.l3seeds("IOHitCascade")

## Make one TrackCand for each seeder
from FastSimulation.Muons.TrackCandidateFromL2_cfi import *
hltL3TrackCandidateFromL2OIState = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone()
hltL3TrackCandidateFromL2OIState.SeedProducer = "hltL3TrajSeedOIState"
hltL3TrackCandidateFromL2OIHit = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone()
hltL3TrackCandidateFromL2OIHit.SeedProducer = "hltL3TrajSeedOIHit"    
hltL3TrackCandidateFromL2IOHit = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone()
Пример #4
0
def SwitchToCascade(process):
    # Make three individual seeders
    process.hltL3TrajectorySeedOIS = TSG.l3seeds("OIState")
    process.hltL3TrajectorySeedOIHC = TSG.l3seeds("OIHitCascade")
    process.hltL3TrajectorySeedIOHC = TSG.l3seeds("IOHitCascade")

    # Make one TrackCand for each seeder
    import FastSimulation.Muons.TrackCandidateFromL2_cfi
    process.hltL3TrackCandidateFromL2OIS = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone(
    )
    process.hltL3TrackCandidateFromL2OIS.src = "hltL3TrajectorySeedOIS"
    process.hltL3TrackCandidateFromL2OIHC = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone(
    )
    process.hltL3TrackCandidateFromL2OIHC.src = "hltL3TrajectorySeedOIHC"
    process.hltL3TrackCandidateFromL2IOHC = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone(
    )
    process.hltL3TrackCandidateFromL2IOHC.src = "hltL3TrajectorySeedIOHC"

    # Make one Track for each TrackCand
    process.hltL3TkTracksFromL2OIS = process.hltL3TkTracksFromL2.clone()
    process.hltL3TkTracksFromL2OIS.src = "hltL3TrackCandidateFromL2OIS"
    process.hltL3TkTracksFromL2OIHC = process.hltL3TkTracksFromL2.clone()
    process.hltL3TkTracksFromL2OIHC.src = "hltL3TrackCandidateFromL2OIHC"
    process.hltL3TkTracksFromL2IOHC = process.hltL3TkTracksFromL2.clone()
    process.hltL3TkTracksFromL2IOHC.src = "hltL3TrackCandidateFromL2IOHC"

    # Make one L3Muons for each Track
    process.hltL3MuonsOIS = process.hltL3Muons.clone()
    process.hltL3MuonsOIS.L3TrajBuilderParameters.tkTrajLabel = "hltL3TkTracksFromL2OIS"
    process.hltL3MuonsOIHC = process.hltL3Muons.clone()
    process.hltL3MuonsOIHC.L3TrajBuilderParameters.tkTrajLabel = "hltL3TkTracksFromL2OIHC"
    process.hltL3MuonsIOHC = process.hltL3Muons.clone()
    process.hltL3MuonsIOHC.L3TrajBuilderParameters.tkTrajLabel = "hltL3TkTracksFromL2IOHC"

    process.hltL3MuonsOICombined = cms.EDProducer(
        "L3TrackCombiner",
        labels=cms.VInputTag(
            cms.InputTag("hltL3MuonsOIS"),
            cms.InputTag("hltL3MuonsOIHC"),
        ))

    process.l3MuonsAllCombined = cms.EDProducer(
        "L3TrackCombiner",
        labels=cms.VInputTag(cms.InputTag("hltL3MuonsOIS"),
                             cms.InputTag("hltL3MuonsOIHC"),
                             cms.InputTag("hltL3MuonsIOHC")))

    process.l3TkFromL2Combination = cms.EDProducer(
        "L3TrackCombiner",
        labels=cms.VInputTag(cms.InputTag("hltL3TkTracksFromL2OIS"),
                             cms.InputTag("hltL3TkTracksFromL2OIHC"),
                             cms.InputTag("hltL3TkTracksFromL2IOHC")))

    process.l3TkCandFromL2Combination = cms.EDProducer(
        "L3TrackCandCombiner",
        labels=cms.VInputTag(
            cms.InputTag("hltL3TrackCandidateFromL2OIS"),
            cms.InputTag("hltL3TrackCandidateFromL2OIHC"),
            cms.InputTag("hltL3TrackCandidateFromL2IOHC"),
        ))

    process.l3SeedCombination = cms.EDProducer(
        "L3MuonTrajectorySeedCombiner",
        labels=cms.VInputTag(cms.InputTag("hltL3TrajectorySeedOIS"),
                             cms.InputTag("hltL3TrajectorySeedOIHC"),
                             cms.InputTag("hltL3TrajectorySeedIOHC")))

    process.HLTL3muonTkCandidateSequenceOIS = cms.Sequence(
        process.HLTDoLocalPixelSequence + process.HLTDoLocalStripSequence +
        process.hltL3TrajectorySeedOIS + process.hltL3TrackCandidateFromL2OIS)

    process.HLTL3muonrecoNocandSequenceOIS = cms.Sequence(
        process.HLTL3muonTkCandidateSequenceOIS +
        process.hltL3TkTracksFromL2OIS + process.hltL3MuonsOIS)

    process.HLTL3muonTkCandidateSequenceOIHC = cms.Sequence(
        process.HLTL3muonrecoNocandSequenceOIS +
        process.hltL3TrajectorySeedOIHC +
        process.hltL3TrackCandidateFromL2OIHC)

    process.HLTL3muonrecoNocandSequenceOIHC = cms.Sequence(
        process.HLTL3muonTkCandidateSequenceOIHC +
        process.hltL3TkTracksFromL2OIHC + process.hltL3MuonsOIHC)

    process.HLTL3muonTkCandSequenceIOHC = cms.Sequence(
        process.HLTL3muonrecoNocandSequenceOIHC +
        process.hltL3MuonsOICombined + process.hltL3TrajectorySeedIOHC +
        process.hltL3TrackCandidateFromL2IOHC)

    process.HLTL3muonrecoNocandSequenceIOHC = cms.Sequence(
        process.HLTL3muonTkCandSequenceIOHC + process.hltL3TkTracksFromL2IOHC +
        process.hltL3MuonsIOHC)

    process.hltL3TrajectorySeed = process.l3SeedCombination
    process.hltL3TrackCandidateFromL2 = process.l3TkCandFromL2Combination
    process.hltL3TkTracksFromL2 = process.l3TkFromL2Combination
    process.hltL3Muons = process.l3MuonsAllCombined

    process.HLTL3muonTkCandidateSequence = cms.Sequence(
        process.HLTL3muonrecoNocandSequenceIOHC + process.hltL3TrajectorySeed +
        process.hltL3TrackCandidateFromL2)
Пример #5
0
def SwitchToOIState(process):
    process.hltL3TrajectorySeedOIS = TSG.l3seeds("OIState")
Пример #6
0
def SwitchToIOHit(process):
    process.hltL3TrajectorySeedIOH = TSG.l3seeds("IOHit")
Пример #7
0
def SwitchToOIHitCascade(process):
    process.hltL3TrajectorySeedOIHCascade = TSG.l3seeds("OIHitCascade")
Пример #8
0
def SwitchToOIHit(process):
    process.hltL3TrajectorySeedOIH = TSG.l3seeds("OIHit")
Пример #9
0
def SwitchToOIState(process):
    process.hltL3TrajectorySeedOIS = TSG.l3seeds("OIState")
Пример #10
0
def SwitchToCascade(process):
    # Make three individual seeders
    process.hltL3TrajectorySeedOIS = TSG.l3seeds("OIState")
    process.hltL3TrajectorySeedOIHC = TSG.l3seeds("OIHitCascade")
    process.hltL3TrajectorySeedIOHC = TSG.l3seeds("IOHitCascade")

    # Make one TrackCand for each seeder
    import FastSimulation.Muons.TrackCandidateFromL2_cfi
    process.hltL3TrackCandidateFromL2OIS = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone()
    process.hltL3TrackCandidateFromL2OIS.src = "hltL3TrajectorySeedOIS"
    process.hltL3TrackCandidateFromL2OIHC = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone()
    process.hltL3TrackCandidateFromL2OIHC.src = "hltL3TrajectorySeedOIHC"    
    process.hltL3TrackCandidateFromL2IOHC = FastSimulation.Muons.TrackCandidateFromL2_cfi.hltL3TrackCandidateFromL2.clone()
    process.hltL3TrackCandidateFromL2IOHC.src = "hltL3TrajectorySeedIOHC"

    # Make one Track for each TrackCand
    process.hltL3TkTracksFromL2OIS = process.hltL3TkTracksFromL2.clone()
    process.hltL3TkTracksFromL2OIS.src = "hltL3TrackCandidateFromL2OIS"
    process.hltL3TkTracksFromL2OIHC = process.hltL3TkTracksFromL2.clone()
    process.hltL3TkTracksFromL2OIHC.src = "hltL3TrackCandidateFromL2OIHC"
    process.hltL3TkTracksFromL2IOHC = process.hltL3TkTracksFromL2.clone()
    process.hltL3TkTracksFromL2IOHC.src = "hltL3TrackCandidateFromL2IOHC"

    # Make one L3Muons for each Track
    process.hltL3MuonsOIS = process.hltL3Muons.clone()
    process.hltL3MuonsOIS.L3TrajBuilderParameters.tkTrajLabel = "hltL3TkTracksFromL2OIS"
    process.hltL3MuonsOIHC = process.hltL3Muons.clone()
    process.hltL3MuonsOIHC.L3TrajBuilderParameters.tkTrajLabel = "hltL3TkTracksFromL2OIHC"
    process.hltL3MuonsIOHC = process.hltL3Muons.clone()
    process.hltL3MuonsIOHC.L3TrajBuilderParameters.tkTrajLabel = "hltL3TkTracksFromL2IOHC"

    process.hltL3MuonsOICombined = cms.EDProducer(
        "L3TrackCombiner",
        labels = cms.VInputTag(
           cms.InputTag("hltL3MuonsOIS"),
           cms.InputTag("hltL3MuonsOIHC"),
           )
        )

    process.l3MuonsAllCombined = cms.EDProducer(
        "L3TrackCombiner",
        labels = cms.VInputTag(
           cms.InputTag("hltL3MuonsOIS"),
           cms.InputTag("hltL3MuonsOIHC"),
           cms.InputTag("hltL3MuonsIOHC")
           )
        )

    process.l3TkFromL2Combination = cms.EDProducer(
        "L3TrackCombiner",
        labels = cms.VInputTag(
           cms.InputTag("hltL3TkTracksFromL2OIS"),
           cms.InputTag("hltL3TkTracksFromL2OIHC"),
           cms.InputTag("hltL3TkTracksFromL2IOHC")
           )
        )

    process.l3TkCandFromL2Combination = cms.EDProducer(
        "L3TrackCandCombiner",
        labels = cms.VInputTag(
           cms.InputTag("hltL3TrackCandidateFromL2OIS"),
           cms.InputTag("hltL3TrackCandidateFromL2OIHC"),
           cms.InputTag("hltL3TrackCandidateFromL2IOHC"),
           )
        )

    process.l3SeedCombination =  cms.EDProducer(
        "L3MuonTrajectorySeedCombiner",
        labels = cms.VInputTag(
           cms.InputTag("hltL3TrajectorySeedOIS"),
           cms.InputTag("hltL3TrajectorySeedOIHC"),
           cms.InputTag("hltL3TrajectorySeedIOHC")
           )
        )

    process.HLTL3muonTkCandidateSequenceOIS = cms.Sequence(
        process.HLTDoLocalPixelSequence +
        process.HLTDoLocalStripSequence +
        process.hltL3TrajectorySeedOIS +
        process.hltL3TrackCandidateFromL2OIS
        )
    
    process.HLTL3muonrecoNocandSequenceOIS = cms.Sequence(
        process.HLTL3muonTkCandidateSequenceOIS +
        process.hltL3TkTracksFromL2OIS +
        process.hltL3MuonsOIS
        )

    process.HLTL3muonTkCandidateSequenceOIHC = cms.Sequence(
        process.HLTL3muonrecoNocandSequenceOIS +
        process.hltL3TrajectorySeedOIHC +
        process.hltL3TrackCandidateFromL2OIHC
        )

    process.HLTL3muonrecoNocandSequenceOIHC = cms.Sequence(
        process.HLTL3muonTkCandidateSequenceOIHC +
        process.hltL3TkTracksFromL2OIHC +
        process.hltL3MuonsOIHC
        )

    process.HLTL3muonTkCandSequenceIOHC = cms.Sequence(
        process.HLTL3muonrecoNocandSequenceOIHC +
        process.hltL3MuonsOICombined +
        process.hltL3TrajectorySeedIOHC +
        process.hltL3TrackCandidateFromL2IOHC
        )

    process.HLTL3muonrecoNocandSequenceIOHC = cms.Sequence(
        process.HLTL3muonTkCandSequenceIOHC +
        process.hltL3TkTracksFromL2IOHC +
        process.hltL3MuonsIOHC
        )

    process.hltL3TrajectorySeed = process.l3SeedCombination
    process.hltL3TrackCandidateFromL2 = process.l3TkCandFromL2Combination
    process.hltL3TkTracksFromL2 = process.l3TkFromL2Combination
    process.hltL3Muons = process.l3MuonsAllCombined

    process.HLTL3muonTkCandidateSequence = cms.Sequence(
        process.HLTL3muonrecoNocandSequenceIOHC +
        process.hltL3TrajectorySeed +
        process.hltL3TrackCandidateFromL2
        )
Пример #11
0
def SwitchToOIHitCascade(process):
    process.hltL3TrajectorySeedOIHCascade = TSG.l3seeds("OIHitCascade")
Пример #12
0
def SwitchToIOHit(process):
    process.hltL3TrajectorySeedIOH = TSG.l3seeds("IOHit")