CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/HLTrigger/HLTanalyzers/python/OpenHLT_HBHEnoise_cff.py

Go to the documentation of this file.
00001 # /users/amott/2012/HCalNoise/OpenHLTTowerCleaner/V2 (CMSSW_5_2_0_pre4_HLT6)
00002 
00003 import FWCore.ParameterSet.Config as cms
00004 
00005 from HLTrigger.HLTanalyzers.HLT_FULL_cff import *
00006 
00007 
00008 HLTConfigVersion = cms.PSet(
00009   tableName = cms.string('/users/amott/2012/HCalNoise/OpenHLTTowerCleaner/V2')
00010 )
00011 
00012 hltHcalNoiseInfoProducerUpper = cms.EDProducer( "HcalNoiseInfoProducer",
00013     lMinRatio = cms.double( 0.7 ),
00014     lMaxHighEHitTime = cms.double( 9999.0 ),
00015     pMinHighEHitTime = cms.double( -4.0 ),
00016     lMaxLowEHitTime = cms.double( 9999.0 ),
00017     TS4TS5EnergyThreshold = cms.double( 50.0 ),
00018     digiCollName = cms.string( "hltHcalDigis" ),
00019     lMinHPDHits = cms.int32( 17 ),
00020     tMinRBXHits = cms.int32( 50 ),
00021     TS4TS5UpperThreshold = cms.vdouble( 70.0, 90.0, 100.0, 400.0, 4000.0 ),
00022     minEZeros = cms.double( 10.0 ),
00023     pMinRBXHits = cms.int32( 20 ),
00024     tMinHPDHits = cms.int32( 16 ),
00025     pMaxHPDEMF = cms.double( 0.02 ),
00026     minRecHitE = cms.double( 1.5 ),
00027     hlMaxRBXEMF = cms.double( 0.01 ),
00028     pMinEEMF = cms.double( 10.0 ),
00029     pMaxRatio = cms.double( 0.85 ),
00030     caloTowerCollName = cms.string( "hltTowerMakerForAll" ),
00031     minEEMF = cms.double( 50.0 ),
00032     pMaxHighEHitTime = cms.double( 5.0 ),
00033     pMaxLowEHitTime = cms.double( 6.0 ),
00034     minHighHitE = cms.double( 25.0 ),
00035     lMinZeros = cms.int32( 10 ),
00036     lMinRBXHits = cms.int32( 999 ),
00037     fillRecHits = cms.bool( True ),
00038     HcalRecHitFlagsToBeExcluded = cms.vint32( 11, 12, 13, 14, 15 ),
00039     maxCaloTowerIEta = cms.int32( 20 ),
00040     minLowHitE = cms.double( 10.0 ),
00041     pMinRatio = cms.double( 0.75 ),
00042     HcalAcceptSeverityLevel = cms.uint32( 9 ),
00043     pMaxRBXEMF = cms.double( 0.02 ),
00044     pMinE = cms.double( 40.0 ),
00045     tMaxRatio = cms.double( 0.92 ),
00046     maxTrackEta = cms.double( 2.0 ),
00047     tMinHighEHitTime = cms.double( -7.0 ),
00048     TS4TS5LowerCut = cms.vdouble(-999, -999, -999, -999, -999, -999, -999 ),
00049     lMaxRatio = cms.double( 0.96 ),
00050     fillCaloTowers = cms.bool( True ),
00051     fillDigis = cms.bool( True ),
00052     lMinHighEHitTime = cms.double( -9999.0 ),
00053     pMinEZeros = cms.double( 5.0 ),
00054     pMinERatio = cms.double( 25.0 ),
00055     fillTracks = cms.bool( False ),
00056     trackCollName = cms.string( "generalTracks" ),
00057     pMinZeros = cms.int32( 4 ),
00058     minTrackPt = cms.double( 1.0 ),
00059     tMinRatio = cms.double( 0.73 ),
00060     TS4TS5UpperCut = cms.vdouble( 1.0, 0.8, 0.75, 0.72, 0.72 ),
00061     pMinLowEHitTime = cms.double( -6.0 ),
00062     pMinHPDHits = cms.int32( 10 ),
00063     lMinLowEHitTime = cms.double( -9999.0 ),
00064     recHitCollName = cms.string( "hltHbhereco" ),
00065     tMinHPDNoOtherHits = cms.int32( 9 ),
00066     minERatio = cms.double( 50.0 ),
00067     tMinLowEHitTime = cms.double( -9999.0 ),
00068     tMaxHighEHitTime = cms.double( 6.0 ),
00069     tMinZeros = cms.int32( 8 ),
00070     lMinHPDNoOtherHits = cms.int32( 10 ),
00071     maxProblemRBXs = cms.int32( 20 ),
00072     TS4TS5LowerThreshold = cms.vdouble( 100.0, 120.0, 150.0, 200.0, 300.0, 400.0, 500.0 ),
00073     tMaxLowEHitTime = cms.double( 9999.0 ),
00074     pMinHPDNoOtherHits = cms.int32( 7 ),
00075     hlMaxHPDEMF = cms.double( -9999.0 )
00076 )
00077 hltHcalNoiseInfoProducerLower = cms.EDProducer( "HcalNoiseInfoProducer",
00078     lMinRatio = cms.double( 0.7 ),
00079     lMaxHighEHitTime = cms.double( 9999.0 ),
00080     pMinHighEHitTime = cms.double( -4.0 ),
00081     lMaxLowEHitTime = cms.double( 9999.0 ),
00082     TS4TS5EnergyThreshold = cms.double( 50.0 ),
00083     digiCollName = cms.string( "hltHcalDigis" ),
00084     lMinHPDHits = cms.int32( 17 ),
00085     tMinRBXHits = cms.int32( 50 ),
00086     TS4TS5UpperThreshold = cms.vdouble( 70.0, 90.0, 100.0, 400.0, 4000.0 ),
00087     minEZeros = cms.double( 10.0 ),
00088     pMinRBXHits = cms.int32( 20 ),
00089     tMinHPDHits = cms.int32( 16 ),
00090     pMaxHPDEMF = cms.double( 0.02 ),
00091     minRecHitE = cms.double( 1.5 ),
00092     hlMaxRBXEMF = cms.double( 0.01 ),
00093     pMinEEMF = cms.double( 10.0 ),
00094     pMaxRatio = cms.double( 0.85 ),
00095     caloTowerCollName = cms.string( "hltTowerMakerForAll" ),
00096     minEEMF = cms.double( 50.0 ),
00097     pMaxHighEHitTime = cms.double( 5.0 ),
00098     pMaxLowEHitTime = cms.double( 6.0 ),
00099     minHighHitE = cms.double( 25.0 ),
00100     lMinZeros = cms.int32( 10 ),
00101     lMinRBXHits = cms.int32( 999 ),
00102     fillRecHits = cms.bool( True ),
00103     HcalRecHitFlagsToBeExcluded = cms.vint32( 11, 12, 13, 14, 15 ),
00104     maxCaloTowerIEta = cms.int32( 20 ),
00105     minLowHitE = cms.double( 10.0 ),
00106     pMinRatio = cms.double( 0.75 ),
00107     HcalAcceptSeverityLevel = cms.uint32( 9 ),
00108     pMaxRBXEMF = cms.double( 0.02 ),
00109     pMinE = cms.double( 40.0 ),
00110     tMaxRatio = cms.double( 0.92 ),
00111     maxTrackEta = cms.double( 2.0 ),
00112     tMinHighEHitTime = cms.double( -7.0 ),
00113     TS4TS5LowerCut = cms.vdouble( -1.0, -0.95, -0.9, -0.9, -0.9, -0.9, -0.9 ),
00114     lMaxRatio = cms.double( 0.96 ),
00115     fillCaloTowers = cms.bool( True ),
00116     fillDigis = cms.bool( True ),
00117     lMinHighEHitTime = cms.double( -9999.0 ),
00118     pMinEZeros = cms.double( 5.0 ),
00119     pMinERatio = cms.double( 25.0 ),
00120     fillTracks = cms.bool( False ),
00121     trackCollName = cms.string( "generalTracks" ),
00122     pMinZeros = cms.int32( 4 ),
00123     minTrackPt = cms.double( 1.0 ),
00124     tMinRatio = cms.double( 0.73 ),
00125     TS4TS5UpperCut = cms.vdouble( 999.0, 999.0, 999.0, 999.0, 999.0 ),
00126     pMinLowEHitTime = cms.double( -6.0 ),
00127     pMinHPDHits = cms.int32( 10 ),
00128     lMinLowEHitTime = cms.double( -9999.0 ),
00129     recHitCollName = cms.string( "hltHbhereco" ),
00130     tMinHPDNoOtherHits = cms.int32( 9 ),
00131     minERatio = cms.double( 50.0 ),
00132     tMinLowEHitTime = cms.double( -9999.0 ),
00133     tMaxHighEHitTime = cms.double( 6.0 ),
00134     tMinZeros = cms.int32( 8 ),
00135     lMinHPDNoOtherHits = cms.int32( 10 ),
00136     maxProblemRBXs = cms.int32( 20 ),
00137     TS4TS5LowerThreshold = cms.vdouble( 100.0, 120.0, 150.0, 200.0, 300.0, 400.0, 500.0 ),
00138     tMaxLowEHitTime = cms.double( 9999.0 ),
00139     pMinHPDNoOtherHits = cms.int32( 7 ),
00140     hlMaxHPDEMF = cms.double( -9999.0 )
00141 )
00142 hltHcalNoiseInfoProducerNoR45 = cms.EDProducer( "HcalNoiseInfoProducer",
00143     lMinRatio = cms.double( 0.7 ),
00144     lMaxHighEHitTime = cms.double( 9999.0 ),
00145     pMinHighEHitTime = cms.double( -4.0 ),
00146     lMaxLowEHitTime = cms.double( 9999.0 ),
00147     TS4TS5EnergyThreshold = cms.double( 50.0 ),
00148     digiCollName = cms.string( "hltHcalDigis" ),
00149     lMinHPDHits = cms.int32( 17 ),
00150     tMinRBXHits = cms.int32( 50 ),
00151     TS4TS5UpperThreshold = cms.vdouble( 70.0, 90.0, 100.0, 400.0, 4000.0 ),
00152     minEZeros = cms.double( 10.0 ),
00153     pMinRBXHits = cms.int32( 20 ),
00154     tMinHPDHits = cms.int32( 16 ),
00155     pMaxHPDEMF = cms.double( 0.02 ),
00156     minRecHitE = cms.double( 1.5 ),
00157     hlMaxRBXEMF = cms.double( 0.01 ),
00158     pMinEEMF = cms.double( 10.0 ),
00159     pMaxRatio = cms.double( 0.85 ),
00160     caloTowerCollName = cms.string( "hltTowerMakerForAll" ),
00161     minEEMF = cms.double( 50.0 ),
00162     pMaxHighEHitTime = cms.double( 5.0 ),
00163     pMaxLowEHitTime = cms.double( 6.0 ),
00164     minHighHitE = cms.double( 25.0 ),
00165     lMinZeros = cms.int32( 10 ),
00166     lMinRBXHits = cms.int32( 999 ),
00167     fillRecHits = cms.bool( True ),
00168     HcalRecHitFlagsToBeExcluded = cms.vint32( 11, 12, 13, 14, 15 ),
00169     maxCaloTowerIEta = cms.int32( 20 ),
00170     minLowHitE = cms.double( 10.0 ),
00171     pMinRatio = cms.double( 0.75 ),
00172     HcalAcceptSeverityLevel = cms.uint32( 9 ),
00173     pMaxRBXEMF = cms.double( 0.02 ),
00174     pMinE = cms.double( 40.0 ),
00175     tMaxRatio = cms.double( 0.92 ),
00176     maxTrackEta = cms.double( 2.0 ),
00177     tMinHighEHitTime = cms.double( -7.0 ),
00178     TS4TS5LowerCut = cms.vdouble(-999, -999, -999, -999, -999, -999, -999 ),
00179     lMaxRatio = cms.double( 0.96 ),
00180     fillCaloTowers = cms.bool( True ),
00181     fillDigis = cms.bool( True ),
00182     lMinHighEHitTime = cms.double( -9999.0 ),
00183     pMinEZeros = cms.double( 5.0 ),
00184     pMinERatio = cms.double( 25.0 ),
00185     fillTracks = cms.bool( False ),
00186     trackCollName = cms.string( "generalTracks" ),
00187     pMinZeros = cms.int32( 4 ),
00188     minTrackPt = cms.double( 1.0 ),
00189     tMinRatio = cms.double( 0.73 ),
00190     TS4TS5UpperCut = cms.vdouble( 999.0, 999.0, 999.0, 999.0, 999.0 ),
00191     pMinLowEHitTime = cms.double( -6.0 ),
00192     pMinHPDHits = cms.int32( 10 ),
00193     lMinLowEHitTime = cms.double( -9999.0 ),
00194     recHitCollName = cms.string( "hltHbhereco" ),
00195     tMinHPDNoOtherHits = cms.int32( 9 ),
00196     minERatio = cms.double( 50.0 ),
00197     tMinLowEHitTime = cms.double( -9999.0 ),
00198     tMaxHighEHitTime = cms.double( 6.0 ),
00199     tMinZeros = cms.int32( 8 ),
00200     lMinHPDNoOtherHits = cms.int32( 10 ),
00201     maxProblemRBXs = cms.int32( 20 ),
00202     TS4TS5LowerThreshold = cms.vdouble( 100.0, 120.0, 150.0, 200.0, 300.0, 400.0, 500.0 ),
00203     tMaxLowEHitTime = cms.double( 9999.0 ),
00204     pMinHPDNoOtherHits = cms.int32( 7 ),
00205     hlMaxHPDEMF = cms.double( -9999.0 )
00206 )
00207 hltHcalTowerNoiseCleanerUpper = cms.EDProducer( "HLTHcalTowerNoiseCleaner",
00208     TS4TS5EnergyThreshold = cms.double( 50.0 ),
00209     TS4TS5UpperThreshold = cms.vdouble( 70.0, 90.0, 100.0, 400.0, 4000.0 ),
00210     HcalNoiseRBXCollection = cms.InputTag( "hltHcalNoiseInfoProducerUpper" ),
00211     minHPDNoOtherHits = cms.int32( 10 ),
00212     minRBXEnergy = cms.double( 50.0 ),
00213     CaloTowerCollection = cms.InputTag( "hltTowerMakerForAll" ),
00214     minRecHitE = cms.double( 1.5 ),
00215     severity = cms.int32( 1 ),
00216     minHighHitE = cms.double( 25.0 ),
00217     numRBXsToConsider = cms.int32( 2 ),
00218     minRatio = cms.double( -999.0 ),
00219     maxHighEHitTime = cms.double( 9999.0 ),
00220     maxRBXEMF = cms.double( 0.02 ),
00221     minHPDHits = cms.int32( 17 ),
00222     needEMFCoincidence = cms.bool( True ),
00223     minZeros = cms.int32( 10 ),
00224     minLowHitE = cms.double( 10.0 ),
00225     TS4TS5UpperCut = cms.vdouble( 1.0, 0.8, 0.75, 0.72, 0.72 ),
00226     minHighEHitTime = cms.double( -9999.0 ),
00227     maxRatio = cms.double( 999.0 ),
00228     TS4TS5LowerCut = cms.vdouble(-999, -999, -999, -999, -999, -999, -999 ),
00229     maxTowerNoiseEnergyFraction = cms.double( 0.5 ),
00230     TS4TS5LowerThreshold = cms.vdouble( 100.0, 120.0, 150.0, 200.0, 300.0, 400.0, 500.0 ),
00231     minRBXHits = cms.int32( 999 ),
00232     maxNumRBXs = cms.int32( 2 )
00233 )
00234 hltHcalTowerNoiseCleanerLower = cms.EDProducer( "HLTHcalTowerNoiseCleaner",
00235     TS4TS5EnergyThreshold = cms.double( 50.0 ),
00236     TS4TS5UpperThreshold = cms.vdouble( 70.0, 90.0, 100.0, 400.0, 4000.0 ),
00237     HcalNoiseRBXCollection = cms.InputTag( "hltHcalNoiseInfoProducerLower" ),
00238     minHPDNoOtherHits = cms.int32( 10 ),
00239     minRBXEnergy = cms.double( 50.0 ),
00240     CaloTowerCollection = cms.InputTag( "hltTowerMakerForAll" ),
00241     minRecHitE = cms.double( 1.5 ),
00242     severity = cms.int32( 1 ),
00243     minHighHitE = cms.double( 25.0 ),
00244     numRBXsToConsider = cms.int32( 2 ),
00245     minRatio = cms.double( -999.0 ),
00246     maxHighEHitTime = cms.double( 9999.0 ),
00247     maxRBXEMF = cms.double( 0.02 ),
00248     minHPDHits = cms.int32( 17 ),
00249     needEMFCoincidence = cms.bool( True ),
00250     minZeros = cms.int32( 10 ),
00251     minLowHitE = cms.double( 10.0 ),
00252     TS4TS5UpperCut = cms.vdouble( 999.0, 999.0, 999.0, 999.0, 999.0 ),
00253     minHighEHitTime = cms.double( -9999.0 ),
00254     maxRatio = cms.double( 999.0 ),
00255     TS4TS5LowerCut = cms.vdouble( -1.0, -0.95, -0.9, -0.9, -0.9, -0.9, -0.9 ),
00256     maxTowerNoiseEnergyFraction = cms.double( 0.5 ),
00257     TS4TS5LowerThreshold = cms.vdouble( 100.0, 120.0, 150.0, 200.0, 300.0, 400.0, 500.0 ),
00258     minRBXHits = cms.int32( 999 ),
00259     maxNumRBXs = cms.int32( 2 )
00260 )
00261 hltHcalTowerNoiseCleanerNoR45 = cms.EDProducer( "HLTHcalTowerNoiseCleaner",
00262     TS4TS5EnergyThreshold = cms.double( 50.0 ),
00263     TS4TS5UpperThreshold = cms.vdouble( 70.0, 90.0, 100.0, 400.0, 4000.0 ),
00264     HcalNoiseRBXCollection = cms.InputTag( "hltHcalNoiseInfoProducerNoR45" ),
00265     minHPDNoOtherHits = cms.int32( 10 ),
00266     minRBXEnergy = cms.double( 50.0 ),
00267     CaloTowerCollection = cms.InputTag( "hltTowerMakerForAll" ),
00268     minRecHitE = cms.double( 1.5 ),
00269     severity = cms.int32( 1 ),
00270     minHighHitE = cms.double( 25.0 ),
00271     numRBXsToConsider = cms.int32( 2 ),
00272     minRatio = cms.double( -999.0 ),
00273     maxHighEHitTime = cms.double( 9999.0 ),
00274     maxRBXEMF = cms.double( 0.02 ),
00275     minHPDHits = cms.int32( 17 ),
00276     needEMFCoincidence = cms.bool( True ),
00277     minZeros = cms.int32( 10 ),
00278     minLowHitE = cms.double( 10.0 ),
00279     TS4TS5UpperCut = cms.vdouble( 999.0, 999.0, 999.0, 999.0, 999.0 ),
00280     minHighEHitTime = cms.double( -9999.0 ),
00281     maxRatio = cms.double( 999.0 ),
00282     TS4TS5LowerCut = cms.vdouble( -999.0, -999.0, -999.0, -999.0, -999.0, -999.0, -999.0 ),
00283     maxTowerNoiseEnergyFraction = cms.double( 0.5 ),
00284     TS4TS5LowerThreshold = cms.vdouble( 100.0, 120.0, 150.0, 200.0, 300.0, 400.0, 500.0 ),
00285     minRBXHits = cms.int32( 999 ),
00286     maxNumRBXs = cms.int32( 2 )
00287 )
00288 
00289 HLTDoLocalHcalSequence = cms.Sequence( hltHcalDigis + hltHbhereco + hltHfreco + hltHoreco )
00290 HLTDoCaloSequence = cms.Sequence( hltEcalRawToRecHitFacility + hltEcalRegionalRestFEDs + hltEcalRecHitAll + HLTDoLocalHcalSequence + hltTowerMakerForAll )
00291 OpenHLTHCalNoiseTowerCleanerSequence = cms.Sequence( HLTDoCaloSequence )
00292 OpenHLTHCalNoiseTowerCleanerSequence = cms.Sequence( HLTDoCaloSequence + hltHcalNoiseInfoProducerUpper + hltHcalNoiseInfoProducerLower + hltHcalNoiseInfoProducerNoR45 + hltHcalTowerNoiseCleanerUpper + hltHcalTowerNoiseCleanerLower + hltHcalTowerNoiseCleanerNoR45 )
00293 
00294 
00295 # En-able HF Noise filters in GRun menu
00296 if 'hltHfreco' in locals():
00297     hltHfreco.setNoiseFlags = cms.bool( True )
00298 
00299 # CMSSW version specific customizations
00300 import os
00301 cmsswVersion = os.environ['CMSSW_VERSION']
00302 
00303 # dummyfy hltGetConditions in cff's
00304 if 'hltGetConditions' in locals() and 'HLTriggerFirstPath' in locals() :
00305     hltDummyConditions = cms.EDFilter( "HLTBool",
00306         result = cms.bool( True )
00307     )
00308     HLTriggerFirstPath.replace(hltGetConditions,hltDummyConditions)
00309