]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDMuonTrack.cxx
Additional initialization
[u/mrichter/AliRoot.git] / STEER / AliESDMuonTrack.cxx
index e9b970b2e17e922cda87e89f80ea6c3d8c52f10b..5cc5064f739c9aae318fd80927e7fb16876ef7d6 100644 (file)
@@ -1,4 +1,78 @@
+/**************************************************************************
+ * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ *                                                                        *
+ * Author: The ALICE Off-line Project.                                    *
+ * Contributors are mentioned in the code where appropriate.              *
+ *                                                                        *
+ * Permission to use, copy, modify and distribute this software and its   *
+ * documentation strictly for non-commercial purposes is hereby granted   *
+ * without fee, provided that the above copyright notice appears in all   *
+ * copies and that both the copyright notice and this permission notice   *
+ * appear in the supporting documentation. The authors make no claims     *
+ * about the suitability of this software for any purpose. It is          *
+ * provided "as is" without express or implied warranty.                  *
+ **************************************************************************/
+
+/* $Id$ */
+
+///////////////////////////////////////////////////////////////////////////////
+//
+//  Class to describe the MUON tracks
+//  in the Event Summary Data class
+//  This is where the results of reconstruction
+//  are stored for the muons
+//  Author: G.Martinez
+//
+///////////////////////////////////////////////////////////////////////////////
+
+
 #include "AliESDMuonTrack.h"
 
 ClassImp(AliESDMuonTrack)
 
+//_____________________________________________________________________________
+AliESDMuonTrack::AliESDMuonTrack (const AliESDMuonTrack& MUONTrack):
+  TObject(MUONTrack)
+{
+  //
+  // Copy constructor
+  // Deep copy implemented
+  //
+  fInverseBendingMomentum = MUONTrack.fInverseBendingMomentum; 
+  fThetaX                 = MUONTrack.fThetaX;           
+  fThetaY                 = MUONTrack.fThetaY ;           
+  fZ                      = MUONTrack.fZ;                
+  fBendingCoor            = MUONTrack.fBendingCoor;      
+  fNonBendingCoor         = MUONTrack.fNonBendingCoor;   
+  fChi2                   = MUONTrack.fChi2;             
+  fNHit                   = MUONTrack.fNHit ; 
+
+  fMatchTrigger           = MUONTrack.fMatchTrigger;  
+  fChi2MatchTrigger       = MUONTrack.fChi2MatchTrigger; 
+}
+
+//_____________________________________________________________________________
+AliESDMuonTrack& AliESDMuonTrack::operator=(const AliESDMuonTrack& MUONTrack)
+{
+  // 
+  // Equal operator for a deep copy
+  //
+  if (this == &MUONTrack)
+    return *this;
+
+  fInverseBendingMomentum = MUONTrack.fInverseBendingMomentum; 
+  fThetaX                 = MUONTrack.fThetaX;           
+  fThetaY                 = MUONTrack.fThetaY ;           
+  fZ                      = MUONTrack.fZ;                
+  fBendingCoor            = MUONTrack.fBendingCoor;      
+  fNonBendingCoor         = MUONTrack.fNonBendingCoor;   
+  fChi2                   = MUONTrack.fChi2;             
+  fNHit                   = MUONTrack.fNHit ; 
+
+  fMatchTrigger           = MUONTrack.fMatchTrigger;  
+  fChi2MatchTrigger       = MUONTrack.fChi2MatchTrigger; 
+  return *this;
+}
+
+