Rev | Line | |
---|
[2] | 1 | #ifndef _PHYSICS_TOWER_HH_
|
---|
| 2 | #define _PHYSICS_TOWER_HH_
|
---|
| 3 |
|
---|
| 4 | #include "LorentzVector.hh"
|
---|
| 5 | #include "CalTower.hh"
|
---|
| 6 |
|
---|
| 7 | class 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.