reco update
[u/mrichter/AliRoot.git] / ITS / UPGRADE / AliITSUSeed.cxx
CommitLineData
f8832015 1#include <TString.h>
32d38de2 2#include <TMath.h>
3#include "AliITSUSeed.h"
32d38de2 4using namespace TMath;
5
6ClassImp(AliITSUSeed)
7
8//_________________________________________________________________________
9AliITSUSeed::AliITSUSeed()
f8832015 10: fHitsPattern(0)
11 ,fClID(0)
12 ,fChi2Glo(0)
13 ,fChi2Cl(0)
c61e50c3 14 ,fParent(0)
32d38de2 15{
16 // def c-tor
17}
18
19//_________________________________________________________________________
20AliITSUSeed::~AliITSUSeed()
21{
22 // d-rot
23}
24
25//_________________________________________________________________________
26AliITSUSeed::AliITSUSeed(const AliITSUSeed& src)
c61e50c3 27 :AliExternalTrackParam(src)
f8832015 28 ,fHitsPattern(src.fHitsPattern)
c61e50c3 29 ,fClID(src.fClID)
f8832015 30 ,fChi2Glo(src.fChi2Glo)
31 ,fChi2Cl(src.fChi2Cl)
c61e50c3 32 ,fParent(src.fParent)
32d38de2 33{
34 // def c-tor
35}
36
37//_________________________________________________________________________
38AliITSUSeed &AliITSUSeed::operator=(const AliITSUSeed& src)
39{
40 // def c-tor
41 if (this == &src) return *this;
f8832015 42 fClID = src.fClID;
43 fHitsPattern = src.fHitsPattern;
44 fChi2Glo = src.fChi2Glo;
45 fChi2Cl = src.fChi2Cl;
46 fParent = src.fParent;
32d38de2 47 AliExternalTrackParam::operator=(src);
48 return *this;
49}
f8832015 50
51//_________________________________________________________________________
52void AliITSUSeed::Print(Option_t* opt) const
53{
54 // print seed info
55 int lr,cl = GetLrCluster(lr);
56 printf("Lr%d Cl:%4d Chi2Glo:%6.3f Chi2Cl:",lr,cl,GetChi2Glo());
57 cl<0 ? printf(" NA ") : printf("%6.3f",GetChi2Cl());
58 printf(" |");
0091e9f0 59 for (int i=0;i<=12;i++) printf("%c",HasClusterOnLayer(i) ? '+':'-'); printf("|\n");
f8832015 60 TString opts = opt; opts.ToLower();
61 if (opts.Contains("etp")) AliExternalTrackParam::Print();
62 if (opts.Contains("parent") && GetParent()) GetParent()->Print(opt);
63}