Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /* \class EtaPtMinViewCandSelector

0002  * 

0003  * Candidate Selector based on a minimum pt cut and an eta range.

0004  * The input is a View<Candidate>

0005  * Usage:

0006  * 

0007  * module selectedCands = EtaPtMinCandSelector {

0008  *   InputTag src = myCollection

0009  *   double ptMin = 15.0

0010  *   double etaMin = -2

0011  *   double etaMax = 2

0012  * };

0013  *

0014  * \author: Luca Lista, INFN

0015  *

0016  */
0017 #include "FWCore/Framework/interface/MakerMacros.h"
0018 #include "DataFormats/Common/interface/View.h"
0019 #include "CommonTools/UtilAlgos/interface/SingleObjectSelector.h"
0020 #include "CommonTools/UtilAlgos/interface/PtMinSelector.h"
0021 #include "CommonTools/UtilAlgos/interface/EtaRangeSelector.h"
0022 #include "CommonTools/UtilAlgos/interface/AndSelector.h"
0023 #include "DataFormats/Candidate/interface/Candidate.h"
0024 
0025 typedef SingleObjectSelector<edm::View<reco::Candidate>,
0026                              AndSelector<PtMinSelector, EtaRangeSelector>,
0027                              reco::CandidateCollection>
0028     EtaPtMinCandViewSelector;
0029 
0030 DEFINE_FWK_MODULE(EtaPtMinCandViewSelector);