BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
create_rootgeom_GEMS_RunSpring2018_misAlign.C File Reference
#include <TClonesArray.h>
#include <TFile.h>
#include <TRandom.h>
#include <TRandom2.h>
#include <TTree.h>
#include <fstream>
#include <string.h>
#include <string>
Include dependency graph for create_rootgeom_GEMS_RunSpring2018_misAlign.C:

Go to the source code of this file.

Functions

TGeoVolume * CreateStation (TString station_name)
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)
Double_t *** generateMisalign (Double_t, Double_t, Double_t)
void createNewXML (Double_t ***, TString, TString)
void DefineRequiredMedia (FairGeoMedia *geoMedia, FairGeoBuilder *geoBuild)
void create_rootgeom_GEMS_RunSpring2018_misAlign (Double_t sigX, Double_t sigY, Double_t sigZ, TString geoVersion="RunSpring2018_misAlign", TString xmlMisalign="GemRunSpring2018_misAlign.xml")

Variables

const Int_t NStations = 6
const Int_t NMaxModules = 2
const Double_t XStationPositions [NStations] = {+0.5390, +0.7025, +1.9925, +3.0860, +3.7980, +4.5815}
const Double_t YStationPositions [NStations] = {+15.99873, +16.20573, +16.36073, +16.40473, +16.09373, +16.45473}
const Double_t ZStationPositions [NStations] = {+39.702, +64.535, +112.649, +135.330, +160.6635, +183.668}
Double_t XModuleShifts [NStations][NMaxModules]
Double_t YModuleShifts [NStations][NMaxModules]
Double_t ZModuleShifts [NStations][NMaxModules]
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 = 2.0
const Double_t dYFrame_Station163x45 = 2.0
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_RunSpring2018_misAlign()

◆ CreateFrameForModule_Station163x45()

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

Definition at line 627 of file create_rootgeom_GEMS_RunSpring2018_misAlign.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_RunSpring2018_misAlign().

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 535 of file create_rootgeom_GEMS_RunSpring2018_misAlign.C.

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

Here is the call 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 589 of file create_rootgeom_GEMS_RunSpring2018_misAlign.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_RunSpring2018_misAlign().

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 513 of file create_rootgeom_GEMS_RunSpring2018_misAlign.C.

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

Here is the call graph for this function:

◆ createNewXML()

void createNewXML ( Double_t *** mis,
TString in,
TString out )

Definition at line 85 of file create_rootgeom_GEMS_RunSpring2018_misAlign.C.

References TString::Data(), and TString::Format().

Referenced by create_rootgeom_GEMS_RunSpring2018_misAlign().

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 504 of file create_rootgeom_GEMS_RunSpring2018_misAlign.C.

References pMedAir, and TGeoVolume::SetMedium().

Referenced by create_rootgeom_GEMS_RunSpring2018_misAlign().

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 149 of file create_rootgeom_GEMS_RunSpring2018_misAlign.C.

References pMedAir, pMedArCO27030, pMedCarbon, and pMedFiberGlass.

Referenced by create_rootgeom_GEMS_RunSpring2018_misAlign().

Here is the caller graph for this function:

◆ generateMisalign()

Double_t *** generateMisalign ( Double_t sigX,
Double_t sigY,
Double_t sigZ )

Definition at line 116 of file create_rootgeom_GEMS_RunSpring2018_misAlign.C.

References TTree::Branch(), f, TTree::Fill(), TObjArray::GetEntriesFast(), NMaxModules, NStations, and TTree::Write().

Referenced by create_rootgeom_GEMS_RunSpring2018_misAlign().

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

Variable Documentation

◆ dXFrame_Station163x45

const Double_t dXFrame_Station163x45 = 2.0

◆ dXFrame_Station66x41

const Double_t dXFrame_Station66x41 = 5.0

◆ dYFrame_Station163x45

const Double_t dYFrame_Station163x45 = 2.0

◆ dYFrame_Station66x41

const Double_t dYFrame_Station66x41 = 3.75

◆ dZFrame_Station163x45

const Double_t dZFrame_Station163x45 = 3.9

◆ dZFrame_Station66x41

const Double_t dZFrame_Station66x41 = 2.3

◆ gGeoMan

TGeoManager* gGeoMan = NULL

◆ NMaxModules

const Int_t NMaxModules = 2

◆ NStations

const Int_t NStations = 6

◆ pMedAir

TGeoMedium* pMedAir = 0

◆ pMedArCO27030

TGeoMedium* pMedArCO27030 = 0

◆ pMedCarbon

TGeoMedium* pMedCarbon = 0

◆ pMedCopper

TGeoMedium* pMedCopper = 0

◆ pMedFiberGlass

TGeoMedium* pMedFiberGlass = 0

◆ XModuleShifts

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

Definition at line 28 of file create_rootgeom_GEMS_RunSpring2018_misAlign.C.

◆ XModuleSize_Station163x45

const Double_t XModuleSize_Station163x45 = 163.2 * 0.5

◆ XModuleSize_Station66x41

const Double_t XModuleSize_Station66x41 = 66.0

◆ XStationPositions

const Double_t XStationPositions[NStations] = {+0.5390, +0.7025, +1.9925, +3.0860, +3.7980, +4.5815}

◆ YModuleShifts

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

Definition at line 31 of file create_rootgeom_GEMS_RunSpring2018_misAlign.C.

◆ YModuleSize_Station163x45

const Double_t YModuleSize_Station163x45 = 45.0

◆ YModuleSize_Station66x41

const Double_t YModuleSize_Station66x41 = 41.0

◆ YStationPositions

const Double_t YStationPositions[NStations] = {+15.99873, +16.20573, +16.36073, +16.40473, +16.09373, +16.45473}

◆ ZModuleShifts

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

Definition at line 33 of file create_rootgeom_GEMS_RunSpring2018_misAlign.C.

◆ ZModuleSize_Station163x45

const Double_t ZModuleSize_Station163x45 = 0.9

◆ ZModuleSize_Station66x41

const Double_t ZModuleSize_Station66x41 = 0.9

◆ ZStationPositions

const Double_t ZStationPositions[NStations] = {+39.702, +64.535, +112.649, +135.330, +160.6635, +183.668}