00001 #ifndef EgammaHLTAlgos_EgammaHLTEcalIsolation_h 00002 #define EgammaHLTAlgos_EgammaHLTEcalIsolation_h 00003 // -*- C++ -*- 00004 // 00005 // Package: EgammaHLTAlgos 00006 // Class : EgammaHLTEcalIsolation 00007 // 00013 // 00014 // Original Author: Monica Vazquez Acosta 00015 // Created: Tue Jun 13 12:18:22 CEST 2006 00016 // $Id: EgammaHLTEcalIsolation.h,v 1.3 2008/05/12 08:55:45 ghezzi Exp $ 00017 // 00018 #include "DataFormats/EgammaCandidates/interface/Photon.h" 00019 #include "DataFormats/EgammaReco/interface/SuperCluster.h" 00020 #include "DataFormats/EgammaReco/interface/BasicCluster.h" 00021 00022 #include "DataFormats/RecoCandidate/interface/RecoCandidate.h" 00023 00024 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00025 00026 00027 class EgammaHLTEcalIsolation 00028 { 00029 00030 public: 00031 00032 //EgammaHLTEcalIsolation(float egEcalIso_Photon_EtMin = 0., float egEcalIso_Photon_ConeSize = 0.3) : 00033 EgammaHLTEcalIsolation(double egEcalIso_EtMin, double egEcalIso_ConeSize, int SC_algo_type) : 00034 etMin(egEcalIso_EtMin), conesize(egEcalIso_ConeSize), algoType_(SC_algo_type) { 00035 /* 00036 std::cout << "EgammaHLTEcalIsolation instance:" 00037 << " ptMin=" << etMin 00038 << " conesize=" << conesize 00039 << std::endl; 00040 */ 00041 00042 } 00043 00044 float isolPtSum(const reco::RecoCandidate *recocandidate, 00045 const std::vector<const reco::SuperCluster*> sclusters, 00046 const std::vector<const reco::BasicCluster*> bclusters); 00047 00049 float getetMin() { return etMin; } 00051 float getConeSize() { return conesize; } 00052 00053 private: 00054 00055 // ---------- member data -------------------------------- 00056 00057 // Parameters of isolation cone geometry. 00058 // Photon case 00059 double etMin; 00060 double conesize; 00061 int algoType_; 00062 00063 }; 00064 00065 00066 #endif