1 |
loizides |
1.1 |
//--------------------------------------------------------------------------------------------------
|
2 |
ceballos |
1.9 |
// $Id: IsolationTools.h,v 1.8 2011/02/17 14:09:07 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 |
|
|
#include "MitAna/DataTree/interface/BasicCluster.h"
|
17 |
|
|
#include "MitAna/DataTree/interface/SuperCluster.h"
|
18 |
|
|
#include "MitAna/DataTree/interface/CaloTower.h"
|
19 |
ceballos |
1.6 |
#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 |
ceballos |
1.8 |
#include "MitAna/DataTree/interface/TrackCol.h"
|
24 |
loizides |
1.1 |
|
25 |
|
|
namespace mithep
|
26 |
|
|
{
|
27 |
|
|
class IsolationTools {
|
28 |
|
|
public:
|
29 |
|
|
static Double_t TrackIsolation(const mithep::Track *p, Double_t extRadius,
|
30 |
loizides |
1.2 |
Double_t intRadius, Double_t ptLow, Double_t maxVtxZDist,
|
31 |
phedex |
1.3 |
const mithep::Collection<mithep::Track> *tracks);
|
32 |
loizides |
1.1 |
static Double_t EcalIsolation(const SuperCluster *sc, Double_t coneSize, Double_t etLow,
|
33 |
phedex |
1.3 |
const mithep::Collection<mithep::BasicCluster> *basicClusters);
|
34 |
loizides |
1.1 |
static Double_t CaloTowerHadIsolation(const ThreeVector *p, Double_t extRadius,
|
35 |
|
|
Double_t intRadius, Double_t etLow,
|
36 |
phedex |
1.3 |
const mithep::Collection<mithep::CaloTower>
|
37 |
|
|
*caloTowers);
|
38 |
loizides |
1.1 |
static Double_t CaloTowerEmIsolation(const ThreeVector *p, Double_t extRadius,
|
39 |
|
|
Double_t intRadius, Double_t etLow,
|
40 |
phedex |
1.3 |
const mithep::Collection<mithep::CaloTower> *caloTowers);
|
41 |
ceballos |
1.6 |
static Double_t PFMuonIsolation(const Muon *p, const PFCandidateCol *PFCands,
|
42 |
ceballos |
1.9 |
const Vertex *vertex, Double_t delta_z, Double_t ptMin,
|
43 |
|
|
Double_t extRadius, Double_t intRadius, int isoType,
|
44 |
|
|
Double_t beta, const MuonCol *goodMuons,
|
45 |
|
|
const ElectronCol *goodElectrons);
|
46 |
ceballos |
1.6 |
static Double_t PFElectronIsolation(const Electron *p, const PFCandidateCol *PFCands,
|
47 |
ceballos |
1.9 |
const Vertex *vertex, Double_t delta_z, Double_t ptMin,
|
48 |
|
|
Double_t extRadius, Double_t intRadius, int isoType,
|
49 |
|
|
Double_t beta, const MuonCol *goodMuons,
|
50 |
|
|
const ElectronCol *goodElectrons);
|
51 |
|
|
static Double_t BetaM(const TrackCol *tracks, const Muon *p, const Vertex *vertex,
|
52 |
ceballos |
1.8 |
Double_t ptMin, Double_t delta_z, Double_t extRadius,
|
53 |
|
|
Double_t intRadius);
|
54 |
ceballos |
1.9 |
static Double_t BetaE(const TrackCol *tracks, const Electron *p, const Vertex *vertex,
|
55 |
ceballos |
1.8 |
Double_t ptMin, Double_t delta_z, Double_t extRadius,
|
56 |
|
|
Double_t intRadius);
|
57 |
loizides |
1.5 |
ClassDef(IsolationTools, 0) // Isolation tools
|
58 |
loizides |
1.1 |
};
|
59 |
|
|
}
|
60 |
|
|
#endif
|