Fixes for bug #52499: Field polarities inconsistiency
[u/mrichter/AliRoot.git] / STEER / AliAODDiJet.cxx
CommitLineData
5769fc2c 1/**************************************************************************
2 * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15
16/* $Id$ */
17
18//-------------------------------------------------------------------------
19// AOD class for di-jets
20// The present version is for test purposes only
21// Author: Andreas Morsch, CERN
22//-------------------------------------------------------------------------
23
24#include <TLorentzVector.h>
03c4a89d 25#include <TProcessID.h>
5769fc2c 26#include "AliAODDiJet.h"
03c4a89d 27#include "AliAODJet.h"
5769fc2c 28
29ClassImp(AliAODDiJet)
30
31
32//______________________________________________________________________________
33AliAODDiJet::AliAODDiJet() :
34 AliAODJet(),
35 fJetR(0),
36 fJet1(0),
37 fJet2(0)
38{
39 // constructor
40}
41
42AliAODDiJet::AliAODDiJet(Double_t px, Double_t py, Double_t pz, Double_t e):
43 AliAODJet(px, py, pz, e),
03c4a89d 44 fJetR(0),
5769fc2c 45 fJet1(0),
46 fJet2(0)
47{
48 // another constructor
49}
50
51AliAODDiJet::AliAODDiJet(TLorentzVector & p):
52 AliAODJet(p),
03c4a89d 53 fJetR(0),
5769fc2c 54 fJet1(0),
55 fJet2(0)
56{
57 // constructor
58}
59
60
61//______________________________________________________________________________
62AliAODDiJet::~AliAODDiJet()
63{
64 // destructor
65}
03c4a89d 66
67void AliAODDiJet::SetJetRefs(AliAODJet* jet1, AliAODJet* jet2)
68{
69// Set references to the two jets
70 fJetR = new TRefArray(TProcessID::GetProcessWithUID( jet1 ));
71 fJetR->Add(jet1);
72 fJetR->Add(jet2);
73 fJet1 = jet1;
74 fJet2 = jet2;
75}
76