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