CMS 3D CMS Logo

GenJetRefSelector.cc

Go to the documentation of this file.
00001 /* \class GenJetRefSelector
00002  *
00003  * Selects GenJet with a configurable string-based cut.
00004  * Saves references to the selected tracks
00005  *
00006  * \author: Attilio Santocchia, INFN
00007  *
00008  * usage:
00009  *
00010  * module bestGenJets = GenJetRefSelector {
00011  *   src = myGenJets
00012  *   string cut = "pt > 20 & abs( eta ) < 2"
00013  * }
00014  *
00015  * for more details about the cut syntax, see the documentation
00016  * page below:
00017  *
00018  *   httpss://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePhysicsCutParser
00019  *
00020  *
00021  */
00022 
00023 #include "FWCore/Framework/interface/MakerMacros.h"
00024 #include "PhysicsTools/UtilAlgos/interface/SingleObjectSelector.h"
00025 #include "PhysicsTools/UtilAlgos/interface/StringCutObjectSelector.h"
00026 #include "DataFormats/JetReco/interface/GenJet.h"
00027 #include "DataFormats/JetReco/interface/GenJetCollection.h"
00028 
00029  typedef SingleObjectSelector<
00030            reco::GenJetCollection, 
00031            StringCutObjectSelector<reco::GenJet>,
00032            reco::GenJetRefVector
00033          > GenJetRefSelector;
00034 
00035 DEFINE_FWK_MODULE( GenJetRefSelector );

Generated on Tue Jun 9 17:41:50 2009 for CMSSW by  doxygen 1.5.4