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.cxx
1
#ifdef WIN32
2
#include "stdafx.h"
3
#endif
4
5
//StProtoJetPair.cxx
6
//M.L. Miller (Yale Software)
7
//4/02
8
9
//std
10
#include <iostream>
11
#include <algorithm>
12
#include <utility>
13
14
//JetFinder
15
#include "StProtoJet.h"
16
#include "StProtoJetPair.h"
17
18
double
deltaphi(
double
p1,
double
p2)
19
{
20
float
dp = p1 - p2;
21
while
(dp > M_PI) {dp -= 2.0 * M_PI;}
22
while
(dp < -1.*M_PI) {dp += 2.0 * M_PI;}
23
return
dp;
24
};
25
26
27
StProtoJetPair::StProtoJetPair(
const
StProtoJet
& j1,
const
StProtoJet
& j2,
double
r)
28
: mJet1(j1), mJet2(j2), mR(r)
29
{
30
}
31
StProtoJet
Definition:
StProtoJet.h:20
Generated by
1.8.5