#include "AliTRDtrackletGTU.h"
#include "AliTRDtrackletWord.h"
-#include "AliTRDmcmTracklet.h"
#include "AliTRDtrackletMCM.h"
#include "AliLog.h"
#include "AliTRDgtuParam.h"
AliTRDtrackletGTU& AliTRDtrackletGTU::operator=(const AliTRDtrackletGTU &rhs)
{
+ // assignment operator
+
if (&rhs != this) {
fTracklet = rhs.fTracklet;
for (Int_t zch = 0; zch < fGtuParam->GetNZChannels(); zch++)
fSubChannel[zch] = subch;
}
-Int_t AliTRDtrackletGTU::GetSubChannel(Int_t zch)
+Int_t AliTRDtrackletGTU::GetSubChannel(Int_t zch) const
{
// get the subchannel in the given z-channel
return fSubChannel[zch];
Int_t AliTRDtrackletGTU::GetLabel() const
{
+ // get the MC label for the tracklet, -1 if none
+
if ( fTracklet->IsA() == TClass::GetClass("AliTRDtrackletMCM"))
return ((AliTRDtrackletMCM*) fTracklet)->GetLabel();
else