CMS 3D CMS Logo

AssociatedVariableMaxCutCandSelectorNew.cc

Go to the documentation of this file.
00001 /* \class AssociatedVariableMaxCutCandSelectorNew
00002  * 
00003  * Candidate Selector based on a maximun cut on an
00004  * associated variable (e.g.: isolation), and saver a 
00005  * collection of references.
00006  *
00007  * Usage:
00008  * 
00009  * module selectedCands = AssociatedVariableMaxCutCandSelectorNew {
00010  *   InputTag src = myCollection
00011  *   InputTag var = myVariable
00012  *   double max = 0.2
00013  * }
00014  *
00015  * \author: Luca Lista, INFN
00016  *
00017  */
00018 #include "FWCore/Framework/interface/MakerMacros.h"
00019 #include "PhysicsTools/UtilAlgos/interface/SingleObjectSelector.h"
00020 #include "PhysicsTools/UtilAlgos/interface/AssociatedVariableCollectionSelector.h"
00021 #include "PhysicsTools/UtilAlgos/interface/AndSelector.h"
00022 #include "PhysicsTools/UtilAlgos/interface/RefSelector.h"
00023 #include "PhysicsTools/UtilAlgos/interface/AnySelector.h"
00024 #include "PhysicsTools/UtilAlgos/interface/MaxSelector.h"
00025 #include "DataFormats/Candidate/interface/Candidate.h"
00026 #include "DataFormats/Common/interface/ValueMap.h"
00027 
00028 
00029 typedef ObjectSelector<
00030           AssociatedVariableCollectionSelector<
00031             reco::CandidateView, edm::ValueMap<float>,
00032             AndSelector<
00033               AnySelector,
00034               MaxSelector<float>
00035             >
00036           >
00037         > AssociatedVariableMaxCutCandSelectorNew;
00038 
00039 DEFINE_FWK_MODULE( AssociatedVariableMaxCutCandSelectorNew );

Generated on Tue Jun 9 17:40:59 2009 for CMSSW by  doxygen 1.5.4