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

Go to the source code of this file.

Functions

void SetEcalPosition (Int_t run, Int_t pos)
TGeoMedium * DefineMedia (FairGeoMedia *geoMedia, FairGeoBuilder *geoBuild, const char *name)
void DefineRequiredMedia (FairGeoMedia *geoMedia, FairGeoBuilder *geoBuild)
void create_rootgeom_ECAL_v2 (Int_t run, Int_t pos)

Variables

Double_t ecalX = -175
Double_t ecalY = 12.4
Double_t ecalZ = 283.1
Double_t rotationAngle = -20
int Xmodules = 24
int Ymodules = 21
int Zlayers = 215
Double_t thickPb = 0.030
Double_t thickSci = 0.15
Double_t thickSteel = 0.2
Double_t thickPaint = 0.0075
Double_t thickPbSciPaint = thickPaint + thickPb + thickPaint + thickSci
Double_t modwidth = 4
Double_t modheight = 4
Double_t modlength = thickSteel + thickPbSciPaint * Zlayers
struct { 
   TGeoMedium *   vacuum = 0 
   TGeoMedium *   air = 0 
   TGeoMedium *   iron = 0 
   TGeoMedium *   lead = 0 
   TGeoMedium *   scint = 0 
   TGeoMedium *   steel = 0 
   TGeoMedium *   tyvec = 0 
   TGeoMedium *   slot = 0 
   TGeoMedium *   TiO2 = 0 
} mMed

Function Documentation

◆ create_rootgeom_ECAL_v2()

void create_rootgeom_ECAL_v2 ( Int_t run,
Int_t pos )
Parameters
[in]runBMN run number (only run 7 is currently supported)
[in]posECAL position in the run (five positions for run 7 are defined)

Definition at line 134 of file create_rootgeom_ECAL_v2.C.

References TGeoVolume::AddNode(), bmnloadlibs(), TFile::Close(), TString::Data(), DefineRequiredMedia(), ecalX, ecalY, ecalZ, TString::Form(), TString::Format(), TNamed::GetName(), mMed, modheight, modlength, modwidth, TGeoMatrix::Print(), TGeoRotation::RotateY(), rotationAngle, SetEcalPosition(), TGeoVolume::SetMedium(), TGeoVolume::SetVisContainers(), thickPaint, thickPb, thickPbSciPaint, thickSci, thickSteel, TObject::Write(), Xmodules, Ymodules, z, and Zlayers.

Here is the call graph for this function:

◆ DefineMedia()

TGeoMedium * DefineMedia ( FairGeoMedia * geoMedia,
FairGeoBuilder * geoBuild,
const char * name )

Definition at line 101 of file create_rootgeom_ECAL_v2.C.

Referenced by DefineRequiredMedia().

Here is the caller graph for this function:

◆ DefineRequiredMedia()

void DefineRequiredMedia ( FairGeoMedia * geoMedia,
FairGeoBuilder * geoBuild )

Definition at line 113 of file create_rootgeom_ECAL_v2.C.

References DefineMedia(), and mMed.

Referenced by create_rootgeom_ECAL_v2().

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

◆ SetEcalPosition()

void SetEcalPosition ( Int_t run,
Int_t pos )

Definition at line 34 of file create_rootgeom_ECAL_v2.C.

References ecalX, ecalY, ecalZ, and rotationAngle.

Referenced by create_rootgeom_ECAL_v2().

Here is the caller graph for this function:

Variable Documentation

◆ air

TGeoMedium* air = 0

Definition at line 91 of file create_rootgeom_ECAL_v2.C.

Referenced by create_rootgeom_SSD_v17a(), and createEcalGeo1().

◆ ecalX

Double_t ecalX = -175

Definition at line 29 of file create_rootgeom_ECAL_v2.C.

◆ ecalY

Double_t ecalY = 12.4

Definition at line 30 of file create_rootgeom_ECAL_v2.C.

◆ ecalZ

Double_t ecalZ = 283.1

Definition at line 31 of file create_rootgeom_ECAL_v2.C.

◆ iron

TGeoMedium* iron = 0

Definition at line 92 of file create_rootgeom_ECAL_v2.C.

◆ lead

◆ [struct]

◆ modheight

Double_t modheight = 4

Definition at line 84 of file create_rootgeom_ECAL_v2.C.

◆ modlength

Definition at line 85 of file create_rootgeom_ECAL_v2.C.

◆ modwidth

Double_t modwidth = 4

Definition at line 83 of file create_rootgeom_ECAL_v2.C.

◆ rotationAngle

Double_t rotationAngle = -20

Definition at line 32 of file create_rootgeom_ECAL_v2.C.

◆ scint

TGeoMedium* scint = 0

Definition at line 94 of file create_rootgeom_ECAL_v2.C.

Referenced by create_geom_bmnecal().

◆ slot

TGeoMedium* slot = 0

Definition at line 97 of file create_rootgeom_ECAL_v2.C.

◆ steel

TGeoMedium* steel = 0

Definition at line 95 of file create_rootgeom_ECAL_v2.C.

◆ thickPaint

Double_t thickPaint = 0.0075

Definition at line 81 of file create_rootgeom_ECAL_v2.C.

◆ thickPb

Double_t thickPb = 0.030

Definition at line 78 of file create_rootgeom_ECAL_v2.C.

◆ thickPbSciPaint

Double_t thickPbSciPaint = thickPaint + thickPb + thickPaint + thickSci

Definition at line 82 of file create_rootgeom_ECAL_v2.C.

◆ thickSci

Double_t thickSci = 0.15

Definition at line 79 of file create_rootgeom_ECAL_v2.C.

◆ thickSteel

Double_t thickSteel = 0.2

Definition at line 80 of file create_rootgeom_ECAL_v2.C.

◆ TiO2

TGeoMedium* TiO2 = 0

Definition at line 98 of file create_rootgeom_ECAL_v2.C.

◆ tyvec

TGeoMedium* tyvec = 0

Definition at line 96 of file create_rootgeom_ECAL_v2.C.

◆ vacuum

TGeoMedium* vacuum = 0

Definition at line 90 of file create_rootgeom_ECAL_v2.C.

◆ Xmodules

int Xmodules = 24

Definition at line 75 of file create_rootgeom_ECAL_v2.C.

◆ Ymodules

int Ymodules = 21

Definition at line 76 of file create_rootgeom_ECAL_v2.C.

◆ Zlayers

int Zlayers = 215

Definition at line 77 of file create_rootgeom_ECAL_v2.C.