CMS 3D CMS Logo

Functions

AllTowerJetPermutations Namespace Reference

Functions

def CreateAllTowerJetPermutations
def NewNamedModule

Function Documentation

def AllTowerJetPermutations::CreateAllTowerJetPermutations (   process)

Definition at line 8 of file AllTowerJetPermutations.py.

00009                                             :
00010 
00011         RingSubtractionMethods = [ "Mean" , "Median" , "Constant" ]
00012 
00013         TowerJetSizes = [ 8 , 9 , 10 , 12 ]
00014         TowerJetShapes = [ "Circle" , "Square" ]
00015 
00016 
00017         lReturnSequence = cms.Sequence()
00018 
00019         for RingSubtractionMethod in RingSubtractionMethods:
00020                 lReturnSequence += NewNamedModule(
00021                                                                 process , 
00022                                                                 RingSubtractionMethod+"RingSubtractedTower" , 
00023                                                                 cms.EDProducer( "L1RingSubtractionProducer" , src = cms.InputTag("L1CaloTowerProducer") , RingSubtractionType = cms.string(RingSubtractionMethod) ) 
00024                                                         )
00025  
00026 
00027 
00028         for TowerJetShape in TowerJetShapes:
00029                 for TowerJetSize in TowerJetSizes:
00030         
00031                         lReturnSequence += NewNamedModule(
00032                                                                         process , 
00033                                                                         "TowerJet"+TowerJetShape+str(TowerJetSize)+"FromL1CaloTower" , 
00034                                                                         cms.EDProducer( "L1TowerJetProducer" , src = cms.InputTag("L1CaloTowerProducer") , JetDiameter = cms.uint32( TowerJetSize ) , JetShape = cms.string( TowerJetShape ) ) 
00035                                                                 )
00036 
00037                         for RingSubtractionMethod in RingSubtractionMethods:
00038                                 lReturnSequence += NewNamedModule(
00039                                                                                 process , 
00040                                                                                 "TowerJet"+TowerJetShape+str(TowerJetSize)+"From"+RingSubtractionMethod+"RingSubtractedTower" , 
00041                                                                                 cms.EDProducer( "L1TowerJetProducer" , src = cms.InputTag( RingSubtractionMethod+"RingSubtractedTower" ) , JetDiameter = cms.uint32( TowerJetSize ) , JetShape = cms.string( TowerJetShape ) ) 
00042                                                                         )
00043 
00044         return lReturnSequence
00045 
def AllTowerJetPermutations::NewNamedModule (   process,
  Name,
  Object 
)

Definition at line 3 of file AllTowerJetPermutations.py.

00004                                              :
00005         setattr( process , Name , Object )
00006         return getattr( process , Name )
00007