1 |
//--------------------------------------------------------------------------------------------------
|
2 |
// $Id: IsolationTools.h,v 1.6 2011/02/05 05:48:13 ceballos Exp $
|
3 |
//
|
4 |
// IsolationTools
|
5 |
//
|
6 |
// Isolation functions to compute various kinds of isolation.
|
7 |
//
|
8 |
// Authors: S.Xie
|
9 |
//--------------------------------------------------------------------------------------------------
|
10 |
|
11 |
#ifndef MITPHYSICS_UTILS_ISOLATIONTOOLS_H
|
12 |
#define MITPHYSICS_UTILS_ISOLATIONTOOLS_H
|
13 |
|
14 |
#include <TMath.h>
|
15 |
#include "MitAna/DataTree/interface/Track.h"
|
16 |
#include "MitAna/DataTree/interface/BasicCluster.h"
|
17 |
#include "MitAna/DataTree/interface/SuperCluster.h"
|
18 |
#include "MitAna/DataTree/interface/CaloTower.h"
|
19 |
#include "MitAna/DataTree/interface/VertexCol.h"
|
20 |
#include "MitAna/DataTree/interface/MuonCol.h"
|
21 |
#include "MitAna/DataTree/interface/ElectronCol.h"
|
22 |
#include "MitAna/DataTree/interface/PFCandidateCol.h"
|
23 |
|
24 |
namespace mithep
|
25 |
{
|
26 |
class IsolationTools {
|
27 |
public:
|
28 |
static Double_t TrackIsolation(const mithep::Track *p, Double_t extRadius,
|
29 |
Double_t intRadius, Double_t ptLow, Double_t maxVtxZDist,
|
30 |
const mithep::Collection<mithep::Track> *tracks);
|
31 |
static Double_t EcalIsolation(const SuperCluster *sc, Double_t coneSize, Double_t etLow,
|
32 |
const mithep::Collection<mithep::BasicCluster> *basicClusters);
|
33 |
static Double_t CaloTowerHadIsolation(const ThreeVector *p, Double_t extRadius,
|
34 |
Double_t intRadius, Double_t etLow,
|
35 |
const mithep::Collection<mithep::CaloTower>
|
36 |
*caloTowers);
|
37 |
static Double_t CaloTowerEmIsolation(const ThreeVector *p, Double_t extRadius,
|
38 |
Double_t intRadius, Double_t etLow,
|
39 |
const mithep::Collection<mithep::CaloTower> *caloTowers);
|
40 |
static Double_t PFMuonIsolation(const Muon *p, const PFCandidateCol *PFCands,
|
41 |
const VertexCol *vertices, Double_t delta_z, double ptMin,
|
42 |
Double_t extRadius, Double_t intRadius, int isoType);
|
43 |
static Double_t PFElectronIsolation(const Electron *p, const PFCandidateCol *PFCands,
|
44 |
const VertexCol *vertices, Double_t delta_z, double ptMin,
|
45 |
Double_t extRadius, Double_t intRadius, int isoType);
|
46 |
ClassDef(IsolationTools, 0) // Isolation tools
|
47 |
};
|
48 |
}
|
49 |
#endif
|