]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTriggerTrack.cxx
DP: xz CPV-EMC distance filled to TS
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerTrack.cxx
index 9d6b997bb706ea2c31a130fde4203e8acea4e980..aadbe0bdb7ca246e1d5616d2cb78d7bd7a81ee76 100644 (file)
@@ -13,7 +13,7 @@
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/* */
+/* $Id$*/
 
 ///////////////////////////////////////////////////
 //
 // no need for a AliMUONTriggerTrackParam
 ///////////////////////////////////////////////////
 
-#include <Riostream.h> // for cout
-#include <stdlib.h> // for exit()
-
-#include <TClonesArray.h>
-#include <TMath.h>
-#include <TMatrixD.h>
-#include <TObjArray.h>
-
-#include "AliMUONEventReconstructor.h" 
 #include "AliMUONTriggerTrack.h"
-
+#include "AliMUONTrackReconstructor.h" 
 
 //__________________________________________________________________________
 AliMUONTriggerTrack::AliMUONTriggerTrack()
+  : TObject(),
+    fx11(0),
+    fy11(0),
+    fthetax(0),
+    fthetay(0),
+    floTrgNum(0),
+    fGTPattern(0)
+
 {
-    fEventReconstructor = 0;
-    fx11 = 0.;
-    fy11 = 0.;
-    fthetax = 0.;
-    fthetay = 0.;
-    fGTPattern = 0;
+  /// default ctr
 }
 //__________________________________________________________________________
-AliMUONTriggerTrack::AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t thetax, Float_t thetay, Long_t GTPattern,  AliMUONEventReconstructor* EventReconstructor)
+AliMUONTriggerTrack::AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t thetax, Float_t thetay, Int_t loTrgNum, Long_t theGTPattern)
+    : TObject(),
+      fx11(x11),
+      fy11(y11),
+      fthetax(thetax),
+      fthetay(thetay),
+      floTrgNum(loTrgNum),
+      fGTPattern(theGTPattern)
 {
-    fEventReconstructor = EventReconstructor; // link back to EventReconstructor
-    fx11 = x11;
-    fy11 = y11;
-    fthetax = thetax;
-    fthetay = thetay;
-    fGTPattern = GTPattern;
-
+/// ctor from local trigger output
 }
 
 //__________________________________________________________________________
 AliMUONTriggerTrack::~AliMUONTriggerTrack()
 {
-  // Destructor
+  /// Destructor
     ;
     
 }
 
 //__________________________________________________________________________
-AliMUONTriggerTrack::AliMUONTriggerTrack (const AliMUONTriggerTrack& MUONTriggerTrack):TObject(MUONTriggerTrack)
+AliMUONTriggerTrack::AliMUONTriggerTrack (const AliMUONTriggerTrack& theMUONTriggerTrack)
+    : TObject(theMUONTriggerTrack),
+      fx11(theMUONTriggerTrack.fx11),
+      fy11(theMUONTriggerTrack.fy11),
+      fthetax(theMUONTriggerTrack.fthetax),
+      fthetay(theMUONTriggerTrack.fthetay),
+      floTrgNum(theMUONTriggerTrack.floTrgNum),
+      fGTPattern(theMUONTriggerTrack.fGTPattern)    
 {
-  fEventReconstructor = new AliMUONEventReconstructor(*MUONTriggerTrack.fEventReconstructor);
-  fx11 = MUONTriggerTrack.fx11;
-  fy11 = MUONTriggerTrack.fy11;
-  fthetax = MUONTriggerTrack.fthetax;
-  fthetay = MUONTriggerTrack.fthetay;
-  fGTPattern = MUONTriggerTrack.fGTPattern;
+///
+/// copy ctor
+///
 }
       
 //__________________________________________________________________________
 AliMUONTriggerTrack & AliMUONTriggerTrack::operator=(const AliMUONTriggerTrack&
-MUONTriggerTrack)
+theMUONTriggerTrack)
 {
-    if (this == &MUONTriggerTrack)
+/// Assignment operator
+
+    // check assignement to self
+    if (this == &theMUONTriggerTrack)
        return *this;
     
-    fEventReconstructor = new AliMUONEventReconstructor(*MUONTriggerTrack.fEventReconstructor);
-    fx11 = MUONTriggerTrack.fx11;
-    fy11 = MUONTriggerTrack.fy11;
-    fthetax = MUONTriggerTrack.fthetax;
-    fthetay = MUONTriggerTrack.fthetay;
-    fGTPattern = MUONTriggerTrack.fGTPattern;
+    /// base class assignement
+    TObject::operator=(theMUONTriggerTrack);
+
+    fx11 = theMUONTriggerTrack.fx11;
+    fy11 = theMUONTriggerTrack.fy11;
+    fthetax = theMUONTriggerTrack.fthetax;
+    fthetay = theMUONTriggerTrack.fthetay;
+    floTrgNum = theMUONTriggerTrack.floTrgNum;
+    fGTPattern = theMUONTriggerTrack.fGTPattern;
 
     return *this;
 }
+