void KVFAZIA::SortIDTelescopes() { KVDetector* det = 0; TIter next(GetDetectors()); while ((det = (KVDetector*)next())) { ((KVFAZIADetector*)det)->SortIDTelescopes(); } }
void KVIDCsI::Initialize() { // Override default initialization method // If telescope has 1 CsI detector and at least 1 grid // then it is ready to identify particles, after we initialise // the grid if (GetDetectors()->GetEntries() == 1 && GetDetector(1)->IsType("CsI") && GetIDGrid()) { GetIDGrid()->Initialize(); SetBit(kReadyForID); } else ResetBit(kReadyForID); }
const Char_t* KVINDRATelescope::GetArrayName() { // Name of telescope given in the form Det1_Det2_..._Ring-numberTelescope-number // where Det1 etc. are the ACTIVE detector layers of the telescope // The detectors are signified by their TYPE names i.e. KVDetector::GetType TIter next_det(GetDetectors()); KVDetector* kdet; TString dummy; while ((kdet = (KVDetector*) next_det())) { //loop over detectors in telescope if (dummy == "") dummy = kdet->GetType(); else dummy += kdet->GetType(); dummy += "_"; } fName.Form("%s%02d%02d", dummy.Data(), GetRingNumber(), GetNumber()); return fName.Data(); }