- Adding comment lines to class description needed for Root documentation
[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"
29f1b13a 30#include "AliMUONTrackReconstructor.h"
e5e7be4b 31#include <Riostream.h>
32#include "AliLog.h"
0b3dd00a 33
34//__________________________________________________________________________
35AliMUONTriggerTrack::AliMUONTriggerTrack()
7fe0032c 36 : TObject(),
37 fx11(0),
38 fy11(0),
39 fthetax(0),
40 fthetay(0),
c6ba19f7 41 floTrgNum(0),
7fe0032c 42 fGTPattern(0)
43
0b3dd00a 44{
7945aae7 45 /// default ctr
e5e7be4b 46 AliDebug(1,Form("this=%p",this));
0b3dd00a 47}
48//__________________________________________________________________________
c6ba19f7 49AliMUONTriggerTrack::AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t thetax, Float_t thetay, Int_t loTrgNum, Long_t theGTPattern)
1657f946 50 : TObject(),
51 fx11(x11),
52 fy11(y11),
53 fthetax(thetax),
54 fthetay(thetay),
c6ba19f7 55 floTrgNum(loTrgNum),
1657f946 56 fGTPattern(theGTPattern)
0b3dd00a 57{
7945aae7 58/// ctor from local trigger output
e5e7be4b 59 AliDebug(1,Form("this=%p x11=%f y11=%f thetax=%f thetay=%f loTrgNum=%d GTPattern=%ld",
60 this,x11,y11,thetax,thetay,loTrgNum,theGTPattern));
61
0b3dd00a 62}
63
64//__________________________________________________________________________
65AliMUONTriggerTrack::~AliMUONTriggerTrack()
66{
7945aae7 67 /// Destructor
e5e7be4b 68 AliDebug(1,Form("this=%p",this));
0b3dd00a 69}
70
71//__________________________________________________________________________
30178c30 72AliMUONTriggerTrack::AliMUONTriggerTrack (const AliMUONTriggerTrack& theMUONTriggerTrack)
1657f946 73 : TObject(theMUONTriggerTrack),
74 fx11(theMUONTriggerTrack.fx11),
75 fy11(theMUONTriggerTrack.fy11),
76 fthetax(theMUONTriggerTrack.fthetax),
77 fthetay(theMUONTriggerTrack.fthetay),
c6ba19f7 78 floTrgNum(theMUONTriggerTrack.floTrgNum),
1657f946 79 fGTPattern(theMUONTriggerTrack.fGTPattern)
0b3dd00a 80{
7945aae7 81///
82/// copy ctor
83///
e5e7be4b 84 AliDebug(1,Form("this=%p copy ctor",this));
85
0b3dd00a 86}
87
88//__________________________________________________________________________
89AliMUONTriggerTrack & AliMUONTriggerTrack::operator=(const AliMUONTriggerTrack&
30178c30 90theMUONTriggerTrack)
0b3dd00a 91{
7945aae7 92/// Assignment operator
93
30178c30 94 // check assignement to self
95 if (this == &theMUONTriggerTrack)
0b3dd00a 96 return *this;
97
7945aae7 98 /// base class assignement
30178c30 99 TObject::operator=(theMUONTriggerTrack);
100
30178c30 101 fx11 = theMUONTriggerTrack.fx11;
102 fy11 = theMUONTriggerTrack.fy11;
103 fthetax = theMUONTriggerTrack.fthetax;
104 fthetay = theMUONTriggerTrack.fthetay;
c6ba19f7 105 floTrgNum = theMUONTriggerTrack.floTrgNum;
30178c30 106 fGTPattern = theMUONTriggerTrack.fGTPattern;
9131b4fe 107
0b3dd00a 108 return *this;
109}
c6ba19f7 110
e5e7be4b 111//__________________________________________________________________________
112void
113AliMUONTriggerTrack::Print(Option_t*) const
114{
115/// Printing
116
117 cout << Form("(X,Y)11=(%7.2f,%7.2f) Theta(X,Y)=(%7.2f,%7.2f) LocalBoard #%3d GlobalTriggerPattern %x",
118 fx11,fy11,fthetax,fthetay,floTrgNum,fGTPattern) << endl;
119}