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
StJetFinder
StProtoJetPair.h
1
//StProtoJetPair.h
2
//M.L. Miller (Yale Software)
3
//4/02
4
5
#ifndef StProtoJetPair_HH
6
#define StProtoJetPair_HH
7
8
#include "StProtoJet.h"
9
10
double
deltaphi(
double
p1,
double
p2);
11
21
class
StProtoJetPair
22
{
23
public
:
24
25
StProtoJetPair
(
const
StProtoJet
& j1,
const
StProtoJet
& j2,
double
r);
26
virtual
~
StProtoJetPair
() {};
27
28
//access
29
double
d()
const
;
30
31
const
StProtoJet
& jet1() {
return
mJet1;}
32
const
StProtoJet
& jet2() {
return
mJet2;}
33
34
private
:
35
//StProtoJetPair() {}; //not implemented
36
const
StProtoJet
& mJet1;
37
const
StProtoJet
& mJet2;
38
double
mR;
39
};
40
41
inline
double
StProtoJetPair::d()
const
42
{
43
double
deta = mJet1.eta()-mJet2.eta();
44
double
dphi = deltaphi(mJet1.phi(), mJet2.phi());
45
double
d1 = mJet1.
d
();
46
double
d2 = mJet2.
d
();
47
double
d = (d1<d2) ? d1 : d2;
48
49
return
d*(deta*deta + dphi*dphi)/ (mR*mR);
50
}
51
52
#endif
53
StProtoJetPair
Definition:
StProtoJetPair.h:21
StProtoJet::d
double d() const
The d=et^2 of the protojet.
Definition:
StProtoJet.h:35
StProtoJet
Definition:
StProtoJet.h:20
Generated by
1.8.5