Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /* \class AssociatedVariableMaxCutCandRefSelector

0002  * 

0003  * Candidate Selector based on a maximun cut on an

0004  * associated variable (e.g.: isolation), and saver a 

0005  * collection of references.

0006  *

0007  * Usage:

0008  * 

0009  * module selectedCands = AssociatedVariableMaxCutCandRefSelector {

0010  *   InputTag src = myCollection

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/AnySelector.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<AnySelector>, MaxSelector<isolation> >,
0029                              reco::CandidateRefVector>
0030     AssociatedVariableMaxCutCandRefSelector;
0031 
0032 DEFINE_FWK_MODULE(AssociatedVariableMaxCutCandRefSelector);