Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /* \class PdgIdAndStatusCandViewSelector

0002  * 

0003  * Candidate Selector based on a pdgId set and status.

0004  * The input collection is a View<Candidate>.

0005  * Saves a collection of references to the selected objects.

0006  *

0007  * Usage:

0008  * 

0009  * module leptonRefs = PdgIdAndStatusCandViewSelector {

0010  *   InputTag src = myCollection

0011  *   vint32 pdgId = { 11, 13 }

0012  *   vint32 status =  { 1 }

0013  * };

0014  *

0015  * \author: Luca Lista, INFN

0016  *

0017  */
0018 #include "FWCore/Framework/interface/MakerMacros.h"
0019 #include "CommonTools/UtilAlgos/interface/SingleObjectSelector.h"
0020 #include "CommonTools/UtilAlgos/interface/AndSelector.h"
0021 #include "CommonTools/UtilAlgos/interface/PdgIdSelector.h"
0022 #include "CommonTools/UtilAlgos/interface/StatusSelector.h"
0023 #include "DataFormats/Candidate/interface/Candidate.h"
0024 
0025 typedef SingleObjectSelector<reco::CandidateView, AndSelector<PdgIdSelector, StatusSelector> >
0026     PdgIdAndStatusCandViewSelector;
0027 
0028 DEFINE_FWK_MODULE(PdgIdAndStatusCandViewSelector);