CMS 3D CMS Logo

PdgIdAndStatusCandSelector.cc

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

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