Keep e+e- from pair production of primary gammas.
[u/mrichter/AliRoot.git] / PWG3 / muon / AliAODMuonPair.cxx
CommitLineData
4292b3b6 1#include "AliAODMuonTrack.h"
2#include "AliAODMuonPair.h"
3
4ClassImp(AliAODMuonPair)
5
6//-----------------------------------------------------------------------------
7AliAODMuonPair::AliAODMuonPair() :
8TObject(),
9fP(),
10fCharge(0)
11{
12 //
13 // default constructor
14 //
15 for (Int_t i=0; i<2; i++) {
16 fTrk[i] = 0;
17 fTrigger[i] = 0;
18 fDca[i] = 0.;
19 fChi2[i] = 0.;
20 }
21}
22
23//-----------------------------------------------------------------------------
24AliAODMuonPair::AliAODMuonPair(AliAODMuonTrack *trk0, AliAODMuonTrack *trk1) :
25TObject(),
26fP(),
27fCharge(0)
28{
29 //
30 // default constructor
31 //
32 for (Int_t i=0; i<2; i++) {
33 fTrigger[i]=0; fDca[i]=0.; fChi2[i]=0.;
34 }
35
36 fTrk[0] = trk0;
37 fTrk[1] = trk1;
38 FillPairInfo();
39}
40
41//-----------------------------------------------------------------------------
42AliAODMuonPair::~AliAODMuonPair()
43{
44 //
45 // destructor
46 //
47}
48
49//-----------------------------------------------------------------------------
50void AliAODMuonPair::FillPairInfo()
51{
52 AliAODMuonTrack *trk0 = (AliAODMuonTrack*)fTrk[0].GetObject();
53 AliAODMuonTrack *trk1 = (AliAODMuonTrack*)fTrk[1].GetObject();
54
55 fP = trk0->GetP() + trk1->GetP();
56 fCharge = trk0->GetCharge() + trk1->GetCharge();
57
58 fTrigger[0] = trk0->GetTrigger();
59 fTrigger[1] = trk1->GetTrigger();
60
61 fDca[0] = trk0->GetDCA();
62 fDca[1] = trk1->GetDCA();
63
64 fChi2[0] = trk0->GetChi2();
65 fChi2[1] = trk1->GetChi2();
66
67 return;
68}