BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
create_rootgeom_GEMS_RunWinter2016.C File Reference
#include "TFile.h"
#include "TGeoBBox.h"
#include "TGeoManager.h"
#include "TGeoShape.h"
#include "TMath.h"
#include "TRandom.h"
#include "TString.h"
Include dependency graph for create_rootgeom_GEMS_RunWinter2016.C:

Go to the source code of this file.

Functions

TGeoVolume * CreateStation (TString station_name)
TGeoVolume * CreateModule_Station10x10 (TString module_name, Double_t xsize, Double_t ysize, Double_t zsize)
TGeoVolume * CreateFrameForModule_Station10x10 (TString frame_name, Double_t dx, Double_t dy, Double_t dz)
TGeoVolume * CreateModule_Station66x41 (TString module_name, Double_t xsize, Double_t ysize, Double_t zsize)
TGeoVolume * CreateFrameForModule_Station66x41 (TString frame_name, Double_t dx, Double_t dy, Double_t dz)
TGeoVolume * CreateModule_Station163x45 (TString module_name, Double_t xsize, Double_t ysize, Double_t zsize, Double_t hole_radius)
TGeoVolume * CreateFrameForModule_Station163x45 (TString frame_name, Double_t dx, Double_t dy, Double_t dz, Double_t hole_radius)
void DefineRequiredMedia (FairGeoMedia *geoMedia, FairGeoBuilder *geoBuild)
void create_rootgeom_GEMS_RunWinter2016 ()

Variables

const Int_t NStations = 7
const Int_t NMaxModules = 2
const Double_t XStationPositions [NStations] = {+0.0, -1.5, -1.5, -1.5, +0.0, +0.0, +0.0}
const Double_t YStationPositions [NStations]
const Double_t ZStationPositions [NStations]
const Double_t XModuleShifts [NStations][NMaxModules]
const Double_t YModuleShifts [NStations][NMaxModules]
const Double_t ZModuleShifts [NStations][NMaxModules]
const Double_t XModuleSize_Station10x10 = 10.0
const Double_t YModuleSize_Station10x10 = 10.0
const Double_t ZModuleSize_Station10x10 = 0.9
const Double_t dXFrame_Station10x10 = 5.0
const Double_t dYFrame_Station10x10 = 3.75
const Double_t dZFrame_Station10x10 = 2.3
const Double_t XModuleSize_Station66x41 = 66.0
const Double_t YModuleSize_Station66x41 = 41.0
const Double_t ZModuleSize_Station66x41 = 0.9
const Double_t dXFrame_Station66x41 = 5.0
const Double_t dYFrame_Station66x41 = 3.75
const Double_t dZFrame_Station66x41 = 2.3
const Double_t XModuleSize_Station163x45 = 163.2 * 0.5
const Double_t YModuleSize_Station163x45 = 45.0
const Double_t ZModuleSize_Station163x45 = 0.9
const Double_t dXFrame_Station163x45 = 5.0
const Double_t dYFrame_Station163x45 = 3.75
const Double_t dZFrame_Station163x45 = 3.9
TGeoManager * gGeoMan = NULL
TGeoMedium * pMedAir = 0
TGeoMedium * pMedCarbon = 0
TGeoMedium * pMedFiberGlass = 0
TGeoMedium * pMedCopper = 0
TGeoMedium * pMedArCO27030 = 0

Function Documentation

◆ create_rootgeom_GEMS_RunWinter2016()

◆ CreateFrameForModule_Station10x10()

TGeoVolume * CreateFrameForModule_Station10x10 ( TString frame_name,
Double_t dx,
Double_t dy,
Double_t dz )

Definition at line 438 of file create_rootgeom_GEMS_RunWinter2016.C.

References TGeoVolume::AddNode(), dXFrame_Station10x10, dYFrame_Station10x10, TColor::GetColor(), pMedAir, pMedCarbon, TGeoVolume::SetLineColor(), TGeoVolume::SetMedium(), TGeoCombiTrans::SetTranslation(), XModuleSize_Station10x10, and YModuleSize_Station10x10.

Referenced by create_rootgeom_GEMS_RunWinter2016().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateFrameForModule_Station163x45()

