BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
create_rootgeom_HGND_run9.C File Reference
#include "../profiling/bmnloadlibs.C"
#include "TFile.h"
#include "TGeoManager.h"
#include "TGeoMedium.h"
#include "TGeoVolume.h"
Include dependency graph for create_rootgeom_HGND_run9.C:

Go to the source code of this file.

Namespaces

namespace  NDetGeom

Functions

constexpr Double_t NDetGeom::Half (Double_t fullSize)
constexpr Double_t NDetGeom::FrontToLocalZ (Double_t zFront)
void DefineRequiredMedia (FairGeoMedia *geoMedia, FairGeoBuilder *geoBuild)
void create_rootgeom_HGND_run9 (Double_t distToDetector=699.7, Double_t yShift=0.0, Double_t rotYdeg=-10.0, Double_t rotXdeg=0.0, const char *geoTag="")
 HGND Run9 geometry creation macro Two identical layers (scintillator cell + PCB), no absorber between them – a bare test-stand / cosmic-test geometry.

Variables

TGeoMedium * pMedVacuum = nullptr
TGeoMedium * pMedAir = nullptr
TGeoMedium * pMedG10 = nullptr
TGeoMedium * pMedScint = nullptr

Function Documentation

◆ create_rootgeom_HGND_run9()

void create_rootgeom_HGND_run9 ( Double_t distToDetector = 699.7,
Double_t yShift = 0.0,
Double_t rotYdeg = -10.0,
Double_t rotXdeg = 0.0,
const char * geoTag = "" )
Parameters
distToDetectorDistance from target to the front face of detector, cm.
yShiftVertical shift of the detector center, cm.
rotYdegRotation of the detector around the Y axis, degrees.
rotXdegRotation of the detector around the X axis, degrees.
geoTagOptional short tag appended to the output geometry

Definition at line 100 of file create_rootgeom_HGND_run9.C.

References TGeoVolume::AddNode(), bmnloadlibs(), TFile::Close(), TString::Data(), DefineRequiredMedia(), BmnNdetGeoPar::fCommonVolumeName, BmnNdetGeoPar::fDetectorVolumeName, BmnNdetGeoPar::fEnvelopeVolumeName, BmnNdetGeoPar::fModuleVolumeName, NDetGeom::FrontToLocalZ(), BmnNdetGeoPar::fTopVolumeName, BmnNdetGeoPar::G10_name_NICA, NDetGeom::Half(), NDetGeom::kEnvelopeMargin, NDetGeom::kEnvelopeSizeX, NDetGeom::kEnvelopeSizeY, NDetGeom::kEnvelopeSizeZ, NDetGeom::kG10SizeX, NDetGeom::kG10SizeY, NDetGeom::kG10SizeZ, NDetGeom::kNCellsPerLayer, NDetGeom::kNColumns, NDetGeom::kNLayers, NDetGeom::kNRows, NDetGeom::kScintFrontZ, NDetGeom::kScintSizeX, NDetGeom::kScintSizeY, NDetGeom::kScintSizeZ, TGeoRotation::LocalToMaster(), pMedAir, pMedG10, pMedScint, pMedVacuum, TGeoRotation::RotateX(), TGeoRotation::RotateY(), BmnNdetGeoPar::SensitiveVolume_name_NICA, TAttFill::SetFillColor(), TGeoVolume::SetLineColor(), TGeoVolume::SetMedium(), TNamed::SetName(), TGeoVolume::SetVisContainers(), TObject::Write(), and yShift.

Here is the call graph for this function:

◆ DefineRequiredMedia()

void DefineRequiredMedia ( FairGeoMedia * geoMedia,
FairGeoBuilder * geoBuild )

Definition at line 68 of file create_rootgeom_HGND_run9.C.

References m, pMedAir, pMedG10, pMedScint, and pMedVacuum.

Referenced by create_rootgeom_HGND_run9().

Here is the caller graph for this function:

Variable Documentation

◆ pMedAir

TGeoMedium* pMedAir = nullptr

Definition at line 64 of file create_rootgeom_HGND_run9.C.

◆ pMedG10

TGeoMedium* pMedG10 = nullptr

Definition at line 65 of file create_rootgeom_HGND_run9.C.

◆ pMedScint

TGeoMedium* pMedScint = nullptr

Definition at line 66 of file create_rootgeom_HGND_run9.C.

◆ pMedVacuum

TGeoMedium* pMedVacuum = nullptr

Definition at line 63 of file create_rootgeom_HGND_run9.C.