Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /* \class PdgIdCandRefSelector

0002  * 

0003  * Candidate Selector based on a pdgId set.

0004  * Saves a collection of references to selected objects

0005  * Usage:

0006  * 

0007  * module leptonRefs = PdgIdCandRefSelector {

0008  *   InputTag src = myCollection

0009  *   vint32 pdgId = { 11, 13 }

0010  * };

0011  *

0012  * \author: Luca Lista, INFN

0013  *

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