CMS 3D CMS Logo

EtaPtMinCandViewSelector.cc

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

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