// Value of CheckMC tells what type of events this is: // 0 = on peak data, 1 = off peak, 2 = Jpsi K+ MC, 3 = Other B-->Jpsi MC // 4 = Other BB MC, 5 = continuum MC // C. Hearty, 21-Jun-2006. This version for rootTuples produced // with BtaTupleMaker Int_t histAnalysis::CheckMC(Int_t mcLund[200], Int_t mothIdx[200], Int_t dauLen[200], Int_t dauIdx[200], Int_t mcLen, Float_t sqrts) { // The numbers are the absolute values of the lund IDs; see PDT/pdt.table Int_t idb0(511),idbch(521), idjpsi(443), idk(321), idgam(22), idmu(13), ide(11), idtau(15), idd(1), idu(2), ids(3), idc(4); Int_t b0flag(0), bchflag(0), jpsiflag(0), signalflag(0); // Return value Int_t etm = -1; //..Real data if (mcLen == 0) { if( sqrts > 10.56 ) { etm = 0; } else { etm = 1; } return etm; } //..Some kind of MC. The second particle in the list will tell us a lot Int_t lundID1 = abs(mcLund[1]); //..Continuum if (lundID1 == idc || lundID1 == idu || lundID1 == ids || lundID1 == idd || lundID1 == idtau) { etm = 5; return etm; } //..Ought to be a B event. If it isn't, just give up. if (lundID1 == idb0) b0flag = 1; if (lundID1 == idbch) bchflag = 1; if( b0flag == 0 && bchflag == 0 ) return etm; //..An inclusive Jpsi event is a B event that includes Jpsi --> ee or mumu Int_t Jpsitoll[200]; for (Int_t k=0; k