TGeoVolume * CreateFrameForModule_Station163x45 ( TString frame_name,
Double_t dx,
Double_t dy,
Double_t dz,
Double_t hole_radius )

Definition at line 605 of file create_rootgeom_GEMS_RunWinter2016.C.

References TGeoVolume::AddNode(), dXFrame_Station163x45, dYFrame_Station163x45, TColor::GetColor(), pMedAir, pMedCarbon, TGeoVolume::SetLineColor(), TGeoVolume::SetMedium(), TGeoCombiTrans::SetTranslation(), XModuleSize_Station163x45, and YModuleSize_Station163x45.

Referenced by create_rootgeom_GEMS_RunWinter2016().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateFrameForModule_Station66x41()

TGeoVolume * CreateFrameForModule_Station66x41 ( TString frame_name,
Double_t dx,
Double_t dy,
Double_t dz )

Definition at line 513 of file create_rootgeom_GEMS_RunWinter2016.C.

References TGeoVolume::AddNode(), dXFrame_Station66x41, dYFrame_Station66x41, TColor::GetColor(), pMedAir, pMedCarbon, TGeoVolume::SetLineColor(), TGeoVolume::SetMedium(), TGeoCombiTrans::SetTranslation(), XModuleSize_Station66x41, and YModuleSize_Station66x41.

Referenced by create_rootgeom_GEMS_RunWinter2016().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateModule_Station10x10()

TGeoVolume * CreateModule_Station10x10 ( TString module_name,
Double_t xsize,
Double_t ysize,
Double_t zsize )

Definition at line 432 of file create_rootgeom_GEMS_RunWinter2016.C.

References CreateModule_Station66x41().

Referenced by create_rootgeom_GEMS_RunWinter2016().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateModule_Station163x45()

TGeoVolume * CreateModule_Station163x45 ( TString module_name,
Double_t xsize,
Double_t ysize,
Double_t zsize,
Double_t hole_radius )

Definition at line 567 of file create_rootgeom_GEMS_RunWinter2016.C.

References TColor::GetColor(), TGeoShape::GetName(), TNamed::GetName(), TString::Itoa(), pMedArCO27030, TGeoMatrix::RegisterYourself(), TGeoVolume::SetLineColor(), TGeoVolume::SetMedium(), and TGeoVolume::SetTransparency().

Referenced by create_rootgeom_GEMS_RunWinter2016().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateModule_Station66x41()

TGeoVolume * CreateModule_Station66x41 ( TString module_name,
Double_t xsize,
Double_t ysize,
Double_t zsize )

Definition at line 491 of file create_rootgeom_GEMS_RunWinter2016.C.

References TColor::GetColor(), pMedArCO27030, TGeoVolume::SetLineColor(), TGeoVolume::SetMedium(), and TGeoVolume::SetTransparency().

Referenced by create_rootgeom_GEMS_RunWinter2016(), and CreateModule_Station10x10().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateStation()

TGeoVolume * CreateStation ( TString station_name)

Definition at line 423 of file create_rootgeom_GEMS_RunWinter2016.C.

References pMedAir, and TGeoVolume::SetMedium().

Referenced by create_rootgeom_GEMS_RunWinter2016().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DefineRequiredMedia()

void DefineRequiredMedia ( FairGeoMedia * geoMedia,
FairGeoBuilder * geoBuild )

Definition at line 111 of file create_rootgeom_GEMS_RunWinter2016.C.

References pMedAir, pMedArCO27030, pMedCarbon, and pMedFiberGlass.

Referenced by create_rootgeom_GEMS_RunWinter2016().

Here is the caller graph for this function:

Variable Documentation

◆ dXFrame_Station10x10

const Double_t dXFrame_Station10x10 = 5.0

Definition at line 57 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ dXFrame_Station163x45

const Double_t dXFrame_Station163x45 = 5.0

Definition at line 77 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ dXFrame_Station66x41

const Double_t dXFrame_Station66x41 = 5.0

Definition at line 67 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ dYFrame_Station10x10

const Double_t dYFrame_Station10x10 = 3.75

Definition at line 58 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ dYFrame_Station163x45

