// $Id: htrackinfo.cc,v 1.6 2002-11-28 14:53:04 eberl Exp $ // Last update by Thomas Eberl: 02/10/15 11:21:29 // #include "htrackinfo.h" #include ClassImp(HTrackInfo) HTrackInfo::HTrackInfo() { reset(); } HTrackInfo::~HTrackInfo() { } void HTrackInfo::dumpToStdout() { cout<<"***** HTRACKINFO *******************************"<0) j++; } return j; } Int_t HTrackInfo::calcCorrCode(Int_t i) { //Rich-Mdc Rich-Meta Mdc-Meta CorrCode // 0 0 1 : 1 // 0 1 0 : 2 // 0 1 1 : 3 // 1 0 0 : 4 // 1 0 1 : 5 // 1 1 0 : 6 // 1 1 1 : 7 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 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; 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 -1; }