Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /* \class RefCandViewRefSelector
0002  * 
0003  * RefCandidate Selector based on a configurable cut.
0004  * Reads a edm::View<RefCandidate> as input
0005  * and saves a vector of references
0006  * Usage:
0007  * 
0008  * module selectedCands = RefCandViewRefSelector {
0009  *   InputTag src = myCollection
0010  *   string cut = "pt > 15.0 & track().isValid()"
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/StringCutObjectSelector.h"
0019 #include "DataFormats/RecoCandidate/interface/RecoCandidate.h"
0020 
0021 typedef SingleObjectSelector<edm::View<reco::RecoCandidate>, StringCutObjectSelector<reco::RecoCandidate> >
0022     RecoCandViewRefSelector;
0023 
0024 DEFINE_FWK_MODULE(RecoCandViewRefSelector);