test
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 
29 
30 #include <math.h>
31 
33 
34  public:
37 
38  virtual bool filter(edm::Event&, const edm::EventSetup& );
39 
40  private:
41  double deltaPhi(double phi1, double phi2){
42  const double PI = 3.1415926535;
43  // in ORCA phi = [0,2pi], in TLorentzVector phi = [-pi,pi].
44  // With the conversion below deltaPhi works ok despite the
45  // 2*pi difference in phi definitions.
46  if(phi1 < 0) phi1 += 2*PI;
47  if(phi2 < 0) phi2 += 2*PI;
48 
49  double dphi = fabs(phi1-phi2);
50 
51  if(dphi > PI) dphi = 2*PI - dphi;
52  return dphi;
53  }
54 
55  double deltaR(double eta1, double eta2, double phi1, double phi2){
56  double dphi = deltaPhi(phi1,phi2);
57  double deta = fabs(eta1-eta2);
58  return sqrt(dphi*dphi + deta*deta);
59  }
60 
61  bool debug;
62 
66  double jetEtMin;
67  double jetEtaMin;
68  double jetEtaMax;
69  double minDRFromTau;
70 
72 };
73 #endif
74 
75 
76 
double deltaR(double eta1, double eta2, double phi1, double phi2)
#define PI
edm::EDGetTokenT< reco::CaloJetCollection > jetToken
double deltaPhi(double phi1, double phi2)
T sqrt(T t)
Definition: SSEVec.h:18
HeavyChHiggsToTauNuSkim(const edm::ParameterSet &)
edm::EDGetTokenT< reco::IsolatedTauTagInfoCollection > hltTauToken
virtual bool filter(edm::Event &, const edm::EventSetup &)