Fork me on GitHub

source: svn/trunk/Utilities/Fastjet/plugins/CDFCones/interface/PhysicsTower.hh@ 180

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

first attemp towers CMS

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