/** ROOT macro to define the TOF setup sps_nov15 ** ** @author Christian Simon ** @date 27 February 2018 ** **/ void setup_sps_nov15() { // ----- Geometry Tags -------------------------------------------------- TString tofGeoTag = "v15c"; // ------------------------------------------------------------------------ // ----- 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_nov15: overwriting existing setup" << setup->GetTitle() << std::endl; setup->Clear(); } setup->SetTitle("SPS Nov 15 Setup"); setup->SetModule(kTof, tofGeoTag); setup->SetField(fieldTag, fieldScale, 0., 0., fieldZ); // ------------------------------------------------------------------------ // ----- Screen output ------------------------------------------------ setup->Print(); // ------------------------------------------------------------------------ }