const Char_t* KVSiB::GetArrayName() { //Give name of detector as SIB_x with x=number of blocking telescope fFName = TString("SIB_") + Form("%d", GetTelescope()->GetNumber()); return fFName.Data(); }
//_______________________________________________________________________________________ const Char_t *KVPhoswich::GetArrayName() { //Overrides KVDetector method. //Gives name of phoswich as PHOS_01, PHOS_02, etc. fFName.Form("PHOS_%02d", GetTelescope()->GetNumber()); return fFName.Data(); }
KVACQParam* KVBIC::GetACQParam(const Char_t* type) { // //Access acquisition parameter of given type // if (!fACQParams) { // Warning("GetACQParam", // "No acquisition parameters set for %s",GetName()); return 0; } TString name; name.Form("CI_16%02d_%s", GetTelescope()->GetNumber(), type); return ((KVACQParam*) fACQParams->FindObjectWithNameAndType(name, type)); }
void KVBIC::AddACQParam(const Char_t* type) { //Add an acquisition parameter of given type to this detector //The parameters for the BIC in blocking telescopes 1, 2, and 3 //were called CI_1601_x, CI_1602_x, and CI_1603_x respectively, //so here we have to override the KVDetector default behaviour. if (!fACQParams) fACQParams = new KVList(); KVACQParam* par = new KVACQParam(); TString name; name.Form("CI_16%02d_%s", GetTelescope()->GetNumber(), type); par->SetName(name); par->SetDetector(this); par->SetType(type); fACQParams->Add(par); }