CMS 3D CMS Logo

EtaPtMinPdgIdCandSelector.cc

Go to the documentation of this file.
00001 /* \class EtaPtMinPdgIdCandSelector
00002  * 
00003  * Candidate Selector based on a minimum pt cut and an eta range.
00004  * Usage:
00005  * 
00006  * module selectedCands = EtaPtMinPdgIdCandSelector {
00007  *   InputTag src = myCollection
00008  *   double ptMin = 15.0
00009  *   double etaMin = -2
00010  *   double etaMax = 2
00011  *   int pdgId = 11
00012  * };
00013  *
00014  * \author: Luca Lista, INFN
00015  *
00016  */
00017 #include "FWCore/Framework/interface/MakerMacros.h"
00018 #include "PhysicsTools/UtilAlgos/interface/SingleObjectSelector.h"
00019 #include "PhysicsTools/UtilAlgos/interface/PtMinSelector.h"
00020 #include "PhysicsTools/UtilAlgos/interface/EtaRangeSelector.h"
00021 #include "PhysicsTools/UtilAlgos/interface/PdgIdSelector.h"
00022 #include "PhysicsTools/UtilAlgos/interface/AndSelector.h"
00023 #include "DataFormats/Candidate/interface/Candidate.h"
00024 
00025 typedef SingleObjectSelector<
00026           reco::CandidateCollection,
00027           AndSelector<
00028             PtMinSelector,
00029             EtaRangeSelector,
00030             PdgIdSelector
00031           >
00032         > EtaPtMinPdgIdCandSelector;
00033 
00034 DEFINE_FWK_MODULE( EtaPtMinPdgIdCandSelector );

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