StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StjTowerEnergyToFourVec.h
1 // -*- mode: c++;-*-
2 // $Id: StjTowerEnergyToFourVec.h,v 1.1 2008/11/27 07:35:33 tai Exp $
3 // Copyright (C) 2008 Tai Sakuma <sakuma@bnl.gov>
4 #ifndef STJTOWERENERGYTOFOURVEC_H
5 #define STJTOWERENERGYTOFOURVEC_H
6 
7 #include <TObject.h>
8 
9 #include "StjFourVecList.h"
10 
11 #include "StjTowerEnergyToTLorentzVector.h"
12 
13 class StjTowerEnergy;
14 
15 class StjTowerEnergyToFourVec : public TObject {
16 public:
17  StjTowerEnergyToFourVec(double mass = 0 /* photon mass as default */)
18  : _towerenergy2tlorentzvector(*(new StjTowerEnergyToTLorentzVector(mass))) { }
19  virtual ~StjTowerEnergyToFourVec() { delete &_towerenergy2tlorentzvector; }
20  StjFourVec operator()(const StjTowerEnergy& towerEnergy);
21 
22 private:
23  StjTowerEnergyToTLorentzVector& _towerenergy2tlorentzvector;
24  ClassDef(StjTowerEnergyToFourVec, 1)
25 
26 };
27 
28 #endif // STJTOWERENERGYTOFOURVEC_H