// $Id: htrackinfo.cc,v 1.11 2004-10-15 08:25:33 eberl Exp $ // Last update by Thomas Eberl: 04/08/02 13:07:12 // using namespace std; #include "htrackinfo.h" #include #include ClassImp(HTrackInfo) HTrackInfo::HTrackInfo() { reset(); } HTrackInfo::HTrackInfo(const HTrackInfo& source) { } HTrackInfo& HTrackInfo::operator=(const HTrackInfo& source) { reset(); if (this != &source) { for (Int_t i=0;i0) j++; } return j; } Int_t HTrackInfo::calcCorrCode(Int_t i) { Int_t RM = getMatchedRM(i); Int_t RT_S = getMatchedRT_S(i); Int_t MT_S = getMatchedMT_S(i); Int_t RMT_S= getMatchedRMT_S(i); if (RM==-1 && RT_S==-1 && MT_S==-1 && RMT_S==-1) return -1; if (RM!=1 && RT_S!=1 && MT_S!=1 && RMT_S != 1) return 0; if (RM==1 && RT_S!=1 && MT_S!=1 && RMT_S != 1) return 1; if (RM!=1 && RT_S==1 && MT_S!=1 && RMT_S != 1) return 2; if (RM!=1 && RT_S!=1 && MT_S==1 && RMT_S != 1) return 3; if (RM==1 && RT_S==1 && MT_S==1 && RMT_S == 1) return 4; // only for correlator complex mode if (RM!=1 && RT_S==1 && MT_S==1 && RMT_S != 1) return 5; if (RM==1 && RT_S!=1 && MT_S==1 && RMT_S != 1) return 6; if (RM==1 && RT_S==1 && MT_S!=1 && RMT_S != 1) return 7; return -100; }