CMS 3D CMS Logo

CandViewSelector.cc

Go to the documentation of this file.
00001 /* \class CandViewRefSelector
00002  * 
00003  * Candidate Selector based on a configurable cut.
00004  * Reads a edm::View<Candidate> as input
00005  * and saves a OwnVector of clones.
00006  * Usage:
00007  * 
00008  * module selectedCands = CandViewSelector {
00009  *   InputTag src = myCollection
00010  *   string cut = "pt > 15.0"
00011  * };
00012  *
00013  * \author: Luca Lista, INFN
00014  *
00015  */
00016 #include "FWCore/Framework/interface/MakerMacros.h"
00017 #include "PhysicsTools/UtilAlgos/interface/SingleObjectSelector.h"
00018 #include "PhysicsTools/UtilAlgos/interface/StringCutObjectSelector.h"
00019 #include "DataFormats/Candidate/interface/Candidate.h"
00020 
00021 typedef SingleObjectSelector<
00022           edm::View<reco::Candidate>,
00023           StringCutObjectSelector<reco::Candidate>,
00024           reco::CandidateCollection
00025        > CandViewSelector;
00026 
00027 DEFINE_FWK_MODULE(CandViewSelector);

Generated on Tue Jun 9 17:40:59 2009 for CMSSW by  doxygen 1.5.4