CMS 3D CMS Logo

AssociatedVariableMaxCutCandViewSelector.cc

Go to the documentation of this file.
00001 /* \class AssociatedVariableMaxCutCandViewSelector
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 = AssociatedVariableMaxCutCandViewSelector {
00010  *   InputTag src = myCollection
00011  *   double max = 0.2
00012  * }
00013  *
00014  * \author: Luca Lista, INFN
00015  *
00016  */
00017 #include "FWCore/Framework/interface/MakerMacros.h"
00018 #include "PhysicsTools/UtilAlgos/interface/SingleObjectSelector.h"
00019 #include "PhysicsTools/UtilAlgos/interface/PairSelector.h"
00020 #include "PhysicsTools/UtilAlgos/interface/RefSelector.h"
00021 #include "PhysicsTools/UtilAlgos/interface/AnySelector.h"
00022 #include "PhysicsTools/UtilAlgos/interface/MaxSelector.h"
00023 #include "DataFormats/Candidate/interface/Candidate.h"
00024 #include "DataFormats/Candidate/interface/CandAssociation.h"
00025 typedef double isolation;
00026 
00027 typedef SingleObjectSelector<
00028           reco::CandViewDoubleAssociations,
00029           PairSelector<
00030             RefSelector<AnySelector>,
00031             MaxSelector<isolation>
00032           >
00033         > AssociatedVariableMaxCutCandViewSelector;
00034 
00035 DEFINE_FWK_MODULE( AssociatedVariableMaxCutCandViewSelector );

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