Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:02

0001 /* \class PdgIdCandViewSelector

0002  * 

0003  * Candidate Selector based on a pdgId set. The input collection

0004  * is a View<Candidate>.

0005  * Saves a collection of references to selected objects

0006  * Usage:

0007  * 

0008  * module leptonRefs = PdgIdCandViewSelector {

0009  *   InputTag src = myCollection

0010  *   vint32 pdgId = { 11, 13 }

0011  * };

0012  *

0013  * \author: Luca Lista, INFN

0014  *

0015  */
0016 #include "FWCore/Framework/interface/MakerMacros.h"
0017 #include "CommonTools/UtilAlgos/interface/SingleObjectSelector.h"
0018 #include "CommonTools/UtilAlgos/interface/PdgIdSelector.h"
0019 #include "DataFormats/Candidate/interface/Candidate.h"
0020 
0021 typedef SingleObjectSelector<reco::CandidateView, PdgIdSelector> PdgIdCandViewSelector;
0022 
0023 DEFINE_FWK_MODULE(PdgIdCandViewSelector);