Fork me on GitHub

source: svn/trunk/Utilities/CDFCones/interface/PhysicsTower.h@ 12

Last change on this file since 12 was 2, checked in by Xavier Rouby, 16 years ago

first commit

File size: 1.0 KB
Line 
1#ifndef _PHYSICS_TOWER_HH_
2#define _PHYSICS_TOWER_HH_
3
4#include "Utilities/CDFCones/interface/LorentzVector.h"
5#include "Utilities/CDFCones/interface/CalTower.h"
6
7class PhysicsTower
8{
9 public:
10
11 LorentzVector fourVector;
12 CalTower calTower;
13
14 PhysicsTower(): fourVector(LorentzVector()), calTower(CalTower()) {}
15 PhysicsTower(LorentzVector v, CalTower c): fourVector(v), calTower(c) {}
16 PhysicsTower(const PhysicsTower& p): fourVector(p.fourVector), calTower(p.calTower) {}
17 PhysicsTower(CalTower c):
18 fourVector(LorentzVector(c.Et*cos(c.phi),c.Et*sin(c.phi),c.Et*sinh(c.eta),c.Et*cosh(c.eta))), calTower(c) {}
19 PhysicsTower(LorentzVector v): fourVector(v), calTower(CalTower(v.Et(),v.eta(),v.phi())) {}
20 double Et() const {return calTower.Et;}
21 double eta() const {return calTower.eta;}
22 double phi() const {return calTower.phi;}
23 int iEta() const {return calTower.iEta;}
24 int iPhi() const {return calTower.iPhi;}
25 bool isEqual(PhysicsTower p)
26 {
27 return fourVector.isEqual(p.fourVector) && calTower.isEqual(p.calTower);
28 }
29};
30
31#endif
Note: See TracBrowser for help on using the repository browser.