CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CommonTools/RecoUtils/python/pfcand_assomap_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 PFCandAssoMap = cms.EDProducer('PFCand_AssoMap',                        
00004          
00005           #Choose which map should be created
00006           # "VertexToPFCands", "PFCandsToVertex" or "Both"
00007           AssociationType = cms.InputTag('Both'),               
00008          
00009           #Set the number of associations per track/vertex                          
00010           MaxNumberOfAssociations = cms.int32(1),       
00011          
00012           #Set the Input Collections
00013           PFCandidateCollection = cms.InputTag('particleFlow'),
00014           VertexCollection = cms.InputTag('offlinePrimaryVertices'),
00015             
00016           #Set the BeamSpot
00017           BeamSpot = cms.InputTag('offlineBeamSpot'),
00018                   
00019           #Check for tracks from secondary vertices
00020           doReassociation = cms.bool(True),
00021           GetCleanedCollections = cms.bool(False),
00022                             
00023           #Configuration for the reassociation of gamma conversion particles
00024           ConversionsCollection = cms.InputTag('allConversions'),
00025            
00026           #Configuration for the reassociation of particles from V0 decays
00027           V0KshortCollection = cms.InputTag('generalV0Candidates','Kshort'),
00028           V0LambdaCollection = cms.InputTag('generalV0Candidates','Lambda'),
00029            
00030           #Configuration for the reassociation of particles from nuclear interactions
00031           NIVertexCollection = cms.InputTag('particleFlowDisplacedVertex'),
00032                   
00033           #Configuration for the final association
00034           # 0 == always first vertex (default)
00035           # 1 == closest vertex in z/longitudinal distance
00036           # 2 == closest vertex in 3D
00037           FinalAssociation = cms.untracked.int32(1),                        
00038                    
00039           #What to do if the dipl vertex coll can't be found
00040           ignoreMissingCollection = cms.bool(True),                         
00041                    
00042           #Input for the search of the closest vertex
00043           nTrackWeight = cms.double(0.001),
00044                   
00045 )
00046 
00047 PFCandAssoMapJJetMet = cms.EDProducer('PFCand_AssoMap',                 
00048          
00049           #Choose which map should be created
00050           # "VertexToTracks", "TracksToVertex" or "Both"
00051           AssociationType = cms.InputTag('Both'),               
00052          
00053           #Set the number of associations per track/vertex                          
00054           MaxNumberOfAssociations = cms.int32(1),       
00055          
00056           #Set the Input Collections
00057           PFCandidateCollection = cms.InputTag('particleFlow'),
00058           VertexCollection = cms.InputTag('offlinePrimaryVertices'),
00059             
00060           #Set the BeamSpot
00061           BeamSpot = cms.InputTag('offlineBeamSpot'),
00062                   
00063           #Check for tracks from secondary vertices
00064           doReassociation = cms.bool(False),
00065           GetCleanedCollections = cms.bool(False),
00066                             
00067           #Configuration for the reassociation of gamma conversion particles
00068           ConversionsCollection = cms.InputTag('allConversions'),
00069            
00070           #Configuration for the reassociation of particles from V0 decays
00071           V0KshortCollection = cms.InputTag('generalV0Candidates','Kshort'),
00072           V0LambdaCollection = cms.InputTag('generalV0Candidates','Lambda'),
00073            
00074           #Configuration for the reassociation of particles from nuclear interactions
00075           NIVertexCollection = cms.InputTag('particleFlowDisplacedVertex'),
00076                   
00077           #Configuration for the final association
00078           # 0 == always first vertex (default)
00079           # 1 == closest vertex in z/longitudinal distance
00080           # 2 == closest vertex in 3D
00081           FinalAssociation = cms.untracked.int32(0),                        
00082                    
00083           #What to do if the dipl vertex coll can't be found
00084           ignoreMissingCollection = cms.bool(True),                         
00085                    
00086           #Input for the search of the closest vertex
00087           nTrackWeight = cms.double(0.),
00088                   
00089 )
00090 
00091 PFCandAssoMapMuoEgm = cms.EDProducer('PFCand_AssoMap',                  
00092          
00093           #Choose which map should be created
00094           # "VertexToTracks", "TracksToVertex" or "Both"
00095           AssociationType = cms.InputTag('Both'),               
00096          
00097           #Set the number of associations per track/vertex                          
00098           MaxNumberOfAssociations = cms.int32(1),               
00099          
00100           #Set the Input Collections
00101           PFCandidateCollection = cms.InputTag('particleFlow'),
00102           VertexCollection = cms.InputTag('offlinePrimaryVertices'),
00103             
00104           #Set the BeamSpot
00105           BeamSpot = cms.InputTag('offlineBeamSpot'),
00106                   
00107           #Check for tracks from secondary vertices
00108           doReassociation = cms.bool(False),
00109           GetCleanedCollections = cms.bool(False),
00110                             
00111           #Configuration for the reassociation of gamma conversion particles
00112           ConversionsCollection = cms.InputTag('allConversions'),
00113            
00114           #Configuration for the reassociation of particles from V0 decays
00115           V0KshortCollection = cms.InputTag('generalV0Candidates','Kshort'),
00116           V0LambdaCollection = cms.InputTag('generalV0Candidates','Lambda'),
00117            
00118           #Configuration for the reassociation of particles from nuclear interactions
00119           NIVertexCollection = cms.InputTag('particleFlowDisplacedVertex'),
00120                   
00121           #Configuration for the final association
00122           # 0 == always first vertex (default)
00123           # 1 == closest vertex in z/longitudinal distance
00124           # 2 == closest vertex in 3D
00125           FinalAssociation = cms.untracked.int32(1),                        
00126                    
00127           #What to do if the dipl vertex coll can't be found
00128           ignoreMissingCollection = cms.bool(True),                         
00129                    
00130           #Input for the search of the closest vertex
00131           nTrackWeight = cms.double(0.),
00132                   
00133 )
00134 
00135 #Old configuration for imports from other packages
00136 #to avoid undefined references
00137 PFCands2Vertex = PFCandAssoMap.clone(                                   
00138          
00139           #Choose which map should be created
00140           # "VertexToPFCands", "PFCandsToVertex" or "Both"
00141           AssociationType = cms.InputTag('PFCandsToVertex'),
00142                  
00143 )