CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/HLTriggerOffline/Higgs/python/HiggsValidation_cff.py

Go to the documentation of this file.
00001 
00002 ####  based on EgammaValidation_cff  
00003 
00004 import FWCore.ParameterSet.Config as cms
00005 
00006 class dummy:
00007     pass
00008 
00009 samples=dummy()
00010 files=dummy()
00011 
00012 ##########################################################
00013 # Define which preselections to run                      #
00014 ##########################################################
00015 
00016 samples.names = ['HWW',
00017                  'Hgg',
00018                  'H2tau',
00019                  'HZZ',
00020                  'Htaunu'
00021                  ]
00022 
00023 files.HWW = ['HLTHiggsBits_WW']
00024 files.Hgg = ['HLTHiggsBits_gg']
00025 files.H2tau = ['HLTHiggsBits_2tau']
00026 files.HZZ = ['HLTHiggsBits_ZZ']
00027 files.Htaunu = ['HLTHiggsBits_taunu']
00028 
00029                       
00030 
00031 tmp = cms.SequencePlaceholder("tmp")
00032 HiggsValidationSequence = cms.Sequence(tmp)  # no empty sequences allowed, start with dummy
00033 
00034 #loop over samples
00035 for samplenum in range(len(samples.names)):
00036 
00037    
00038     # loop over triggers for each sample
00039   
00040    for trig in getattr(files,samples.names[samplenum]):
00041        trigname = trig + samples.names[samplenum] 
00042         #import appropriate config snippet
00043        # filename = "HLTriggerOffline.Higgs."+trig+"_cfi"
00044        filename = "HLTriggerOffline.Higgs."+trig+"_cfi"
00045        trigdef =__import__( filename )
00046        import sys
00047        globals()[trigname] = getattr(sys.modules[filename],trig).clone()    # clone imported config
00048       #  setattr(globals()[trigname],"cutcollection",cms.InputTag(fiducialname))        # set preselacted generator collection
00049       #  setattr(globals()[trigname],"cutnum",cms.int32( samples.num[samplenum]  )) # cut value for preselection
00050        # setattr(globals()[trigname],"pdgGen",cms.int32( samples.pdgid[samplenum])) #correct pdgId for MC matching
00051        # getattr(globals()[trigname],'triggerobject').setProcessName( lumiprocess[pathlumi[trig]] )         #set proper process name
00052        # for filterpset in getattr(globals()[trigname],'filters'):
00053         #    getattr(filterpset,'HLTCollectionLabels').setProcessName( lumiprocess[pathlumi[trig]] )
00054          #   for isocollections in getattr(filterpset,'IsoCollections'):
00055           #      isocollections.setProcessName( lumiprocess[pathlumi[trig]])
00056 
00057        HiggsValidationSequence *= globals()[trigname]                      # add to sequence
00058 
00059 
00060 HiggsValidationSequence.remove(tmp)  # remove the initial dummy