3 #include "StjTowerEnergyToTLorentzVector.h"
5 #include "StjTowerEnergyList.h"
11 TVector3 towerLocation;
12 towerLocation.SetPtEtaPhi(deposit.towerR, deposit.towerEta, deposit.towerPhi);
13 TVector3
vertex(deposit.vertexX, deposit.vertexY, deposit.vertexZ);
15 TVector3 momentum = towerLocation -
vertex;
17 double pMag = (deposit.energy > _mass) ? sqrt(deposit.energy*deposit.energy - _mass*_mass) : deposit.energy;
19 momentum.SetMag(pMag);
20 TLorentzVector ret(momentum.x(), momentum.y(), momentum.z(), deposit.energy);