--- UserCode/MitPhysics/Utils/interface/IsolationTools.h 2011/05/20 13:25:40 1.16 +++ UserCode/MitPhysics/Utils/interface/IsolationTools.h 2011/10/18 11:27:19 1.20 @@ -1,5 +1,5 @@ //-------------------------------------------------------------------------------------------------- -// $Id: IsolationTools.h,v 1.16 2011/05/20 13:25:40 mzanetti Exp $ +// $Id: IsolationTools.h,v 1.20 2011/10/18 11:27:19 fabstoec Exp $ // // IsolationTools // @@ -13,6 +13,7 @@ #include #include "MitAna/DataTree/interface/Track.h" +#include "MitAna/DataTree/interface/Photon.h" #include "MitAna/DataTree/interface/BasicCluster.h" #include "MitAna/DataTree/interface/SuperCluster.h" #include "MitAna/DataTree/interface/CaloTower.h" @@ -41,7 +42,7 @@ namespace mithep const mithep::Collection *caloTowers); static Double_t PFMuonIsolation(const Muon *p, const PFCandidateCol *PFCands, const Vertex *vertex, Double_t delta_z = 0.1, Double_t ptMin = 1.0, - Double_t extRadius = 0.4, Double_t intRadius = 0.07); + Double_t extRadius = 0.4, Double_t intRadiusGamma = 0.07, Double_t intRadius = 0.0); static Double_t PFMuonIsolation(const Muon *p, const PFCandidateCol *PFCands, const Vertex *vertex, const MuonCol *goodMuons, const ElectronCol *goodElectrons, Double_t delta_z = 0.1, Double_t ptMin = 1.0, Double_t extRadius = 0.4, @@ -72,6 +73,24 @@ namespace mithep UInt_t maxNExpectedHitsInner = 999, const mithep::DecayParticleCol *conversions = 0); + // methods for Hgg BaseLien Selection. These isoaltion are stupid, but what can we do.... ;( + static Double_t CiCTrackIsolation(const mithep::Photon*, + const BaseVertex*, + Double_t extRadius, + Double_t intRadius, + Double_t ptLow, + Double_t etaStrip, + Double_t maxD0, + Double_t maxDZ, + const mithep::Collection *tracks, + unsigned int* worstVtxIdx = NULL, + const mithep::Collection *vtxs = NULL, + const mithep::Collection *eles = NULL, + bool print=false, + double* ptmax=NULL, + double* dRmax=NULL); + + ClassDef(IsolationTools, 0) // Isolation tools }; }