]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONTriggerTrack.cxx
Add global trigger in RecTriggerTrack (Christian)
[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 /* */
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 <Riostream.h> // for cout
30 #include <stdlib.h> // for exit()
31
32 #include <TClonesArray.h>
33 #include <TMath.h>
34 #include <TMatrixD.h>
35 #include <TObjArray.h>
36
37 #include "AliMUONEventReconstructor.h" 
38 #include "AliMUONTriggerTrack.h"
39
40
41 //__________________________________________________________________________
42 AliMUONTriggerTrack::AliMUONTriggerTrack()
43 {
44     fEventReconstructor = 0;
45     fx11 = 0.;
46     fy11 = 0.;
47     fthetax = 0.;
48     fthetay = 0.;
49     fGTPattern = 0;
50 }
51 //__________________________________________________________________________
52 AliMUONTriggerTrack::AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t thetax, Float_t thetay, Long_t GTPattern,  AliMUONEventReconstructor* EventReconstructor)
53 {
54     fEventReconstructor = EventReconstructor; // link back to EventReconstructor
55     fx11 = x11;
56     fy11 = y11;
57     fthetax = thetax;
58     fthetay = thetay;
59     fGTPattern = GTPattern;
60
61 }
62
63 //__________________________________________________________________________
64 AliMUONTriggerTrack::~AliMUONTriggerTrack()
65 {
66   // Destructor
67     ;
68     
69 }
70
71 //__________________________________________________________________________
72 AliMUONTriggerTrack::AliMUONTriggerTrack (const AliMUONTriggerTrack& MUONTriggerTrack):TObject(MUONTriggerTrack)
73 {
74   fEventReconstructor = new AliMUONEventReconstructor(*MUONTriggerTrack.fEventReconstructor);
75   fx11 = MUONTriggerTrack.fx11;
76   fy11 = MUONTriggerTrack.fy11;
77   fthetax = MUONTriggerTrack.fthetax;
78   fthetay = MUONTriggerTrack.fthetay;
79   fGTPattern = MUONTriggerTrack.fGTPattern;
80 }
81       
82 //__________________________________________________________________________
83 AliMUONTriggerTrack & AliMUONTriggerTrack::operator=(const AliMUONTriggerTrack&
84 MUONTriggerTrack)
85 {
86     if (this == &MUONTriggerTrack)
87         return *this;
88     
89     fEventReconstructor = new AliMUONEventReconstructor(*MUONTriggerTrack.fEventReconstructor);
90     fx11 = MUONTriggerTrack.fx11;
91     fy11 = MUONTriggerTrack.fy11;
92     fthetax = MUONTriggerTrack.fthetax;
93     fthetay = MUONTriggerTrack.fthetay;
94     fGTPattern = MUONTriggerTrack.fGTPattern;
95
96     return *this;
97 }