CMS 3D CMS Logo

PdgIdCandRefSelector.cc

Go to the documentation of this file.
00001 /* \class PdgIdCandRefSelector
00002  * 
00003  * Candidate Selector based on a pdgId set.
00004  * Saves a collection of references to selected objects
00005  * Usage:
00006  * 
00007  * module leptonRefs = PdgIdCandRefSelector {
00008  *   InputTag src = myCollection
00009  *   vint32 pdgId = { 11, 13 }
00010  * };
00011  *
00012  * \author: Luca Lista, INFN
00013  *
00014  */
00015 #include "FWCore/Framework/interface/MakerMacros.h"
00016 #include "PhysicsTools/UtilAlgos/interface/SingleObjectSelector.h"
00017 #include "PhysicsTools/UtilAlgos/interface/PdgIdSelector.h"
00018 #include "DataFormats/Candidate/interface/Candidate.h"
00019 
00020 typedef SingleObjectSelector <
00021           reco::CandidateCollection,
00022           PdgIdSelector,
00023           reco::CandidateRefVector
00024         > PdgIdCandRefSelector;
00025 
00026 DEFINE_FWK_MODULE( PdgIdCandRefSelector );

Generated on Tue Jun 9 17:40:59 2009 for CMSSW by  doxygen 1.5.4