CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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
19 
21 public:
22  //constructors
23  PhotonTkIsolation(float extRadius,
24  float intRadius,
25  float etLow,
26  float lip,
27  float drb,
29  reco::TrackBase::Point beamPoint)
30  : extRadius2_(extRadius * extRadius),
31  intRadiusBarrel2_(intRadius * intRadius),
32  intRadiusEndcap2_(intRadius * intRadius),
33  stripBarrel_(0.0),
34  stripEndcap_(0.0),
35  etLow_(etLow),
36  lip_(lip),
37  drb_(drb),
38  trackCollection_(trackCollection),
39  beamPoint_(beamPoint) {
40  setDzOption("vz");
41  }
42 
43  PhotonTkIsolation(float extRadius,
44  float intRadius,
45  float strip,
46  float etLow,
47  float lip,
48  float drb,
50  reco::TrackBase::Point beamPoint)
51  : extRadius2_(extRadius * extRadius),
52  intRadiusBarrel2_(intRadius * intRadius),
53  intRadiusEndcap2_(intRadius * intRadius),
54  stripBarrel_(strip),
55  stripEndcap_(strip),
56  etLow_(etLow),
57  lip_(lip),
58  drb_(drb),
59  trackCollection_(trackCollection),
60  beamPoint_(beamPoint) {
61  setDzOption("vz");
62  }
63 
64  PhotonTkIsolation(float extRadius,
65  float intRadiusBarrel,
66  float intRadiusEndcap,
67  float stripBarrel,
68  float stripEndcap,
69  float etLow,
70  float lip,
71  float drb,
73  reco::TrackBase::Point beamPoint)
74  : extRadius2_(extRadius * extRadius),
75  intRadiusBarrel2_(intRadiusBarrel * intRadiusBarrel),
76  intRadiusEndcap2_(intRadiusEndcap * intRadiusEndcap),
77  stripBarrel_(stripBarrel),
78  stripEndcap_(stripEndcap),
79  etLow_(etLow),
80  lip_(lip),
81  drb_(drb),
82  trackCollection_(trackCollection),
83  beamPoint_(beamPoint) {
84  setDzOption("vz");
85  }
86 
87  PhotonTkIsolation(float extRadius,
88  float intRadiusBarrel,
89  float intRadiusEndcap,
90  float stripBarrel,
91  float stripEndcap,
92  float etLow,
93  float lip,
94  float drb,
95  const reco::TrackCollection*,
96  reco::TrackBase::Point beamPoint,
97  const std::string&);
98 
99  //destructor
101  //methods
102 
103  std::pair<int, float> getIso(const reco::Candidate*) const;
104 
105  void setDzOption(const std::string& s);
106 
107 private:
108  float extRadius2_;
113  float etLow_;
114  float lip_;
115  float drb_;
116 
119 
121 };
122 
123 #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:14
reco::TrackBase::Point beamPoint_
const reco::TrackCollection * trackCollection_
math::XYZPoint Point
point in the space
Definition: TrackBase.h:80
std::pair< int, float > getIso(const reco::Candidate *) const
tuple trackCollection
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)