ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitPhysics/Utils/interface/IsolationTools.h
Revision: 1.25
Committed: Mon May 7 18:06:07 2012 UTC (12 years, 11 months ago) by ceballos
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_028, Mit_027, Mit_027a
Changes since 1.24: +2 -2 lines
Log Message:
new rhos

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 ceballos 1.25 // $Id: IsolationTools.h,v 1.24 2012/04/28 19:10:01 ceballos Exp $
3 loizides 1.1 //
4     // IsolationTools
5     //
6     // Isolation functions to compute various kinds of isolation.
7     //
8     // Authors: S.Xie
9     //--------------------------------------------------------------------------------------------------
10    
11 loizides 1.4 #ifndef MITPHYSICS_UTILS_ISOLATIONTOOLS_H
12     #define MITPHYSICS_UTILS_ISOLATIONTOOLS_H
13 loizides 1.1
14     #include <TMath.h>
15     #include "MitAna/DataTree/interface/Track.h"
16 fabstoec 1.18 #include "MitAna/DataTree/interface/Photon.h"
17 loizides 1.1 #include "MitAna/DataTree/interface/BasicCluster.h"
18     #include "MitAna/DataTree/interface/SuperCluster.h"
19     #include "MitAna/DataTree/interface/CaloTower.h"
20 ceballos 1.6 #include "MitAna/DataTree/interface/VertexCol.h"
21     #include "MitAna/DataTree/interface/MuonCol.h"
22     #include "MitAna/DataTree/interface/ElectronCol.h"
23     #include "MitAna/DataTree/interface/PFCandidateCol.h"
24 ceballos 1.8 #include "MitAna/DataTree/interface/TrackCol.h"
25 bendavid 1.11 #include "MitAna/DataTree/interface/DecayParticleCol.h"
26 ceballos 1.23 #include "MitAna/DataTree/interface/PileupEnergyDensityCol.h"
27     #include "MitPhysics/Utils/interface/ElectronTools.h"
28 loizides 1.1
29     namespace mithep
30     {
31     class IsolationTools {
32     public:
33     static Double_t TrackIsolation(const mithep::Track *p, Double_t extRadius,
34 loizides 1.2 Double_t intRadius, Double_t ptLow, Double_t maxVtxZDist,
35 phedex 1.3 const mithep::Collection<mithep::Track> *tracks);
36 loizides 1.1 static Double_t EcalIsolation(const SuperCluster *sc, Double_t coneSize, Double_t etLow,
37 phedex 1.3 const mithep::Collection<mithep::BasicCluster> *basicClusters);
38 loizides 1.1 static Double_t CaloTowerHadIsolation(const ThreeVector *p, Double_t extRadius,
39     Double_t intRadius, Double_t etLow,
40 phedex 1.3 const mithep::Collection<mithep::CaloTower>
41     *caloTowers);
42 loizides 1.1 static Double_t CaloTowerEmIsolation(const ThreeVector *p, Double_t extRadius,
43     Double_t intRadius, Double_t etLow,
44 phedex 1.3 const mithep::Collection<mithep::CaloTower> *caloTowers);
45 ceballos 1.24 static Double_t PFRadialMuonIsolation(const Muon *p, const PFCandidateCol *PFCands,
46     Double_t ptMin = 1.0, Double_t extRadius = 0.3);
47 mzanetti 1.16 static Double_t PFMuonIsolation(const Muon *p, const PFCandidateCol *PFCands, const Vertex *vertex,
48     Double_t delta_z = 0.1, Double_t ptMin = 1.0,
49 ceballos 1.19 Double_t extRadius = 0.4, Double_t intRadiusGamma = 0.07, Double_t intRadius = 0.0);
50 ceballos 1.21 static Double_t PFMuonIsolation(const Muon *p, const PFCandidateCol *PFCands,
51     const MuonCol *goodMuons, const ElectronCol *goodElectrons,
52     const Vertex *vertex, Double_t delta_z, Double_t ptMin,
53     Double_t extRadius, Double_t intRadiusGamma, Double_t intRadius);
54 ceballos 1.6 static Double_t PFElectronIsolation(const Electron *p, const PFCandidateCol *PFCands,
55 ceballos 1.9 const Vertex *vertex, Double_t delta_z, Double_t ptMin,
56 sixie 1.22 Double_t extRadius, Double_t intRadius, Int_t PFCandidateType = -1);
57 ceballos 1.21 static Double_t PFElectronIsolation(const Electron *p, const PFCandidateCol *PFCands,
58     const MuonCol *goodMuons, const ElectronCol *goodElectrons,
59     const Vertex *vertex, Double_t delta_z, Double_t ptMin,
60 sixie 1.22 Double_t extRadius, Double_t intRadius, Int_t PFCandidateType = -1);
61 ceballos 1.23 static Double_t PFElectronIsolation2012(const Electron *ele, const Vertex *vertex,
62     const PFCandidateCol *PFCands,
63     const PileupEnergyDensityCol *PileupEnergyDensity,
64     ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaTarget,
65     const ElectronCol *goodElectrons,
66 ceballos 1.25 const MuonCol *goodMuons, Double_t dRMax = 0.4, Bool_t isDebug = kFALSE);
67 ceballos 1.21 static Double_t BetaM(const TrackCol *tracks, const Muon *p, const Vertex *vertex,
68 ceballos 1.8 Double_t ptMin, Double_t delta_z, Double_t extRadius,
69     Double_t intRadius);
70 ceballos 1.9 static Double_t BetaE(const TrackCol *tracks, const Electron *p, const Vertex *vertex,
71 ceballos 1.8 Double_t ptMin, Double_t delta_z, Double_t extRadius,
72     Double_t intRadius);
73 fabstoec 1.10
74     // method added by F.Stoeckli: computes the track isolation with NO constrint on the OV-track compatibility
75     static Double_t TrackIsolationNoPV(const mithep::Particle*, const BaseVertex*,
76     Double_t extRadius,
77     Double_t intRadius,
78     Double_t ptLow,
79     Double_t etaStrip,
80     Double_t maxD0,
81     mithep::TrackQuality::EQuality,
82 bendavid 1.11 const mithep::Collection<mithep::Track> *tracks,
83     UInt_t maxNExpectedHitsInner = 999,
84     const mithep::DecayParticleCol *conversions = 0);
85 fabstoec 1.10
86 ceballos 1.23 // methods for Hgg BaseLien Selection. These isolation are stupid, but what can we do.... ;(
87 fabstoec 1.18 static Double_t CiCTrackIsolation(const mithep::Photon*,
88 fabstoec 1.17 const BaseVertex*,
89     Double_t extRadius,
90     Double_t intRadius,
91     Double_t ptLow,
92     Double_t etaStrip,
93     Double_t maxD0,
94     Double_t maxDZ,
95     const mithep::Collection<mithep::Track> *tracks,
96 fabstoec 1.18 unsigned int* worstVtxIdx = NULL,
97     const mithep::Collection<mithep::Vertex> *vtxs = NULL,
98 fabstoec 1.20 const mithep::Collection<mithep::Electron> *eles = NULL,
99     bool print=false,
100     double* ptmax=NULL,
101     double* dRmax=NULL);
102 fabstoec 1.17
103    
104 loizides 1.5 ClassDef(IsolationTools, 0) // Isolation tools
105 loizides 1.1 };
106     }
107     #endif