X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONTriggerTrack.cxx;h=c57ce9d37be5658afedcd85a5df70d2450b439f2;hb=642b74ab3eb2726f3f33bf600fc5471d1ae99ad2;hp=29f0a6212357f122d691840f0ed9159b36801527;hpb=0b3dd00a20e5686dd067990fa61d2815db342136;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONTriggerTrack.cxx b/MUON/AliMUONTriggerTrack.cxx index 29f0a621235..c57ce9d37be 100644 --- a/MUON/AliMUONTriggerTrack.cxx +++ b/MUON/AliMUONTriggerTrack.cxx @@ -13,7 +13,7 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/* */ +/* $Id$*/ /////////////////////////////////////////////////// // @@ -26,34 +26,32 @@ // no need for a AliMUONTriggerTrackParam /////////////////////////////////////////////////// -#include // for cout -#include // for exit() - -#include -#include -#include -#include - -#include "AliMUONEventReconstructor.h" #include "AliMUONTriggerTrack.h" +#include "AliMUONTrackReconstructor.h" + //__________________________________________________________________________ AliMUONTriggerTrack::AliMUONTriggerTrack() + : TObject(), + fx11(0), + fy11(0), + fthetax(0), + fthetay(0), + fGTPattern(0) + { - fEventReconstructor = 0; - fx11 = 0.; - fy11 = 0.; - fthetax = 0.; - fthetay = 0.; + // default ctr } //__________________________________________________________________________ -AliMUONTriggerTrack::AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t thetax, Float_t thetay, AliMUONEventReconstructor* EventReconstructor) +AliMUONTriggerTrack::AliMUONTriggerTrack(Float_t x11, Float_t y11, Float_t thetax, Float_t thetay, Long_t theGTPattern) + : TObject(), + fx11(x11), + fy11(y11), + fthetax(thetax), + fthetay(thetay), + fGTPattern(theGTPattern) { - fEventReconstructor = EventReconstructor; // link back to EventReconstructor - fx11 = x11; - fy11 = y11; - fthetax = thetax; - fthetay = thetay; +// ctor from local trigger output } //__________________________________________________________________________ @@ -65,28 +63,35 @@ AliMUONTriggerTrack::~AliMUONTriggerTrack() } //__________________________________________________________________________ -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), + fGTPattern(theMUONTriggerTrack.fGTPattern) { - fEventReconstructor = new AliMUONEventReconstructor(*MUONTriggerTrack.fEventReconstructor); - fx11 = MUONTriggerTrack.fx11; - fy11 = MUONTriggerTrack.fy11; - fthetax = MUONTriggerTrack.fthetax; - fthetay = MUONTriggerTrack.fthetay; +// +// copy ctor +// } //__________________________________________________________________________ AliMUONTriggerTrack & AliMUONTriggerTrack::operator=(const AliMUONTriggerTrack& -MUONTriggerTrack) +theMUONTriggerTrack) { - if (this == &MUONTriggerTrack) + // 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; - return *this; -} + // base class assignement + TObject::operator=(theMUONTriggerTrack); + fx11 = theMUONTriggerTrack.fx11; + fy11 = theMUONTriggerTrack.fy11; + fthetax = theMUONTriggerTrack.fthetax; + fthetay = theMUONTriggerTrack.fthetay; + fGTPattern = theMUONTriggerTrack.fGTPattern; + return *this; +}