File indexing completed on 2024-04-06 12:25:31
0001 #ifndef RecoJets_JetProducers_interface_CastorJetIDHelper_h
0002 #define RecoJets_JetProducers_interface_CastorJetIDHelper_h
0003
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 #include "FWCore/Framework/interface/Event.h"
0006 #include "DataFormats/JetReco/interface/BasicJet.h"
0007
0008 namespace reco {
0009
0010 namespace helper {
0011
0012 class CastorJetIDHelper {
0013 public:
0014
0015 CastorJetIDHelper();
0016 ~CastorJetIDHelper() {}
0017
0018 void initValues();
0019
0020
0021 void calculate(const edm::Event& event, const reco::BasicJet& jet);
0022
0023
0024
0025 double emEnergy() const { return emEnergy_; }
0026 double hadEnergy() const { return hadEnergy_; }
0027 double fem() const { return fem_; }
0028 double width() const { return width_; }
0029 double depth() const { return depth_; }
0030 double fhot() const { return fhot_; }
0031 double sigmaz() const { return sigmaz_; }
0032 int nTowers() const { return nTowers_; }
0033
0034 private:
0035
0036 double phiangle(double testphi);
0037
0038 double emEnergy_;
0039 double hadEnergy_;
0040 double fem_;
0041 double width_;
0042 double depth_;
0043 double fhot_;
0044 double sigmaz_;
0045 int nTowers_;
0046 };
0047 }
0048 }
0049 #endif