Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:45:16

0001 /* \class PtMinAssociatedVariableMaxCutCandSelector

0002  * 

0003  * Candidate Selector based on a minimum pt cut

0004  * plus a cut on an associated variable (e.g.: isolation)

0005  *

0006  * Usage:

0007  * 

0008  * module selectedCands = PtMinAssociatedVariableMaxCutCandSelector {

0009  *   InputTag src = myCollection

0010  *   double ptMin = 15.0

0011  *   double max = 0.2

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/PairSelector.h"
0020 #include "CommonTools/UtilAlgos/interface/RefSelector.h"
0021 #include "CommonTools/UtilAlgos/interface/PtMinSelector.h"
0022 #include "CommonTools/UtilAlgos/interface/MaxSelector.h"
0023 #include "DataFormats/Candidate/interface/Candidate.h"
0024 
0025 typedef double isolation;
0026 
0027 typedef SingleObjectSelector<edm::AssociationVector<reco::CandidateRefProd, std::vector<isolation> >,
0028                              PairSelector<RefSelector<PtMinSelector>, MaxSelector<isolation> > >
0029     PtMinAssociatedVariableMaxCutCandSelector;
0030 
0031 DEFINE_FWK_MODULE(PtMinAssociatedVariableMaxCutCandSelector);