Commit cc4d166f authored by Eoin Clerkin's avatar Eoin Clerkin
Browse files

CBM experiment using sis18

An interest in running simulations of the CBM experiment with beam from sis18. Adds lmvm and electron setups.
Magnet and psd geometries removed from setups. Magnetic field same as before but rescaled to 50%.
parent 53266cad
/** ROOT macro to define the CBM setup sis_18_electron
**
**/
// 2022-03-15 - EC - Introduced after proposal to use CBM with sis18 beam.
// clang-format off
void setup_sis18_electron()
{
// ----- Geometry Tags --------------------------------------------------
TString pipeGeoTag = "v22a";
TString mvdGeoTag = "v20a_tr";
TString stsGeoTag = "v21e";
TString richGeoTag = "v21a";
TString trdGeoTag = "v20b_1e";
TString tofGeoTag = "v21a_1e";
// ------------------------------------------------------------------------
// ----- Magnetic field -------------------------------------------------
TString fieldTag = "v18a";
Double_t fieldZ = 0.; // field centre z position
Double_t fieldScale = 0.5; // field scaling factor
// ------------------------------------------------------------------------
// ----- Create setup ---------------------------------------------------
CbmSetup* setup = CbmSetup::Instance();
if ( ! setup->IsEmpty() ) {
std::cout << "-W- setup_sis18_electron: overwriting existing setup"
<< setup->GetTitle() << std::endl;
setup->Clear();
}
setup->SetTitle("SIS100 - Electron Setup");
setup->SetModule(ECbmModuleId::kPipe, pipeGeoTag);
setup->SetModule(ECbmModuleId::kMvd, mvdGeoTag);
setup->SetModule(ECbmModuleId::kSts, stsGeoTag);
setup->SetModule(ECbmModuleId::kRich, richGeoTag);
setup->SetModule(ECbmModuleId::kTrd, trdGeoTag);
setup->SetModule(ECbmModuleId::kTof, tofGeoTag);
setup->SetField(fieldTag, fieldScale, 0., 0., fieldZ);
// ------------------------------------------------------------------------
// ----- Screen output ------------------------------------------------
setup->Print();
// ------------------------------------------------------------------------
// clang-format on
}
/** ROOT macro to define the CBM setup sis18_muon_lmvm
**
** Contains: STS + MUCH + TRD + TOF
**
**/
// 2022-03-15 - EC - Using CBM experiment with
void setup_sis18_muon_lmvm()
{
// ----- Geometry Tags --------------------------------------------------
TString pipeGeoTag = "v21d";
TString stsGeoTag = "v21e";
TString muchGeoTag = "v21c_sis100_1m_lmvm";
TString trdGeoTag = "v20c_1m";
TString tofGeoTag = "v21a_1m";
TString platGeoTag = "v13a";
// ------------------------------------------------------------------------
// ----- Magnetic field -------------------------------------------------
TString fieldTag = "v18a";
Double_t fieldZ = 0.; // field centre z position
Double_t fieldScale = 0.5; // field scaling factor
// ------------------------------------------------------------------------
// ----- Create setup ---------------------------------------------------
CbmSetup* setup = CbmSetup::Instance();
if ( ! setup->IsEmpty() ) {
std::cout << "-W- setup_sis100_muon_lmvm: overwriting existing setup"
<< setup->GetTitle() << std::endl;
setup->Clear();
}
setup->SetTitle("SIS100 - Muon Lmvm Setup");
setup->SetModule(ECbmModuleId::kPipe, pipeGeoTag);
setup->SetModule(ECbmModuleId::kSts, stsGeoTag);
setup->SetModule(ECbmModuleId::kMuch, muchGeoTag);
setup->SetModule(ECbmModuleId::kTrd, trdGeoTag);
setup->SetModule(ECbmModuleId::kTof, tofGeoTag);
setup->SetField(fieldTag, fieldScale, 0., 0., fieldZ);
// ------------------------------------------------------------------------
// ----- Screen output ------------------------------------------------
setup->Print();
// ------------------------------------------------------------------------
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment