void KVHarpeeIC::SetACQParams() { // Setup acquisition parameters of this ionisation chamber. // ACQ parameters with type 'E': // E[detector type]_[A,B,C]_[detector number] // // WARNING: actually only the acquisition parameters with indice 'A' // are defined ('B' and 'C' were not coded in e494s and e503 experiment ). TString name; Char_t idx[] = {'A', 'B', 'C'}; for (Int_t num = 1; num <= ARPEEIC_NSEG; num++) { // for(Int_t i = 0; i<3; i++){ for (Int_t i = 0; i < 1; i++) { KVACQParam* par = new KVACQParam; name.Form("E%s_%c_%d", GetType(), idx[i], num); par->SetName(name); par->SetType("E"); par->SetLabel(Form("%c", idx[i])); par->SetNumber(num); par->SetUniqueID(CalculateUniqueID(par)); AddACQParam(par); } } }
void KVHarpeeSi::SetACQParams(){ // Setup the energy acquisition parameter for this silicon detector. // This parameter has the name of the detector and has the type 'E' // (for energy). // KVACQParam *par = new KVACQParam; par->SetName( GetEBaseName() ); par->SetType("E"); par->SetNumber( GetNumber() ); par->SetUniqueID( CalculateUniqueID( par ) ); AddACQParam(par); }
void KVINDRA_VAMOS::Build(Int_t run) { // Overrides KVMultiDetArray::Build in order to set the name of the // couple INDRA+VAMOS. Set up the geometry of INDRA and VAMOS, // associate the acquistion parameters with detectors, etc... SetName("INDRA_VAMOS"); SetTitle("INDRA+VAMOS experimental setup"); Info("Build", "Building INDRA+VAMOS ..."); // Build INDRA multidetector cout << endl << setw(20) << "" << "********************************" << endl; cout << setw(20) << "" << "* INDRA *" << endl; cout << setw(20) << "" << "********************************" << endl << endl; KVINDRA* indra = new KVINDRAe503; ((KVINDRAe503*)indra)->SetDataSet(fDataSet); indra->Build(); Add(indra); // Build VAMOS spectrometer cout << endl << setw(20) << "" << "********************************" << endl; cout << setw(20) << "" << "* VAMOS *" << endl; cout << setw(20) << "" << "********************************" << endl << endl; KVVAMOS* vamos = KVVAMOS::MakeVAMOS(fDataSet.Data()); Add(vamos); // Add the lists of ACQ parameters, detectors and ID telescopes of // INDRA and VAMOS to INDRA_VAMOS TIter next_i(indra->GetACQParams()); TIter next_v(vamos->GetACQParams()); TObject* obj; while ((obj = next_i()) || (obj = next_v())) AddACQParam((KVACQParam*)obj); fDetectors.AddAll(indra->GetDetectors()); fDetectors.AddAll(vamos->GetDetectors()); fIDTelescopes->AddAll(indra->GetListOfIDTelescopes()); fIDTelescopes->AddAll(vamos->GetListOfIDTelescopes()); // To be sure that gMultiDetArray points on this object. gMultiDetArray = this; if (run > -1) SetParameters(run); }