Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /* \class EtaPtMinPdgIdCandSelector

0002  * 

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

0004  * Usage:

0005  * 

0006  * module selectedCands = EtaPtMinPdgIdCandSelector {

0007  *   InputTag src = myCollection

0008  *   double ptMin = 15.0

0009  *   double etaMin = -2

0010  *   double etaMax = 2

0011  *   int pdgId = 11

0012  * };

0013  *

0014  * \author: Luca Lista, INFN

0015  *

0016  */
0017 #include "FWCore/Framework/interface/MakerMacros.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/PdgIdSelector.h"
0022 #include "CommonTools/UtilAlgos/interface/AndSelector.h"
0023 #include "DataFormats/Candidate/interface/Candidate.h"
0024 
0025 typedef SingleObjectSelector<reco::CandidateCollection, AndSelector<PtMinSelector, EtaRangeSelector, PdgIdSelector> >
0026     EtaPtMinPdgIdCandSelector;
0027 
0028 DEFINE_FWK_MODULE(EtaPtMinPdgIdCandSelector);