Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:03

0001 #ifndef PhysicsTools_PatUtils_CaloJetSelector_h
0002 #define PhysicsTools_PatUtils_CaloJetSelector_h
0003 
0004 /**
0005    \class pat::CaloJetSelector CaloJetSelector.h "PhysicsTools/PatUtils/CaloJetSelector.h"
0006     \brief Selects good Jets
0007    
0008     The calo jet selector returns a flag (see pat::ParticleStatus) based on one of the possible
0009     selections. It is called by the generic JetSelector in case of "custom" selection.
0010 
0011     \author C. Autermann (Uni Hamburg)
0012     \version $Id: CaloJetSelector.h,v 1.4 2008/03/05 14:51:02 fronga Exp $
0013 **/
0014 
0015 #include <string>
0016 #include "DataFormats/JetReco/interface/CaloJet.h"
0017 #include "PhysicsTools/PatUtils/interface/JetSelection.h"
0018 
0019 #include "PhysicsTools/PatUtils/interface/ParticleCode.h"
0020 
0021 namespace pat {
0022 
0023   class CaloJetSelector {
0024   public:
0025     CaloJetSelector(const JetSelection& config) : config_(config) {}
0026     ~CaloJetSelector() {}
0027 
0028     /// Returns 0 if Jet matches criteria, a flag otherwise.
0029     /// Criteria depend on the selector's configuration.
0030     const ParticleStatus filter(const reco::CaloJet& Jet) const;
0031 
0032   private:
0033     JetSelection config_;
0034 
0035   };  // class
0036 
0037 }  // namespace pat
0038 
0039 #endif