CMS 3D CMS Logo

Public Member Functions | Private Attributes | Static Private Attributes

cmsswVersionTools::Run52xOn51xTrigger Class Reference

--------------------------------------------- Adjust trigger content in AOD for CMSSW_5_2_X --------------------------------------------- More...

Inherits FWCore::GuiBrowsers::ConfigToolBase::ConfigToolBase.

List of all members.

Public Member Functions

def __call__
def __init__
def apply
def getDefaultParameters

Private Attributes

 _parameters

Static Private Attributes

tuple _defaultParameters = dicttypes.SortedKeysDict()
string _label = 'run52xOn51xTrigger'

Detailed Description

--------------------------------------------- Adjust trigger content in AOD for CMSSW_5_2_X ---------------------------------------------

Adjust trigger content in AOD for CMSSW_5_2_X

Definition at line 19 of file cmsswVersionTools.py.


Constructor & Destructor Documentation

def cmsswVersionTools::Run52xOn51xTrigger::__init__ (   self)

Definition at line 25 of file cmsswVersionTools.py.

00026                         :
00027         ConfigToolBase.__init__( self )
00028         self.addParameter( self._defaultParameters, 'sequence', 'patDefaultSequence', "Name of sequence to use, default: 'patDefaultSequence'" )
00029         self._parameters = copy.deepcopy( self._defaultParameters )


Member Function Documentation

def cmsswVersionTools::Run52xOn51xTrigger::__call__ (   self,
  process,
  sequence = None 
)

Definition at line 33 of file cmsswVersionTools.py.

00036                  :
00037         if sequence is None:
00038             sequence = self._defaultParameters[ 'sequence' ].value
00039         self.setParameter( 'sequence', sequence )
00040         return self.apply( process )

def cmsswVersionTools::Run52xOn51xTrigger::apply (   self,
  process 
)

Definition at line 41 of file cmsswVersionTools.py.

00042                               :
00043         sequence = self._parameters[ 'sequence' ].value
00044 
00045         from L1Trigger.GlobalTrigger.convertObjectMapRecord_cfi import convertObjectMapRecord
00046         process.l1L1GtObjectMap = convertObjectMapRecord.clone()
00047         getattr( process, sequence ).insert( 0, getattr( process, 'l1L1GtObjectMap' ) )

def cmsswVersionTools::Run52xOn51xTrigger::getDefaultParameters (   self)

Definition at line 30 of file cmsswVersionTools.py.

00031                                     :
00032         return self._defaultParameters


Member Data Documentation

tuple cmsswVersionTools::Run52xOn51xTrigger::_defaultParameters = dicttypes.SortedKeysDict() [static, private]

Definition at line 23 of file cmsswVersionTools.py.

Definition at line 22 of file cmsswVersionTools.py.

Definition at line 25 of file cmsswVersionTools.py.