Beispiel #1
0
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();
}
Beispiel #2
0
//_______________________________________________________________________________________
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();
}
Beispiel #3
0
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));
}
Beispiel #4
0
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);
}