Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /* \class PdgIdAndStatusCandSelector

0002  * 

0003  * Candidate Selector based on a pdgId set

0004  * and status.

0005  * Usage:

0006  * 

0007  * module leptons = PdgIdAndStatusCandSelector {

0008  *   InputTag src = myCollection

0009  *   vint32 pdgId = { 11, 13 }

0010  *   vint32 status =  { 1 }

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/AndSelector.h"
0019 #include "CommonTools/UtilAlgos/interface/PdgIdSelector.h"
0020 #include "CommonTools/UtilAlgos/interface/StatusSelector.h"
0021 #include "DataFormats/Candidate/interface/Candidate.h"
0022 
0023 typedef SingleObjectSelector<reco::CandidateCollection, AndSelector<PdgIdSelector, StatusSelector> >
0024     PdgIdAndStatusCandSelector;
0025 
0026 DEFINE_FWK_MODULE(PdgIdAndStatusCandSelector);