]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONTriggerTrack.cxx
No more misaligned_geometry
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerTrack.cxx
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 /* $Id$*/
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
29 #include "AliMUONTriggerTrack.h"
30 #include "AliMUONTrackReconstructor.h" 
31 #include <Riostream.h>
32 #include "AliLog.h"
33
34 //__________________________________________________________________________
35 AliMUONTriggerTrack::AliMUONTriggerTrack()
36   : TObject(),
37     fx11(0),
38     fy11(0),
39     fthetax(0),
40     fthetay(0),
41     floTrgNum(0),
42     fGTPattern(0)
43
44 {
45   /// default ctr
46       AliDebug(1,Form("this=%p",this));
47 }
48 //__________________________________________________________________________
49 AliMUONTriggerTrack::AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t thetax, Float_t thetay, Int_t loTrgNum, Long_t theGTPattern)
50     : TObject(),
51       fx11(x11),
52       fy11(y11),
53       fthetax(thetax),
54       fthetay(thetay),
55       floTrgNum(loTrgNum),
56       fGTPattern(theGTPattern)
57 {
58 /// ctor from local trigger output
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
62 }
63
64 //__________________________________________________________________________
65 AliMUONTriggerTrack::~AliMUONTriggerTrack()
66 {
67   /// Destructor
68   AliDebug(1,Form("this=%p",this));
69 }
70
71 //__________________________________________________________________________
72 AliMUONTriggerTrack::AliMUONTriggerTrack (const AliMUONTriggerTrack& theMUONTriggerTrack)
73     : TObject(theMUONTriggerTrack),
74       fx11(theMUONTriggerTrack.fx11),
75       fy11(theMUONTriggerTrack.fy11),
76       fthetax(theMUONTriggerTrack.fthetax),
77       fthetay(theMUONTriggerTrack.fthetay),
78       floTrgNum(theMUONTriggerTrack.floTrgNum),
79       fGTPattern(theMUONTriggerTrack.fGTPattern)    
80 {
81 ///
82 /// copy ctor
83 ///
84         AliDebug(1,Form("this=%p copy ctor",this));
85
86 }
87       
88 //__________________________________________________________________________
89 AliMUONTriggerTrack & AliMUONTriggerTrack::operator=(const AliMUONTriggerTrack&
90 theMUONTriggerTrack)
91 {
92 /// Assignment operator
93
94     // check assignement to self
95     if (this == &theMUONTriggerTrack)
96         return *this;
97     
98     /// base class assignement
99     TObject::operator=(theMUONTriggerTrack);
100
101     fx11 = theMUONTriggerTrack.fx11;
102     fy11 = theMUONTriggerTrack.fy11;
103     fthetax = theMUONTriggerTrack.fthetax;
104     fthetay = theMUONTriggerTrack.fthetay;
105     floTrgNum = theMUONTriggerTrack.floTrgNum;
106     fGTPattern = theMUONTriggerTrack.fGTPattern;
107
108     return *this;
109 }
110
111 //__________________________________________________________________________
112 void
113 AliMUONTriggerTrack::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 }