Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /* \class CandViewRefSelector

0002  * 

0003  * Candidate Selector based on a configurable cut.

0004  * Reads a edm::View<Candidate> as input

0005  * and saves a vector of references

0006  * Usage:

0007  * 

0008  * module selectedCands = CandViewRefSelector {

0009  *   InputTag src = myCollection

0010  *   string cut = "pt > 15.0"

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/Candidate/interface/Candidate.h"
0020 
0021 typedef SingleObjectSelector<edm::View<reco::Candidate>, StringCutObjectSelector<reco::Candidate> > CandViewRefSelector;
0022 
0023 DEFINE_FWK_MODULE(CandViewRefSelector);