Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /* \class CandPtrSelector

0002  * 

0003  * Candidate Selector based on a configurable cut.

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

0005  * and saves a vector of references (edm::PtrVector)

0006  *

0007  * \author: Luca Lista, INFN

0008  *

0009  */
0010 #include "FWCore/Framework/interface/MakerMacros.h"
0011 #include "CommonTools/UtilAlgos/interface/SingleObjectSelector.h"
0012 #include "CommonTools/UtilAlgos/interface/StringCutObjectSelector.h"
0013 #include "DataFormats/Candidate/interface/Candidate.h"
0014 
0015 typedef SingleObjectSelector<edm::View<reco::Candidate>,
0016                              StringCutObjectSelector<reco::Candidate, true>,
0017                              edm::PtrVector<reco::Candidate> >
0018     CandPtrSelector;
0019 
0020 DEFINE_FWK_MODULE(CandPtrSelector);