print "Printing options" print 'doFiducial '+str(customize.doFiducial) print 'acceptance '+str(customize.acceptance) print 'tthTagsOnly '+str(customize.tthTagsOnly) print 'doMuFilter '+str(customize.doMuFilter) if customize.doFiducial: import flashgg.Systematics.fiducialCrossSectionsCustomize as fc fc.leadCut = 1./3. fc.subLeadCut = 1./4. fc.isoCut = 10. fc.etaCut = 2.5 matchCut = "leadingPhoton.hasMatchedGenPhoton() && subLeadingPhoton.hasMatchedGenPhoton()" phoIDcut = '(leadingView().phoIdMvaWrtChosenVtx() >0.320 && subLeadingView().phoIdMvaWrtChosenVtx() >0.320)' accCut = fc.getAccRecoCut() print process.flashggPreselectedDiPhotons.cut if customize.acceptance == 'IN': process.flashggPreselectedDiPhotons.cut = cms.string(str(process.flashggPreselectedDiPhotons.cut)[12:-2] +' && '+ str(matchCut)+ ' && '+ str(phoIDcut) +' && ' + str(accCut)) if customize.acceptance == 'OUT': process.flashggPreselectedDiPhotons.cut = cms.string(str(process.flashggPreselectedDiPhotons.cut)[12:-2] +' && '+ str(matchCut)+ ' && '+ str(phoIDcut) +' && !' + str(accCut)) if customize.acceptance == 'NONE': process.flashggPreselectedDiPhotons.cut = cms.string(str(process.flashggPreselectedDiPhotons.cut)[12:-2] +' && '+ str(phoIDcut)) print "Here we print the preslection cut" print process.flashggPreselectedDiPhotons.cut process.load("flashgg/Taggers/flashggTagSequence_cfi")
print "Printing options" print 'doFiducial ' + str(customize.doFiducial) print 'acceptance ' + str(customize.acceptance) print 'tthTagsOnly ' + str(customize.tthTagsOnly) print 'doMuFilter ' + str(customize.doMuFilter) if customize.doFiducial: import flashgg.Systematics.fiducialCrossSectionsCustomize as fc fc.leadCut = 1. / 3. fc.subLeadCut = 1. / 4. fc.isoCut = 10. fc.etaCut = 2.5 matchCut = "leadingPhoton.hasMatchedGenPhoton() && subLeadingPhoton.hasMatchedGenPhoton()" phoIDcut = '(leadingView().phoIdMvaWrtChosenVtx() >0.320 && subLeadingView().phoIdMvaWrtChosenVtx() >0.320)' accCut = fc.getAccRecoCut() print process.flashggPreselectedDiPhotons.cut if customize.acceptance == 'IN': process.flashggPreselectedDiPhotons.cut = cms.string( str(process.flashggPreselectedDiPhotons.cut)[12:-2] + ' && ' + str(matchCut) + ' && ' + str(phoIDcut) + ' && ' + str(accCut)) if customize.acceptance == 'OUT': process.flashggPreselectedDiPhotons.cut = cms.string( str(process.flashggPreselectedDiPhotons.cut)[12:-2] + ' && ' + str(matchCut) + ' && ' + str(phoIDcut) + ' && !' + str(accCut)) if customize.acceptance == 'NONE': process.flashggPreselectedDiPhotons.cut = cms.string(