CMS 3D CMS Logo

PdgIdAndStatusCandViewSelector.cc

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

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