Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /* \class EtaPtMinCandSelector

0002  * 

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

0004  * Usage:

0005  * 

0006  * module selectedCands = EtaPtMinCandSelector {

0007  *   InputTag src = myCollection

0008  *   double ptMin = 15.0

0009  *   double etaMin = -2

0010  *   double etaMax = 2

0011  * };

0012  *

0013  * \author: Luca Lista, INFN

0014  *

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