Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /* \class AssociatedVariableMaxCutCandSelector

0002  * 

0003  * Candidate Selector based on a maximum cut on 

0004  * an associated variable (e.g.: isolation).

0005  *

0006  * Usage:

0007  * 

0008  * module selectedCands = AssociatedVariableMaxCutCandSelector {

0009  *   InputTag src = myCollection

0010  *   double max = 0.2

0011  * }

0012  *

0013  * \author: Luca Lista, INFN

0014  *

0015  */
0016 #include "FWCore/Framework/interface/MakerMacros.h"
0017 #include "CommonTools/UtilAlgos/interface/SingleObjectSelector.h"
0018 #include "CommonTools/UtilAlgos/interface/PairSelector.h"
0019 #include "CommonTools/UtilAlgos/interface/RefSelector.h"
0020 #include "CommonTools/UtilAlgos/interface/AnySelector.h"
0021 #include "CommonTools/UtilAlgos/interface/MaxSelector.h"
0022 #include "DataFormats/Candidate/interface/Candidate.h"
0023 
0024 typedef double isolation;
0025 
0026 typedef SingleObjectSelector<edm::AssociationVector<reco::CandidateRefProd, std::vector<isolation> >,
0027                              PairSelector<RefSelector<AnySelector>, MaxSelector<isolation> > >
0028     AssociatedVariableMaxCutCandSelector;
0029 
0030 DEFINE_FWK_MODULE(AssociatedVariableMaxCutCandSelector);