/** ROOT macro to define the TOF setup sps_feb15_sim ** ** @author Christian Simon ** @date 20 February 2020 ** **/ void setup_sps_feb15_sim() { // ----- Geometry Tags -------------------------------------------------- TString tofGeoTag = "v15i"; // ------------------------------------------------------------------------ // ----- Magnetic field ------------------------------------------------- TString fieldTag = "v12b"; Double_t fieldZ = 40.; // field centre z position Double_t fieldScale = 0.; // field scaling factor // ------------------------------------------------------------------------ // ----- Create setup --------------------------------------------------- CbmSetup* setup = CbmSetup::Instance(); if ( ! setup->IsEmpty() ) { std::cout << "-W- setup_sps_feb15_sim: overwriting existing setup" << setup->GetTitle() << std::endl; setup->Clear(); } setup->SetTitle("SPS Feb 15 Simulation Setup"); setup->SetModule(kTof, tofGeoTag); setup->SetField(fieldTag, fieldScale, 0., 0., fieldZ); // ------------------------------------------------------------------------ // ----- Screen output ------------------------------------------------ setup->Print(); // ------------------------------------------------------------------------ }