CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PhotonTkIsolation.h
Go to the documentation of this file.
1 #ifndef PhotonTkIsolation_h
2 #define PhotonTkIsolation_h
3 
4 //*****************************************************************************
5 // File: PhotonTkIsolation.h
6 // ----------------------------------------------------------------------------
7 // OrigAuth: Matthias Mozer
8 // Institute: IIHE-VUB
9 //=============================================================================
10 //*****************************************************************************
11 
12 //C++ includes
13 #include <string>
14 #
15 //CMSSW includes
21 
22 
23 
24 
26  public:
27 
28  //constructors
29  PhotonTkIsolation (float extRadius,
30  float intRadius,
31  float etLow,
32  float lip,
33  float drb,
35  reco::TrackBase::Point beamPoint) :
36  extRadius2_(extRadius*extRadius),
37  intRadiusBarrel2_(intRadius*intRadius),
38  intRadiusEndcap2_(intRadius*intRadius),
39  stripBarrel_(0.0),
40  stripEndcap_(0.0),
41  etLow_(etLow),
42  lip_(lip),
43  drb_(drb),
44  trackCollection_(trackCollection),
45  beamPoint_(beamPoint) {
46 
47  setDzOption("vz");
48 
49  }
50 
51  PhotonTkIsolation (float extRadius,
52  float intRadius,
53  float strip,
54  float etLow,
55  float lip,
56  float drb,
58  reco::TrackBase::Point beamPoint) :
59  extRadius2_(extRadius*extRadius),
60  intRadiusBarrel2_(intRadius*intRadius),
61  intRadiusEndcap2_(intRadius*intRadius),
62  stripBarrel_(strip),
63  stripEndcap_(strip),
64  etLow_(etLow),
65  lip_(lip),
66  drb_(drb),
67  trackCollection_(trackCollection),
68  beamPoint_(beamPoint) {
69 
70  setDzOption("vz");
71 
72  }
73 
74 
75  PhotonTkIsolation (float extRadius,
76  float intRadiusBarrel,
77  float intRadiusEndcap,
78  float stripBarrel,
79  float stripEndcap,
80  float etLow,
81  float lip,
82  float drb,
84  reco::TrackBase::Point beamPoint) :
85  extRadius2_(extRadius*extRadius),
86  intRadiusBarrel2_(intRadiusBarrel*intRadiusBarrel),
87  intRadiusEndcap2_(intRadiusEndcap*intRadiusEndcap),
88  stripBarrel_(stripBarrel),
89  stripEndcap_(stripEndcap),
90  etLow_(etLow),
91  lip_(lip),
92  drb_(drb),
93  trackCollection_(trackCollection),
94  beamPoint_(beamPoint) {
95 
96  setDzOption("vz");
97 
98  }
99 
100 
101 
102  PhotonTkIsolation (float extRadius,
103  float intRadiusBarrel,
104  float intRadiusEndcap,
105  float stripBarrel,
106  float stripEndcap,
107  float etLow,
108  float lip,
109  float drb,
110  const reco::TrackCollection*,
111  reco::TrackBase::Point beamPoint,
112  const std::string&) ;
113 
114  //destructor
116  //methods
117 
118  std::pair<int,float>getIso(const reco::Candidate*) const ;
119 
120 
121  void setDzOption(const std::string &s);
122 private:
123 
124  float extRadius2_ ;
129  float etLow_ ;
130  float lip_ ;
131  float drb_;
132 
135 
137 
138 
139 };
140 
141 #endif
void setDzOption(const std::string &s)
PhotonTkIsolation(float extRadius, float intRadius, float strip, float etLow, float lip, float drb, const reco::TrackCollection *trackCollection, reco::TrackBase::Point beamPoint)
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:13
reco::TrackBase::Point beamPoint_
const reco::TrackCollection * trackCollection_
math::XYZPoint Point
point in the space
Definition: TrackBase.h:83
std::pair< int, float > getIso(const reco::Candidate *) const
PhotonTkIsolation(float extRadius, float intRadiusBarrel, float intRadiusEndcap, float stripBarrel, float stripEndcap, float etLow, float lip, float drb, const reco::TrackCollection *trackCollection, reco::TrackBase::Point beamPoint)
PhotonTkIsolation(float extRadius, float intRadius, float etLow, float lip, float drb, const reco::TrackCollection *trackCollection, reco::TrackBase::Point beamPoint)