Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 /* \class AssociatedVariableMaxCutCandSelectorNew

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 = AssociatedVariableMaxCutCandSelectorNew {

0010  *   InputTag src = myCollection

0011  *   InputTag var = myVariable

0012  *   double max = 0.2

0013  * }

0014  *

0015  * \author: Luca Lista, INFN

0016  *

0017  */
0018 #include "FWCore/Framework/interface/MakerMacros.h"
0019 #include "CommonTools/UtilAlgos/interface/ObjectSelector.h"
0020 #include "CommonTools/UtilAlgos/interface/AssociatedVariableCollectionSelector.h"
0021 #include "CommonTools/UtilAlgos/interface/AndSelector.h"
0022 #include "CommonTools/UtilAlgos/interface/RefSelector.h"
0023 #include "CommonTools/UtilAlgos/interface/AnySelector.h"
0024 #include "CommonTools/UtilAlgos/interface/MaxSelector.h"
0025 #include "DataFormats/Candidate/interface/Candidate.h"
0026 #include "DataFormats/Common/interface/ValueMap.h"
0027 
0028 typedef ObjectSelector<AssociatedVariableCollectionSelector<reco::CandidateView,
0029                                                             edm::ValueMap<float>,
0030                                                             AndSelector<AnySelector, MaxSelector<float> > > >
0031     AssociatedVariableMaxCutCandSelectorNew;
0032 
0033 DEFINE_FWK_MODULE(AssociatedVariableMaxCutCandSelectorNew);