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