StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
StJetMaker
misc
StjFourVecForJetFinder.h
1
// -*- mode: c++;-*-
2
// $Id: StjFourVecForJetFinder.h,v 1.4 2008/08/03 00:28:58 tai Exp $
3
#ifndef STJFOURVECFORJETFINDER_H
4
#define STJFOURVECFORJETFINDER_H
5
6
#include "StJetFinder/AbstractFourVec.h"
7
8
#include "StjFourVecList.h"
9
#include "TLorentzVector.h"
10
11
class
StjFourVecForJetFinder
:
public
AbstractFourVec
{
12
13
public
:
14
15
StjFourVecForJetFinder
() { }
16
17
StjFourVecForJetFinder
(
const
StjFourVec
& p)
18
: _fourVec(p)
19
{
20
_vec.SetPtEtaPhiM(p.pt, p.eta, p.phi, p.m);
21
}
22
23
virtual
~
StjFourVecForJetFinder
() { }
24
25
double
pt()
const
{
return
_vec.Pt(); }
26
double
px()
const
{
return
_vec.Px(); }
27
double
py()
const
{
return
_vec.Py(); }
28
double
pz()
const
{
return
_vec.Pz(); }
29
30
double
phi()
const
{
return
_vec.Phi(); }
31
double
eta()
const
{
return
_vec.Eta(); }
32
33
double
eT()
const
{
return
_vec.Et(); }
34
35
double
e()
const
{
return
_vec.E(); }
36
double
mass()
const
{
return
_vec.M(); }
37
38
double
charge()
const
{
return
0; }
39
40
StjFourVec
fourVec()
const
{
return
_fourVec; }
41
42
private
:
43
44
TLorentzVector _vec;
45
StjFourVec
_fourVec;
46
47
};
48
49
#endif // STJFOURVECFORJETFINDER_H
50
StjFourVec
Definition:
StjFourVecList.h:12
StjFourVecForJetFinder
Definition:
StjFourVecForJetFinder.h:11
AbstractFourVec
Definition:
AbstractFourVec.h:15
Generated by
1.8.5