Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /* \class PtMinCandViewSelector

0002  * 

0003  * Candidate Selector based on a minimum pt cut.

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

0005  * and saves a vector of references

0006  * Usage:

0007  * 

0008  * module selectedCands = PtMinCandViewSelector {

0009  *   InputTag src = myCollection

0010  *   double ptMin = 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/PtMinSelector.h"
0019 #include "DataFormats/Candidate/interface/Candidate.h"
0020 
0021 typedef SingleObjectSelector<edm::View<reco::Candidate>, PtMinSelector> PtMinCandViewSelector;
0022 
0023 DEFINE_FWK_MODULE(PtMinCandViewSelector);