コード例 #1
0
ファイル: ntuple.py プロジェクト: iasincru/usercode
process.writeNTuple = writeNTuple.clone(
    muons = isolatedMuonCollection,
    elecs = isolatedElecCollection,
    jets = jetCollection,
    met = metCollection,
    mvamet = mvametCollection,
    genMET = "genMetTrue",
    genJets = genJetCollection,

    BHadJetIndex = cms.InputTag(genLevelBJetProducerInput, "BHadJetIndex"),
    AntiBHadJetIndex = cms.InputTag(genLevelBJetProducerInput, "AntiBHadJetIndex"),
    BHadrons = cms.InputTag(genLevelBJetProducerInput, "BHadrons"),
    AntiBHadrons = cms.InputTag(genLevelBJetProducerInput, "AntiBHadrons"),
    BHadronFromTopB = cms.InputTag(genLevelBJetProducerInput, "BHadronFromTopB"),
    AntiBHadronFromTopB = cms.InputTag(genLevelBJetProducerInput, "AntiBHadronFromTopB"),
    BHadronVsJet = cms.InputTag(genLevelBJetProducerInput, "BHadronVsJet"),
    AntiBHadronVsJet = cms.InputTag(genLevelBJetProducerInput, "AntiBHadronVsJet"),
    genBHadPlusMothers = cms.InputTag(genHFBHadronMatcherInput,"genBHadPlusMothers"),
    genBHadPlusMothersIndices = cms.InputTag(genHFBHadronMatcherInput,"genBHadPlusMothersIndices"),
    genBHadIndex = cms.InputTag(genHFBHadronMatcherInput,"genBHadIndex"),
    genBHadFlavour = cms.InputTag(genHFBHadronMatcherInput,"genBHadFlavour"),
    genBHadJetIndex = cms.InputTag(genHFBHadronMatcherInput,"genBHadJetIndex"),
    genBHadFromTopWeakDecay = cms.InputTag(genHFBHadronMatcherInput,"genBHadFromTopWeakDecay"),
    genBHadLeptonIndex = cms.InputTag(genHFBHadronMatcherInput,"genBHadLeptonIndex"),
    genBHadLeptonHadronIndex = cms.InputTag(genHFBHadronMatcherInput,"genBHadLeptonHadronIndex"),
    genBHadLeptonViaTau = cms.InputTag(genHFBHadronMatcherInput,"genBHadLeptonViaTau"),

    genCHadPlusMothers = cms.InputTag(genHFCHadronMatcherInput,"genCHadPlusMothers"),
    genCHadPlusMothersIndices = cms.InputTag(genHFCHadronMatcherInput,"genCHadPlusMothersIndices"),
    genCHadIndex = cms.InputTag(genHFCHadronMatcherInput,"genCHadIndex"),
    genCHadFlavour = cms.InputTag(genHFCHadronMatcherInput,"genCHadFlavour"),
    genCHadJetIndex = cms.InputTag(genHFCHadronMatcherInput,"genCHadJetIndex"),
    genCHadFromTopWeakDecay = cms.InputTag(genHFCHadronMatcherInput,"genCHadFromTopWeakDecay"),
    genCHadLeptonIndex = cms.InputTag(genHFCHadronMatcherInput,"genCHadLeptonIndex"),
    genCHadLeptonHadronIndex = cms.InputTag(genHFCHadronMatcherInput,"genCHadLeptonHadronIndex"),
    genCHadLeptonViaTau = cms.InputTag(genHFCHadronMatcherInput,"genCHadLeptonViaTau"), 
)
コード例 #2
0
ファイル: ntuple.py プロジェクト: kovalch/TopAnalysis
writeNTuple.genBHadLeptonIndex = cms.InputTag(genBHadronMatcherInput, "genBHadLeptonIndex")
writeNTuple.genBHadLeptonHadronIndex = cms.InputTag(genBHadronMatcherInput, "genBHadLeptonHadronIndex")
writeNTuple.genBHadLeptonViaTau = cms.InputTag(genBHadronMatcherInput, "genBHadLeptonViaTau")

writeNTuple.genCHadPlusMothers = cms.InputTag(genCHadronMatcherInput, "genCHadPlusMothers")
writeNTuple.genCHadPlusMothersIndices = cms.InputTag(genCHadronMatcherInput, "genCHadPlusMothersIndices")
writeNTuple.genCHadIndex = cms.InputTag(genCHadronMatcherInput, "genCHadIndex")
writeNTuple.genCHadFlavour = cms.InputTag(genCHadronMatcherInput, "genCHadFlavour")
writeNTuple.genCHadJetIndex = cms.InputTag(genCHadronMatcherInput, "genCHadJetIndex")
writeNTuple.genCHadFromTopWeakDecay = cms.InputTag(genCHadronMatcherInput, "genCHadFromTopWeakDecay")
writeNTuple.genCHadBHadronId = cms.InputTag(genCHadronMatcherInput, "genCHadBHadronId")
writeNTuple.genCHadLeptonIndex = cms.InputTag(genCHadronMatcherInput, "genCHadLeptonIndex")
writeNTuple.genCHadLeptonHadronIndex = cms.InputTag(genCHadronMatcherInput, "genCHadLeptonHadronIndex")
writeNTuple.genCHadLeptonViaTau = cms.InputTag(genCHadronMatcherInput, "genCHadLeptonViaTau")

process.writeNTuple = writeNTuple.clone()

if signal:
    process.ntupleInRecoSeq = cms.Sequence()
else:
    process.ntupleInRecoSeq = cms.Sequence(process.writeNTuple)
    


####################################################################
## Paths, one with preselection, one without for signal samples

# Path containing selections
path = cms.Path(
    process.prefilterSequence *
    process.goodOfflinePrimaryVertices *