]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONTriggerTrack.cxx
some histos added for TPC clusters
[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 // Class AliMUONTriggerTrack
20 //---------------------------
21 // Reconstructed Trigger track in ALICE dimuon spectrometer
22 // Note: equivalent to AliMUONTriggerTrack for tracking,
23 // No need for a AliMUONTriggerTrackParam
24 // Author: Philippe Crochet
25 //-----------------------------------------------------------------------------
26
27 #include "AliMUONTriggerTrack.h"
28 #include "AliMUONTrackReconstructor.h" 
29 #include <Riostream.h>
30 #include "AliLog.h"
31
32 /// \cond CLASSIMP
33 ClassImp(AliMUONTriggerTrack)
34 /// \endcond
35
36 //__________________________________________________________________________
37 AliMUONTriggerTrack::AliMUONTriggerTrack()
38   : TObject(),
39     fx11(0),
40     fy11(0),
41     fthetax(0),
42     fthetay(0),
43     floTrgNum(0),
44     fGTPattern(0),
45     fHitsPatternInTrigCh(0)
46
47 {
48   /// default ctr
49       AliDebug(1,Form("this=%p",this));
50 }
51 //__________________________________________________________________________
52 AliMUONTriggerTrack::AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t thetax, Float_t thetay, Int_t loTrgNum, Long_t theGTPattern, UShort_t hitsPatternInTrigCh)
53     : TObject(),
54       fx11(x11),
55       fy11(y11),
56       fthetax(thetax),
57       fthetay(thetay),
58       floTrgNum(loTrgNum),
59       fGTPattern(theGTPattern),
60       fHitsPatternInTrigCh(hitsPatternInTrigCh)
61 {
62 /// ctor from local trigger output
63         AliDebug(1,Form("this=%p x11=%f y11=%f thetax=%f thetay=%f loTrgNum=%d GTPattern=%ld HitsPatternInTrigCh %i",
64                         this,x11,y11,thetax,thetay,loTrgNum,theGTPattern,fHitsPatternInTrigCh));
65
66 }
67
68 //__________________________________________________________________________
69 AliMUONTriggerTrack::~AliMUONTriggerTrack()
70 {
71   /// Destructor
72   AliDebug(1,Form("this=%p",this));
73 }
74
75 //__________________________________________________________________________
76 AliMUONTriggerTrack::AliMUONTriggerTrack (const AliMUONTriggerTrack& theMUONTriggerTrack)
77     : TObject(theMUONTriggerTrack),
78       fx11(theMUONTriggerTrack.fx11),
79       fy11(theMUONTriggerTrack.fy11),
80       fthetax(theMUONTriggerTrack.fthetax),
81       fthetay(theMUONTriggerTrack.fthetay),
82       floTrgNum(theMUONTriggerTrack.floTrgNum),
83       fGTPattern(theMUONTriggerTrack.fGTPattern),
84       fHitsPatternInTrigCh(theMUONTriggerTrack.fHitsPatternInTrigCh)  
85 {
86 ///
87 /// copy ctor
88 ///
89         AliDebug(1,Form("this=%p copy ctor",this));
90
91 }
92       
93 //__________________________________________________________________________
94 AliMUONTriggerTrack & AliMUONTriggerTrack::operator=(const AliMUONTriggerTrack&
95 theMUONTriggerTrack)
96 {
97 /// Assignment operator
98
99     // check assignement to self
100     if (this == &theMUONTriggerTrack)
101         return *this;
102     
103     /// base class assignement
104     TObject::operator=(theMUONTriggerTrack);
105
106     fx11 = theMUONTriggerTrack.fx11;
107     fy11 = theMUONTriggerTrack.fy11;
108     fthetax = theMUONTriggerTrack.fthetax;
109     fthetay = theMUONTriggerTrack.fthetay;
110     floTrgNum = theMUONTriggerTrack.floTrgNum;
111     fGTPattern = theMUONTriggerTrack.fGTPattern;
112     fHitsPatternInTrigCh = theMUONTriggerTrack.fHitsPatternInTrigCh;
113
114     return *this;
115 }
116
117 //__________________________________________________________________________
118 void
119 AliMUONTriggerTrack::Print(Option_t*) const
120 {
121 /// Printing
122
123   cout << Form("(X,Y)11=(%7.2f,%7.2f) Theta(X,Y)=(%7.2f,%7.2f) LocalBoard #%3d GlobalTriggerPattern %x HitsPatternInTrigCh %x",
124                fx11,fy11,fthetax,fthetay,floTrgNum,fGTPattern,fHitsPatternInTrigCh) << endl;
125 }