]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONTriggerTrack.cxx
Initialize arrays in constructor (Ivana)
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerTrack.cxx
CommitLineData
0b3dd00a 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
30178c30 16/* $Id$*/
0b3dd00a 17
18///////////////////////////////////////////////////
19//
20// Reconstructed Trigger track
21// in
22// ALICE
23// dimuon
24// spectrometer
25// note: equivalent to AliMUONTriggerTrack for tracking,
26// no need for a AliMUONTriggerTrackParam
27///////////////////////////////////////////////////
28
0b3dd00a 29#include "AliMUONTriggerTrack.h"
30178c30 30#include "AliMUONEventReconstructor.h"
0b3dd00a 31
9131b4fe 32
0b3dd00a 33//__________________________________________________________________________
34AliMUONTriggerTrack::AliMUONTriggerTrack()
30178c30 35 : TObject()
0b3dd00a 36{
37 fEventReconstructor = 0;
38 fx11 = 0.;
39 fy11 = 0.;
40 fthetax = 0.;
41 fthetay = 0.;
9131b4fe 42 fGTPattern = 0;
0b3dd00a 43}
44//__________________________________________________________________________
d694b6f6 45AliMUONTriggerTrack::AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t thetax, Float_t thetay, Long_t theGTPattern, AliMUONEventReconstructor* EventReconstructor)
30178c30 46 : TObject()
0b3dd00a 47{
48 fEventReconstructor = EventReconstructor; // link back to EventReconstructor
49 fx11 = x11;
50 fy11 = y11;
51 fthetax = thetax;
52 fthetay = thetay;
d694b6f6 53 fGTPattern = theGTPattern;
9131b4fe 54
0b3dd00a 55}
56
57//__________________________________________________________________________
58AliMUONTriggerTrack::~AliMUONTriggerTrack()
59{
60 // Destructor
61 ;
62
63}
64
65//__________________________________________________________________________
30178c30 66AliMUONTriggerTrack::AliMUONTriggerTrack (const AliMUONTriggerTrack& theMUONTriggerTrack)
67 : TObject(theMUONTriggerTrack)
0b3dd00a 68{
30178c30 69 // fEventReconstructor = new AliMUONEventReconstructor(*MUONTriggerTrack.fEventReconstructor);
70 fEventReconstructor = theMUONTriggerTrack.fEventReconstructor;
71 fx11 = theMUONTriggerTrack.fx11;
72 fy11 = theMUONTriggerTrack.fy11;
73 fthetax = theMUONTriggerTrack.fthetax;
74 fthetay = theMUONTriggerTrack.fthetay;
75 fGTPattern = theMUONTriggerTrack.fGTPattern;
0b3dd00a 76}
77
78//__________________________________________________________________________
79AliMUONTriggerTrack & AliMUONTriggerTrack::operator=(const AliMUONTriggerTrack&
30178c30 80theMUONTriggerTrack)
0b3dd00a 81{
30178c30 82 // check assignement to self
83 if (this == &theMUONTriggerTrack)
0b3dd00a 84 return *this;
85
30178c30 86 // base class assignement
87 TObject::operator=(theMUONTriggerTrack);
88
89 //fEventReconstructor = new AliMUONEventReconstructor(*theMUONTriggerTrack.fEventReconstructor);
90 fEventReconstructor = theMUONTriggerTrack.fEventReconstructor;
91 fx11 = theMUONTriggerTrack.fx11;
92 fy11 = theMUONTriggerTrack.fy11;
93 fthetax = theMUONTriggerTrack.fthetax;
94 fthetay = theMUONTriggerTrack.fthetay;
95 fGTPattern = theMUONTriggerTrack.fGTPattern;
9131b4fe 96
0b3dd00a 97 return *this;
98}