1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
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 //-----------------------------------------------------------------------------
27 #include "AliMUONTriggerTrack.h"
28 #include "AliMUONTrackReconstructor.h"
29 #include <Riostream.h>
33 ClassImp(AliMUONTriggerTrack)
36 //__________________________________________________________________________
37 AliMUONTriggerTrack::AliMUONTriggerTrack()
45 fHitsPatternInTrigCh(0)
49 AliDebug(1,Form("this=%p",this));
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)
59 fGTPattern(theGTPattern),
60 fHitsPatternInTrigCh(hitsPatternInTrigCh)
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));
68 //__________________________________________________________________________
69 AliMUONTriggerTrack::~AliMUONTriggerTrack()
72 AliDebug(1,Form("this=%p",this));
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)
89 AliDebug(1,Form("this=%p copy ctor",this));
93 //__________________________________________________________________________
94 AliMUONTriggerTrack & AliMUONTriggerTrack::operator=(const AliMUONTriggerTrack&
97 /// Assignment operator
99 // check assignement to self
100 if (this == &theMUONTriggerTrack)
103 /// base class assignement
104 TObject::operator=(theMUONTriggerTrack);
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;
117 //__________________________________________________________________________
119 AliMUONTriggerTrack::Print(Option_t*) const
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;