]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSTracklPairs.h
Extend q_ij range for pp and pPb
[u/mrichter/AliRoot.git] / ITS / AliITSTracklPairs.h
CommitLineData
108cb8b9 1#ifndef ALIITSTRACKLPAIRS_H
2#define ALIITSTRACKLPAIRS_H
3
4#include<TObject.h>
5/* Copyright(c) 2009-2010, ALICE Experiment at CERN, All rights reserved. *
6 * See cxx source for full Copyright notice */
7
8/* $Id$ */
9
10////////////////////////////////////////////////////////////////
11// Helper class for 3D primary vertexing //
12// Used by AliITSSortTrkl //
13// Origin M.Masera (masera@to.infn.it) //
14////////////////////////////////////////////////////////////////
15
16class AliITSTracklPairs : public TObject {
17
18 public:
19
20 AliITSTracklPairs();
21 AliITSTracklPairs(Int_t t1, Int_t t2, Double_t dca, Double_t *coo);
22 virtual ~AliITSTracklPairs();
23 Int_t GetTrack1() const {return fTrack1;}
24 Int_t GetTrack2() const {return fTrack2;}
25 Double_t GetDCA() const {return fDCA;}
26 void GetCrossCoord(Double_t *cr) const {for(int i=0;i<3;i++)cr[i]=fCross[i];}
27 Double_t GetDistance(const AliITSTracklPairs& pair) const;
28 Bool_t HasTrack(Int_t tr) const {return ((tr == fTrack1) || (tr == fTrack2));}
29
30 protected:
31 Int_t fTrack1; // first tracklet index
32 Int_t fTrack2; // second tracklet index
33 Double_t fDCA; // DCA
34 Double_t fCross[3]; // intersection coordinates
35
36 ClassDef(AliITSTracklPairs,1);
37};
38
39#endif