Change AliTRDdataArrayI to AliTRDdataArray in MakeBranch()
[u/mrichter/AliRoot.git] / TRD / AliTRDcluster.cxx
CommitLineData
46d29e70 1/**************************************************************************
2 * Copyright(c) 1998-1999, 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/*
17$Log$
18Revision 1.1.2.1 2000/09/22 14:47:52 cblume
19Add the tracking code
20
21*/
22
23#include "AliTRDcluster.h"
24#include "AliTRDgeometry.h"
25#include "AliTRDrecPoint.h"
26
27
28ClassImp(AliTRDcluster)
29
30//_____________________________________________________________________________
31AliTRDcluster::AliTRDcluster() {
32 //default constructor
33
34 fDetector = fTimeBin = 0;
35 fTracks[0]=fTracks[1]=fTracks[2]=0;
36 fY=fZ=fQ=fSigmaY2=fSigmaZ2=0.;
37}
38
39//_____________________________________________________________________________
40AliTRDcluster::AliTRDcluster(AliTRDrecPoint *rp)
41{
42 //
43 // constructor from AliTRDrecPoint
44 //
45
46 fDetector = rp->GetDetector();
47 fTimeBin = rp->GetLocalTimeBin();
48
49 fTracks[0] = rp->GetTrackIndex(0);
50 fTracks[1] = rp->GetTrackIndex(1);
51 fTracks[2] = rp->GetTrackIndex(2);
52
53 fQ = rp->GetEnergy();
54
55 fY = rp->GetY();
56 fZ = rp->GetZ();
57 fSigmaY2 = rp->GetSigmaY2();
58 fSigmaZ2 = rp->GetSigmaZ2();
59
60 fSigmaY2 = 1;
61 fSigmaZ2 = 5;
62
63}
64