Remove loading of PWG4 libs (not needed anymore)
[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
ee8a8d65 16// $Id$
0b3dd00a 17
ee8a8d65 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//-----------------------------------------------------------------------------
0b3dd00a 26
0b3dd00a 27#include "AliMUONTriggerTrack.h"
29f1b13a 28#include "AliMUONTrackReconstructor.h"
e5e7be4b 29#include <Riostream.h>
30#include "AliLog.h"
0b3dd00a 31
ee8a8d65 32/// \cond CLASSIMP
33ClassImp(AliMUONTriggerTrack)
34/// \endcond
35
0b3dd00a 36//__________________________________________________________________________
37AliMUONTriggerTrack::AliMUONTriggerTrack()
7fe0032c 38 : TObject(),
39 fx11(0),
40 fy11(0),
41 fthetax(0),
42 fthetay(0),
c6ba19f7 43 floTrgNum(0),
67c201be 44 fGTPattern(0),
45 fHitsPatternInTrigCh(0)
7fe0032c 46
0b3dd00a 47{
7945aae7 48 /// default ctr
e5e7be4b 49 AliDebug(1,Form("this=%p",this));
0b3dd00a 50}
51//__________________________________________________________________________
67c201be 52AliMUONTriggerTrack::AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t thetax, Float_t thetay, Int_t loTrgNum, Long_t theGTPattern, UShort_t hitsPatternInTrigCh)
1657f946 53 : TObject(),
54 fx11(x11),
55 fy11(y11),
56 fthetax(thetax),
57 fthetay(thetay),
c6ba19f7 58 floTrgNum(loTrgNum),
67c201be 59 fGTPattern(theGTPattern),
1cf5e866 60 fHitsPatternInTrigCh(hitsPatternInTrigCh)
0b3dd00a 61{
7945aae7 62/// ctor from local trigger output
67c201be 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));
e5e7be4b 65
0b3dd00a 66}
67
68//__________________________________________________________________________
69AliMUONTriggerTrack::~AliMUONTriggerTrack()
70{
7945aae7 71 /// Destructor
e5e7be4b 72 AliDebug(1,Form("this=%p",this));
0b3dd00a 73}
74
75//__________________________________________________________________________
30178c30 76AliMUONTriggerTrack::AliMUONTriggerTrack (const AliMUONTriggerTrack& theMUONTriggerTrack)
1657f946 77 : TObject(theMUONTriggerTrack),
78 fx11(theMUONTriggerTrack.fx11),
79 fy11(theMUONTriggerTrack.fy11),
80 fthetax(theMUONTriggerTrack.fthetax),
81 fthetay(theMUONTriggerTrack.fthetay),
c6ba19f7 82 floTrgNum(theMUONTriggerTrack.floTrgNum),
67c201be 83 fGTPattern(theMUONTriggerTrack.fGTPattern),
84 fHitsPatternInTrigCh(theMUONTriggerTrack.fHitsPatternInTrigCh)
0b3dd00a 85{
7945aae7 86///
87/// copy ctor
88///
e5e7be4b 89 AliDebug(1,Form("this=%p copy ctor",this));
90
0b3dd00a 91}
92
93//__________________________________________________________________________
94AliMUONTriggerTrack & AliMUONTriggerTrack::operator=(const AliMUONTriggerTrack&
30178c30 95theMUONTriggerTrack)
0b3dd00a 96{
7945aae7 97/// Assignment operator
98
30178c30 99 // check assignement to self
100 if (this == &theMUONTriggerTrack)
0b3dd00a 101 return *this;
102
7945aae7 103 /// base class assignement
30178c30 104 TObject::operator=(theMUONTriggerTrack);
105
30178c30 106 fx11 = theMUONTriggerTrack.fx11;
107 fy11 = theMUONTriggerTrack.fy11;
108 fthetax = theMUONTriggerTrack.fthetax;
109 fthetay = theMUONTriggerTrack.fthetay;
c6ba19f7 110 floTrgNum = theMUONTriggerTrack.floTrgNum;
30178c30 111 fGTPattern = theMUONTriggerTrack.fGTPattern;
67c201be 112 fHitsPatternInTrigCh = theMUONTriggerTrack.fHitsPatternInTrigCh;
9131b4fe 113
0b3dd00a 114 return *this;
115}
c6ba19f7 116
e5e7be4b 117//__________________________________________________________________________
118void
119AliMUONTriggerTrack::Print(Option_t*) const
120{
121/// Printing
122
67c201be 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;
e5e7be4b 125}