]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - MUON/AliMUONTriggerTrack.cxx
more methods use the correction framework
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerTrack.cxx
... / ...
CommitLineData
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
33ClassImp(AliMUONTriggerTrack)
34/// \endcond
35
36//__________________________________________________________________________
37AliMUONTriggerTrack::AliMUONTriggerTrack()
38 : TObject(),
39 fx11(0),
40 fy11(0),
41 fthetax(0),
42 fthetay(0),
43 floTrgNum(0),
44 fGTPattern(0)
45
46{
47 /// default ctr
48 AliDebug(1,Form("this=%p",this));
49}
50//__________________________________________________________________________
51AliMUONTriggerTrack::AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t thetax, Float_t thetay, Int_t loTrgNum, Long_t theGTPattern)
52 : TObject(),
53 fx11(x11),
54 fy11(y11),
55 fthetax(thetax),
56 fthetay(thetay),
57 floTrgNum(loTrgNum),
58 fGTPattern(theGTPattern)
59{
60/// ctor from local trigger output
61 AliDebug(1,Form("this=%p x11=%f y11=%f thetax=%f thetay=%f loTrgNum=%d GTPattern=%ld",
62 this,x11,y11,thetax,thetay,loTrgNum,theGTPattern));
63
64}
65
66//__________________________________________________________________________
67AliMUONTriggerTrack::~AliMUONTriggerTrack()
68{
69 /// Destructor
70 AliDebug(1,Form("this=%p",this));
71}
72
73//__________________________________________________________________________
74AliMUONTriggerTrack::AliMUONTriggerTrack (const AliMUONTriggerTrack& theMUONTriggerTrack)
75 : TObject(theMUONTriggerTrack),
76 fx11(theMUONTriggerTrack.fx11),
77 fy11(theMUONTriggerTrack.fy11),
78 fthetax(theMUONTriggerTrack.fthetax),
79 fthetay(theMUONTriggerTrack.fthetay),
80 floTrgNum(theMUONTriggerTrack.floTrgNum),
81 fGTPattern(theMUONTriggerTrack.fGTPattern)
82{
83///
84/// copy ctor
85///
86 AliDebug(1,Form("this=%p copy ctor",this));
87
88}
89
90//__________________________________________________________________________
91AliMUONTriggerTrack & AliMUONTriggerTrack::operator=(const AliMUONTriggerTrack&
92theMUONTriggerTrack)
93{
94/// Assignment operator
95
96 // check assignement to self
97 if (this == &theMUONTriggerTrack)
98 return *this;
99
100 /// base class assignement
101 TObject::operator=(theMUONTriggerTrack);
102
103 fx11 = theMUONTriggerTrack.fx11;
104 fy11 = theMUONTriggerTrack.fy11;
105 fthetax = theMUONTriggerTrack.fthetax;
106 fthetay = theMUONTriggerTrack.fthetay;
107 floTrgNum = theMUONTriggerTrack.floTrgNum;
108 fGTPattern = theMUONTriggerTrack.fGTPattern;
109
110 return *this;
111}
112
113//__________________________________________________________________________
114void
115AliMUONTriggerTrack::Print(Option_t*) const
116{
117/// Printing
118
119 cout << Form("(X,Y)11=(%7.2f,%7.2f) Theta(X,Y)=(%7.2f,%7.2f) LocalBoard #%3d GlobalTriggerPattern %x",
120 fx11,fy11,fthetax,fthetay,floTrgNum,fGTPattern) << endl;
121}