setup_sis100_electron.C 3.65 KB
Newer Older
Administrator's avatar
Administrator committed
1
2
3
4
5
6
7
8
/** ROOT macro to define the CBM setup sis_100_electron
 **
 ** @author Volker Friese <v.friese@gsi.de>
 ** @author David Emschermann <d.emschermann@gsi.de>
 ** @date   5 February 2016
 **
 **/

Eoin Clerkin's avatar
Eoin Clerkin committed
9
// 2021-12-15 - EC - For V&V, all APR21 geometries are shifted by 40cm.
10
11
// 2020-04-23 - FU - Use exported TOF geometry v16d (same as v16c but
//                   different file format
Administrator's avatar
Administrator committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// 2017-11-24 - VF - New default v16g for STS (unit-based)
// 2017-11-20 - DE - use TRD v17n as new default
// 2017-05-22 - DE - use TRD v17c as new default
// 2016-06-27 - DE - use STS v16x as new default, see issue #647
// 2016-05-19 - VF - Add platform module
// 2016-02-25 - DE - use STS v16c as new default
// 2016-02-05 - VF - Replaces former sis100_electron_setup.C,
//                   now using the CbmSetup class.
// 2016-01-29 - AL - Use RICH v16a_1e as new default
// 2015-12-11 - DE - use STS v15c as new default
// 2015-07-20 - FU - magnet v15a is v12b with correct keeping volume material
// 2015-07-20 - FU - add material budget files
// 2015-03-13 - DE - use STS v13y with correct ladder orientation as new default
// 2015-01-28 - DE - use STS v13x fitting with with PIPE v14l
// 2015-01-22 - DE - use MVD v14b with PIPE v14l as default
// 2015-01-19 - DE - use TRD v15a as new default
// 2014-07-05 - DE - use PIPE v14x as interim solution
// 2014-07-01 - DE - use PIPE v14f -> overlap with STS
// 2014-06-30 - DE - use PIPE v14d together with RICH v14a
// 2014-06-30 - DE - make RICH v14a the new default
// 2014-06-30 - DE - make TRD v14a the new default
// 2014-06-25 - DE - define digi files through tags for STS, TRD and TOF
// 2013-11-05 - DE - switch to trd_v13p geometry
// 2013-10-11 - DE - add empty string defining the platform
// 2013-10-07 - DE - pipe_v13d.geo fixes overlap with TOF
// 2013-10-07 - DE - rich_v13a is not at nominal position 1800mm, but at 1600mm
// 2013-11-04 - VF - make STS v15b the new default
//


void setup_sis100_electron()
{

  // -----  Geometry Tags  --------------------------------------------------
Eoin Clerkin's avatar
Eoin Clerkin committed
46
  TString magnetGeoTag    = "v21a";
Eoin Clerkin's avatar
Eoin Clerkin committed
47
  TString pipeGeoTag      = "v16e_1e";
Eoin Clerkin's avatar
Eoin Clerkin committed
48
49
50
51
52
53
  TString mvdGeoTag       = "v20c_tr";
  TString stsGeoTag       = "v20a";
  TString richGeoTag      = "v21a";
  TString trdGeoTag       = "v20c_1e";
  TString tofGeoTag       = "v20c_1e";
  TString psdGeoTag       = "v20c";
Administrator's avatar
Administrator committed
54
55
56
57
58
59
  TString platGeoTag      = "v13a";
  // ------------------------------------------------------------------------


  // -----  Magnetic field  -------------------------------------------------
  TString fieldTag      = "v18a";
Eoin Clerkin's avatar
Eoin Clerkin committed
60
  Double_t fieldZ       =  0.;            // field centre z position
Administrator's avatar
Administrator committed
61
62
63
64
65
66
67
68
69
70
71
72
  Double_t fieldScale   =  1.;            // field scaling factor
  // ------------------------------------------------------------------------


  // -----  Create setup  ---------------------------------------------------
  CbmSetup* setup = CbmSetup::Instance();
  if ( ! setup->IsEmpty() ) {
  	std::cout << "-W- setup_sis100_electron: overwriting existing setup"
  			      << setup->GetTitle() << std::endl;
  	setup->Clear();
  }
  setup->SetTitle("SIS100 - Electron Setup");
73
74
75
  setup->SetModule(ECbmModuleId::kMagnet, magnetGeoTag);
  setup->SetModule(ECbmModuleId::kPipe, pipeGeoTag);
  setup->SetModule(ECbmModuleId::kMvd, mvdGeoTag);
Eoin Clerkin's avatar
Eoin Clerkin committed
76
 setup->SetModule(ECbmModuleId::kSts, stsGeoTag);
77
78
79
80
81
  setup->SetModule(ECbmModuleId::kRich, richGeoTag);
  setup->SetModule(ECbmModuleId::kTrd, trdGeoTag);
  setup->SetModule(ECbmModuleId::kTof, tofGeoTag);
  setup->SetModule(ECbmModuleId::kPsd, psdGeoTag);
  setup->SetModule(ECbmModuleId::kPlatform, platGeoTag);
Administrator's avatar
Administrator committed
82
83
84
85
  setup->SetField(fieldTag, fieldScale, 0., 0., fieldZ);
  // ------------------------------------------------------------------------

}