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 OwnVector of clones.

0006  * Usage:

0007  * 

0008  * module selectedCands = CandViewSelector {

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>,
0022                              StringCutObjectSelector<reco::Candidate, true>,
0023                              reco::CandidateCollection>
0024     CandViewSelector;
0025 
0026 DEFINE_FWK_MODULE(CandViewSelector);