Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /* \class PtMinCandViewCloneSelector

0002  * 

0003  * Candidate Selector based on a minimum pt cut.

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

0005  * and saves a vector of clones.

0006  *

0007  * Usage:

0008  * 

0009  * module selectedCands = PtMinCandViewCloneSelector {

0010  *   InputTag src = myCollection

0011  *   double ptMin = 15.0

0012  * };

0013  *

0014  * \author: Luca Lista, INFN

0015  *

0016  */
0017 #include "FWCore/Framework/interface/MakerMacros.h"
0018 #include "CommonTools/UtilAlgos/interface/SingleObjectSelector.h"
0019 #include "CommonTools/UtilAlgos/interface/PtMinSelector.h"
0020 #include "DataFormats/Candidate/interface/Candidate.h"
0021 
0022 typedef SingleObjectSelector<edm::View<reco::Candidate>, PtMinSelector, reco::CandidateCollection>
0023     PtMinCandViewCloneSelector;
0024 
0025 DEFINE_FWK_MODULE(PtMinCandViewCloneSelector);