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 <vector>
14 #include <string>
15 #include <functional>
16 
17 //CMSSW includes
23 
24 
25 
26 
28  public:
29 
30  //constructors
31  PhotonTkIsolation (double extRadius,
32  double intRadius,
33  double etLow,
34  double lip,
35  double drb,
36  const reco::TrackCollection* trackCollection,
37  reco::TrackBase::Point beamPoint) :
38  extRadius_(extRadius),
39  intRadiusBarrel_(intRadius),
40  intRadiusEndcap_(intRadius),
41  stripBarrel_(0.0),
42  stripEndcap_(0.0),
43  etLow_(etLow),
44  lip_(lip),
45  drb_(drb),
46  trackCollection_(trackCollection),
47  beamPoint_(beamPoint) {
48 
49  setDzOption("vz");
50 
51  }
52 
53  PhotonTkIsolation (double extRadius,
54  double intRadius,
55  double strip,
56  double etLow,
57  double lip,
58  double drb,
59  const reco::TrackCollection* trackCollection,
60  reco::TrackBase::Point beamPoint) :
61  extRadius_(extRadius),
62  intRadiusBarrel_(intRadius),
63  intRadiusEndcap_(intRadius),
64  stripBarrel_(strip),
65  stripEndcap_(strip),
66  etLow_(etLow),
67  lip_(lip),
68  drb_(drb),
69  trackCollection_(trackCollection),
70  beamPoint_(beamPoint) {
71 
72  setDzOption("vz");
73 
74  }
75 
76 
77  PhotonTkIsolation (double extRadius,
78  double intRadiusBarrel,
79  double intRadiusEndcap,
80  double stripBarrel,
81  double stripEndcap,
82  double etLow,
83  double lip,
84  double drb,
85  const reco::TrackCollection* trackCollection,
86  reco::TrackBase::Point beamPoint) :
87  extRadius_(extRadius),
88  intRadiusBarrel_(intRadiusBarrel),
89  intRadiusEndcap_(intRadiusEndcap),
90  stripBarrel_(stripBarrel),
91  stripEndcap_(stripEndcap),
92  etLow_(etLow),
93  lip_(lip),
94  drb_(drb),
95  trackCollection_(trackCollection),
96  beamPoint_(beamPoint) {
97 
98  setDzOption("vz");
99 
100  }
101 
102 
103 
104  PhotonTkIsolation (double extRadius,
105  double intRadiusBarrel,
106  double intRadiusEndcap,
107  double stripBarrel,
108  double stripEndcap,
109  double etLow,
110  double lip,
111  double drb,
112  const reco::TrackCollection*,
113  reco::TrackBase::Point beamPoint,
114  const std::string&) ;
115 
116  //destructor
118  //methods
119 
120  int getNumberTracks(const reco::Candidate*) const ;
121  double getPtTracks (const reco::Candidate*) const ;
122 
123  void setDzOption(const std::string &s) {
124  if( ! s.compare("dz") ) dzOption_ = egammaisolation::EgammaTrackSelector::dz;
125  else if( ! s.compare("vz") ) dzOption_ = egammaisolation::EgammaTrackSelector::vz;
126  else if( ! s.compare("bs") ) dzOption_ = egammaisolation::EgammaTrackSelector::bs;
127  else if( ! s.compare("vtx") )dzOption_ = egammaisolation::EgammaTrackSelector::vtx;
129  }
130 
131  private:
132 
133  double extRadius_ ;
136  double stripBarrel_;
137  double stripEndcap_;
138  double etLow_ ;
139  double lip_ ;
140  double drb_;
141 
144 
146 
147  std::pair<int,double>getIso(const reco::Candidate*) const ;
148 
149 };
150 
151 #endif
void setDzOption(const std::string &s)
void strip(std::string &input, const std::string &blanks=" \n\t")
Definition: stringTools.cc:16
std::vector< Track > TrackCollection
collection of Tracks
Definition: TrackFwd.h:10
reco::TrackBase::Point beamPoint_
PhotonTkIsolation(double extRadius, double intRadius, double etLow, double lip, double drb, const reco::TrackCollection *trackCollection, reco::TrackBase::Point beamPoint)
PhotonTkIsolation(double extRadius, double intRadiusBarrel, double intRadiusEndcap, double stripBarrel, double stripEndcap, double etLow, double lip, double drb, const reco::TrackCollection *trackCollection, reco::TrackBase::Point beamPoint)
const reco::TrackCollection * trackCollection_
math::XYZPoint Point
point in the space
Definition: TrackBase.h:76
double getPtTracks(const reco::Candidate *) const
std::pair< int, double > getIso(const reco::Candidate *) const
string s
Definition: asciidump.py:422
PhotonTkIsolation(double extRadius, double intRadius, double strip, double etLow, double lip, double drb, const reco::TrackCollection *trackCollection, reco::TrackBase::Point beamPoint)
int getNumberTracks(const reco::Candidate *) const