CMS 3D CMS Logo

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 
23 public:
24  //constructors
26  float intRadius,
27  float etLow,
28  float lip,
29  float drb,
31  reco::TrackBase::Point beamPoint)
32  : extRadius2_(extRadius * extRadius),
33  intRadiusBarrel2_(intRadius * intRadius),
34  intRadiusEndcap2_(intRadius * intRadius),
35  stripBarrel_(0.0),
36  stripEndcap_(0.0),
37  etLow_(etLow),
38  lip_(lip),
39  drb_(drb),
40  trackCollection_(trackCollection),
41  beamPoint_(beamPoint) {
42  setDzOption("vz");
43  }
44 
46  float intRadius,
47  float strip,
48  float etLow,
49  float lip,
50  float drb,
52  reco::TrackBase::Point beamPoint)
53  : extRadius2_(extRadius * extRadius),
54  intRadiusBarrel2_(intRadius * intRadius),
55  intRadiusEndcap2_(intRadius * intRadius),
56  stripBarrel_(strip),
57  stripEndcap_(strip),
58  etLow_(etLow),
59  lip_(lip),
60  drb_(drb),
61  trackCollection_(trackCollection),
62  beamPoint_(beamPoint) {
63  setDzOption("vz");
64  }
65 
67  float intRadiusBarrel,
68  float intRadiusEndcap,
69  float stripBarrel,
70  float stripEndcap,
71  float etLow,
72  float lip,
73  float drb,
75  reco::TrackBase::Point beamPoint)
76  : extRadius2_(extRadius * extRadius),
77  intRadiusBarrel2_(intRadiusBarrel * intRadiusBarrel),
78  intRadiusEndcap2_(intRadiusEndcap * intRadiusEndcap),
79  stripBarrel_(stripBarrel),
80  stripEndcap_(stripEndcap),
81  etLow_(etLow),
82  lip_(lip),
83  drb_(drb),
84  trackCollection_(trackCollection),
85  beamPoint_(beamPoint) {
86  setDzOption("vz");
87  }
88 
90  float intRadiusBarrel,
91  float intRadiusEndcap,
92  float stripBarrel,
93  float stripEndcap,
94  float etLow,
95  float lip,
96  float drb,
97  const reco::TrackCollection*,
98  reco::TrackBase::Point beamPoint,
99  const std::string&);
100 
101  //destructor
103  //methods
104 
105  std::pair<int, float> getIso(const reco::Candidate*) const;
106 
107  void setDzOption(const std::string& s);
108 
109 private:
110  float extRadius2_;
115  float etLow_;
116  float lip_;
117  float drb_;
118 
121 
123 };
124 
125 #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
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)