CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HeavyChHiggsToTauNuSkim.h
Go to the documentation of this file.
1 #ifndef HeavyChHiggsToTauNuSkim_h
2 #define HeavyChHiggsToTauNuSkim_h
3 
16 // system include files
17 #include <memory>
18 
19 // user include files
22 
27 
28 #include <math.h>
29 
31 
32  public:
35 
36  virtual bool filter(edm::Event&, const edm::EventSetup& );
37 
38  private:
39  double deltaPhi(double phi1, double phi2){
40  const double PI = 3.1415926535;
41  // in ORCA phi = [0,2pi], in TLorentzVector phi = [-pi,pi].
42  // With the conversion below deltaPhi works ok despite the
43  // 2*pi difference in phi definitions.
44  if(phi1 < 0) phi1 += 2*PI;
45  if(phi2 < 0) phi2 += 2*PI;
46 
47  double dphi = fabs(phi1-phi2);
48 
49  if(dphi > PI) dphi = 2*PI - dphi;
50  return dphi;
51  }
52 
53  double deltaR(double eta1, double eta2, double phi1, double phi2){
54  double dphi = deltaPhi(phi1,phi2);
55  double deta = fabs(eta1-eta2);
56  return sqrt(dphi*dphi + deta*deta);
57  }
58 
59  bool debug;
60 
64  double jetEtMin;
65  double jetEtaMin;
66  double jetEtaMax;
67  double minDRFromTau;
68 
70 };
71 #endif
72 
73 
74 
double deltaR(double eta1, double eta2, double phi1, double phi2)
#define PI
double deltaPhi(double phi1, double phi2)
T sqrt(T t)
Definition: SSEVec.h:46
HeavyChHiggsToTauNuSkim(const edm::ParameterSet &)
virtual bool filter(edm::Event &, const edm::EventSetup &)