const Double_t dYFrame_Station163x45 = 3.75

Definition at line 78 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ dYFrame_Station66x41

const Double_t dYFrame_Station66x41 = 3.75

Definition at line 68 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ dZFrame_Station10x10

const Double_t dZFrame_Station10x10 = 2.3

Definition at line 59 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ dZFrame_Station163x45

const Double_t dZFrame_Station163x45 = 3.9

Definition at line 79 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ dZFrame_Station66x41

const Double_t dZFrame_Station66x41 = 2.3

Definition at line 69 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ gGeoMan

TGeoManager* gGeoMan = NULL

Definition at line 83 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ NMaxModules

const Int_t NMaxModules = 2

Definition at line 12 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ NStations

const Int_t NStations = 7

Definition at line 11 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ pMedAir

TGeoMedium* pMedAir = 0

Definition at line 86 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ pMedArCO27030

TGeoMedium* pMedArCO27030 = 0

Definition at line 90 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ pMedCarbon

TGeoMedium* pMedCarbon = 0

Definition at line 87 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ pMedCopper

TGeoMedium* pMedCopper = 0

Definition at line 89 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ pMedFiberGlass

TGeoMedium* pMedFiberGlass = 0

Definition at line 88 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ XModuleShifts

const Double_t XModuleShifts[NStations][NMaxModules]
Initial value:
= {
{0.0},
{0.0},
{0.0},
{0.0},
{27.7, -34.7},
{163.2 * 0.25, -163.2 * 0.25},
{163.2 * 0.25, -163.2 * 0.25}
}

Definition at line 24 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ XModuleSize_Station10x10

const Double_t XModuleSize_Station10x10 = 10.0

Definition at line 53 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ XModuleSize_Station163x45

const Double_t XModuleSize_Station163x45 = 163.2 * 0.5

Definition at line 73 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ XModuleSize_Station66x41

const Double_t XModuleSize_Station66x41 = 66.0

Definition at line 63 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ XStationPositions

const Double_t XStationPositions[NStations] = {+0.0, -1.5, -1.5, -1.5, +0.0, +0.0, +0.0}

Definition at line 15 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ YModuleShifts

const Double_t YModuleShifts[NStations][NMaxModules]
Initial value:
= {
{0.0},
{0.0},
{0.0},
{0.0},
{0.0, +0.2},
{0.0, 0.0},
{0.0, 0.0}
}

Definition at line 33 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ YModuleSize_Station10x10

const Double_t YModuleSize_Station10x10 = 10.0

Definition at line 54 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ YModuleSize_Station163x45

const Double_t YModuleSize_Station163x45 = 45.0

Definition at line 74 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ YModuleSize_Station66x41

const Double_t YModuleSize_Station66x41 = 41.0

Definition at line 64 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ YStationPositions

const Double_t YStationPositions[NStations]
Initial value:
= {+0.0 - 4.5, +0.0 - 4.5, +0.0 - 4.5, +0.0 - 4.5,
+0.0 - 4.5, -2.4 - 4.5, -2.4 - 4.5}

Definition at line 16 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ ZModuleShifts

const Double_t ZModuleShifts[NStations][NMaxModules]
Initial value:
= {
{0.0},
{0.0},
{0.0},
{0.0},
{0.0, +2.3},
{0.0, 0.0},
{0.0, 0.0}
}

Definition at line 42 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ ZModuleSize_Station10x10

const Double_t ZModuleSize_Station10x10 = 0.9

Definition at line 55 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ ZModuleSize_Station163x45

const Double_t ZModuleSize_Station163x45 = 0.9

Definition at line 75 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ ZModuleSize_Station66x41

const Double_t ZModuleSize_Station66x41 = 0.9

Definition at line 65 of file create_rootgeom_GEMS_RunWinter2016.C.

◆ ZStationPositions

const Double_t ZStationPositions[NStations]
Initial value:
= {
-186.0 + 0.1, 31.8 + 0.7, 63.8 + 0.7, 95.8 + 0.7,
127.8 + 0.7, 159.8 + 1.5, 191.8 + 1.5}

Definition at line 18 of file create_rootgeom_GEMS_RunWinter2016.C.