CMS 3D CMS Logo

SuperClusterSelector.cc

Go to the documentation of this file.
00001 /* \class SuperClusterSelector
00002  *
00003  * Selects super-cluster with a configurable string-based cut.
00004  * Saves clones of the selected super-clusters 
00005  *
00006  * \author: Luca Lista, INFN
00007  *
00008  * usage:
00009  *
00010  * module bestSuperClusters = SuperClusterSelector {
00011  *   src = hybridSuperClusters
00012  *   string cut = "energy > 20 & abs( eta ) < 2"
00013  * }
00014  *
00015  * for more details about the cut syntax, see the documentation
00016  * page below:
00017  *
00018  *   httpss://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePhysicsCutParser
00019  *
00020  *
00021  */
00022 
00023 #include "FWCore/Framework/interface/MakerMacros.h"
00024 #include "PhysicsTools/UtilAlgos/interface/SingleObjectSelector.h"
00025 #include "PhysicsTools/UtilAlgos/interface/StringCutObjectSelector.h"
00026 #include "DataFormats/EgammaReco/interface/SuperCluster.h"
00027 #include "DataFormats/EgammaReco/interface/SuperClusterFwd.h"
00028 
00029  typedef SingleObjectSelector<
00030            reco::SuperClusterCollection, 
00031            StringCutObjectSelector<reco::SuperCluster>
00032          > SuperClusterSelector;
00033 
00034 DEFINE_FWK_MODULE( SuperClusterSelector );

Generated on Tue Jun 9 17:41:50 2009 for CMSSW by  doxygen 1.5.4