FairRoot/PandaRoot
Functions | Variables
createGeoJuelichSetup1.C File Reference

Go to the source code of this file.

Functions

gROOT Macro ("$VMCWORKDIR/gconfig/rootlogon.C")
 
gSystem Load ("libGeoBase")
 
gSystem Load ("libParBase")
 
gSystem Load ("libBase")
 
gSystem Load ("libPndData")
 
gSystem Load ("libPassive")
 
geoFace setMediaFile ("../../../geometry/media_pnd.geo")
 
geoFace readMedia ()
 
geoFace print ()
 
gGeoMan SetTopVolume (top)
 
trc1 SetName ("Sensor1")
 
trc1 RegisterYourself ()
 
trc2 SetName ("Sensor2")
 
trc3a SetName ("Sensor3a")
 
trc3b SetName ("Sensor3b")
 
trc4a SetName ("Sensor4a")
 
trc4b SetName ("Sensor4b")
 
SubunitDouble AddNode (BoxVolDouble1, 0, trc1)
 
SubunitDouble AddNode (BoxVolDouble2, 0, trc2)
 
SubunitSingle AddNode (BoxVolSingle3a, 0, trc3a)
 
SubunitSingle AddNode (BoxVolSingle3b, 0, trc3b)
 
SubunitSingle AddNode (BoxVolSingle4a, 0, trc4a)
 
SubunitSingle AddNode (BoxVolSingle4b, 0, trc4b)
 
SubunitVol AddNode (SubunitDouble, 0, new TGeoCombiTrans())
 
SubunitVol AddNode (SubunitSingle, 0, new TGeoCombiTrans())
 
top AddNode (SubunitVol, 0, new TGeoCombiTrans())
 
gGeoMan CloseGeometry ()
 
gGeoMan Export (outfile.Data())
 

Variables

const Double_t kDy = 0.96
 
const Double_t kDz = 0.015
 
const Double_t kPos1 = 11.0
 
const Double_t kPos2 = 183.2
 
const Double_t kPos3 = 80.7
 
const Double_t kPos4 = 139.0
 
const Double_t kGap3 = 0.45
 
const Double_t kGap4 = 0.45
 
TString outfile = "TrackingStation.root"
 
FairGeoLoader * geoLoad = new FairGeoLoader("TGeo","FairGeoLoader")
 
FairGeoInterface * geoFace = geoLoad->getGeoInterface()
 
FairGeoMedia * Media = geoFace->getMedia()
 
FairGeoBuilder * geobuild =geoLoad->getGeoBuilder()
 
FairGeoMedium * CbmMediumAir = Media->getMedium("air")
 
FairGeoMedium * CbmMediumSilicon = Media->getMedium("silicon")
 
Int_t nmed =geobuild->createMedium(CbmMediumAir)
 
TGeoManager * gGeoMan = (TGeoManager*)gROOT->FindObject("FAIRGeom")
 
TGeoVolume * top = new TGeoVolumeAssembly("TS")
 
TGeoShape * BoxDouble1 = new TGeoBBox("StripActiveTD1", kDx, kDy, kDz)
 
TGeoShape * BoxDouble2 = new TGeoBBox("StripActiveTD2", kDx, kDy, kDz)
 
TGeoShape * BoxSingle1 = new TGeoBBox("StripActiveTS1", kDx, kDy, kDz)
 
TGeoShape * BoxSingle2 = new TGeoBBox("StripActiveTS2", kDx, kDy, kDz)
 
TGeoShape * BoxSingle3 = new TGeoBBox("StripActiveTS3", kDx, kDy, kDz)
 
TGeoShape * BoxSingle4 = new TGeoBBox("StripActiveTS4", kDx, kDy, kDz)
 
TGeoVolume * BoxVolDouble1 = new TGeoVolume("StripActiveTD1",BoxDouble1,gGeoMan->GetMedium("silicon"))
 
TGeoVolume * BoxVolDouble2 = new TGeoVolume("StripActiveTD2",BoxDouble2,gGeoMan->GetMedium("silicon"))
 
TGeoVolume * BoxVolSingle3a = new TGeoVolume("StripActiveTS3a",BoxSingle1,gGeoMan->GetMedium("silicon"))
 
TGeoVolume * BoxVolSingle3b = new TGeoVolume("StripActiveTS3b",BoxSingle2,gGeoMan->GetMedium("silicon"))
 
TGeoVolume * BoxVolSingle4a = new TGeoVolume("StripActiveTS4a",BoxSingle3,gGeoMan->GetMedium("silicon"))
 
TGeoVolume * BoxVolSingle4b = new TGeoVolume("StripActiveTS4b",BoxSingle4,gGeoMan->GetMedium("silicon"))
 
TGeoTranslation * trt1 = new TGeoTranslation(0.,0.,kPos1)
 
TGeoTranslation * trt2 = new TGeoTranslation(0.,0.,kPos2)
 
TGeoTranslation * trt3a = new TGeoTranslation(0.,0.,kPos3 - 0.5*kGap3 - kDz/2.)
 
TGeoTranslation * trt3b = new TGeoTranslation(0.,0.,kPos3 + 0.5*kGap3 + kDz/2.)
 
TGeoTranslation * trt4a = new TGeoTranslation(0.,0.,kPos4 - 0.5*kGap4 - kDz/2.)
 
TGeoTranslation * trt4b = new TGeoTranslation(0.,0.,kPos4 + 0.5*kGap4 + kDz/2.)
 
TGeoRotation * dummyrot = new TGeoRotation()
 
TGeoRotation * rot1 = new TGeoRotation("",90.,0.,0.)
 
TGeoCombiTrans * trc1 = new TGeoCombiTrans(*trt1,*dummyrot)
 
TGeoCombiTrans * trc2 = new TGeoCombiTrans(*trt2,*dummyrot)
 
TGeoCombiTrans * trc3a = new TGeoCombiTrans(*trt3a,*dummyrot)
 
TGeoCombiTrans * trc3b = new TGeoCombiTrans(*trt3b,*rot1)
 
TGeoCombiTrans * trc4a = new TGeoCombiTrans(*trt4a,*dummyrot)
 
TGeoCombiTrans * trc4b = new TGeoCombiTrans(*trt4b,*rot1)
 
TGeoVolumeAssembly * SubunitVol = new TGeoVolumeAssembly("TTVol")
 
TGeoVolumeAssembly * SubunitDouble = new TGeoVolumeAssembly("TTDouble")
 
TGeoVolumeAssembly * SubunitSingle = new TGeoVolumeAssembly("TTSingle")
 

Function Documentation

SubunitDouble AddNode ( BoxVolDouble1  ,
,
trc1   
)
SubunitDouble AddNode ( BoxVolDouble2  ,
,
trc2   
)
SubunitSingle AddNode ( BoxVolSingle3a  ,
,
trc3a   
)
SubunitSingle AddNode ( BoxVolSingle3b  ,
,
trc3b   
)
SubunitSingle AddNode ( BoxVolSingle4a  ,
,
trc4a   
)
SubunitSingle AddNode ( BoxVolSingle4b  ,
,
trc4b   
)
SubunitVol AddNode ( SubunitDouble  ,
,
new   TGeoCombiTrans() 
)
SubunitVol AddNode ( SubunitSingle  ,
,
new   TGeoCombiTrans() 
)
top AddNode ( SubunitVol  ,
,
new   TGeoCombiTrans() 
)
gGeoMan CloseGeometry ( )
gGeoMan Export ( outfile.  Data())
gSystem Load ( "libGeoBase"  )
gSystem Load ( "libParBase"  )
gSystem Load ( "libBase"  )
gSystem Load ( "libPndData"  )
gSystem Load ( "libPassive"  )
gROOT Macro ( "$VMCWORKDIR/gconfig/rootlogon.C )
geoFace readMedia ( )
trc1 RegisterYourself ( )
geoFace setMediaFile ( "../../../geometry/media_pnd.geo"  )
trc1 SetName ( "Sensor1"  )
trc2 SetName ( "Sensor2"  )
trc3a SetName ( "Sensor3a"  )
trc3b SetName ( "Sensor3b"  )
trc4a SetName ( "Sensor4a"  )
trc4b SetName ( "Sensor4b"  )
gGeoMan SetTopVolume ( top  )

Variable Documentation

TGeoShape* BoxDouble1 = new TGeoBBox("StripActiveTD1", kDx, kDy, kDz)

Definition at line 78 of file createGeoJuelichSetup1.C.

TGeoShape* BoxDouble2 = new TGeoBBox("StripActiveTD2", kDx, kDy, kDz)

Definition at line 79 of file createGeoJuelichSetup1.C.

TGeoShape* BoxSingle1 = new TGeoBBox("StripActiveTS1", kDx, kDy, kDz)

Definition at line 80 of file createGeoJuelichSetup1.C.

TGeoShape* BoxSingle2 = new TGeoBBox("StripActiveTS2", kDx, kDy, kDz)

Definition at line 81 of file createGeoJuelichSetup1.C.

TGeoShape* BoxSingle3 = new TGeoBBox("StripActiveTS3", kDx, kDy, kDz)

Definition at line 82 of file createGeoJuelichSetup1.C.

TGeoShape* BoxSingle4 = new TGeoBBox("StripActiveTS4", kDx, kDy, kDz)

Definition at line 83 of file createGeoJuelichSetup1.C.

TGeoVolume* BoxVolDouble1 = new TGeoVolume("StripActiveTD1",BoxDouble1,gGeoMan->GetMedium("silicon"))

Definition at line 85 of file createGeoJuelichSetup1.C.

TGeoVolume* BoxVolDouble2 = new TGeoVolume("StripActiveTD2",BoxDouble2,gGeoMan->GetMedium("silicon"))

Definition at line 86 of file createGeoJuelichSetup1.C.

TGeoVolume* BoxVolSingle3a = new TGeoVolume("StripActiveTS3a",BoxSingle1,gGeoMan->GetMedium("silicon"))

Definition at line 87 of file createGeoJuelichSetup1.C.

TGeoVolume* BoxVolSingle3b = new TGeoVolume("StripActiveTS3b",BoxSingle2,gGeoMan->GetMedium("silicon"))

Definition at line 88 of file createGeoJuelichSetup1.C.

TGeoVolume* BoxVolSingle4a = new TGeoVolume("StripActiveTS4a",BoxSingle3,gGeoMan->GetMedium("silicon"))

Definition at line 89 of file createGeoJuelichSetup1.C.

TGeoVolume* BoxVolSingle4b = new TGeoVolume("StripActiveTS4b",BoxSingle4,gGeoMan->GetMedium("silicon"))

Definition at line 90 of file createGeoJuelichSetup1.C.

FairGeoMedium* CbmMediumAir = Media->getMedium("air")

Definition at line 66 of file createGeoJuelichSetup1.C.

FairGeoMedium* CbmMediumSilicon = Media->getMedium("silicon")

Definition at line 67 of file createGeoJuelichSetup1.C.

TGeoRotation* dummyrot = new TGeoRotation()

Definition at line 100 of file createGeoJuelichSetup1.C.

FairGeoBuilder* geobuild =geoLoad->getGeoBuilder()

Definition at line 64 of file createGeoJuelichSetup1.C.

FairGeoInterface* geoFace = geoLoad->getGeoInterface()

Definition at line 56 of file createGeoJuelichSetup1.C.

FairGeoLoader* geoLoad = new FairGeoLoader("TGeo","FairGeoLoader")

Definition at line 55 of file createGeoJuelichSetup1.C.

TGeoManager* gGeoMan = (TGeoManager*)gROOT->FindObject("FAIRGeom")

Definition at line 72 of file createGeoJuelichSetup1.C.

const Double_t kDy = 0.96

Definition at line 14 of file createGeoJuelichSetup1.C.

const Double_t kDz = 0.015

Definition at line 15 of file createGeoJuelichSetup1.C.

const Double_t kGap3 = 0.45

Definition at line 36 of file createGeoJuelichSetup1.C.

const Double_t kGap4 = 0.45

Definition at line 37 of file createGeoJuelichSetup1.C.

const Double_t kPos1 = 11.0

Definition at line 24 of file createGeoJuelichSetup1.C.

const Double_t kPos2 = 183.2

Definition at line 25 of file createGeoJuelichSetup1.C.

const Double_t kPos3 = 80.7

Definition at line 31 of file createGeoJuelichSetup1.C.

const Double_t kPos4 = 139.0

Definition at line 32 of file createGeoJuelichSetup1.C.

FairGeoMedia* Media = geoFace->getMedia()

Definition at line 63 of file createGeoJuelichSetup1.C.

Definition at line 69 of file createGeoJuelichSetup1.C.

TString outfile = "TrackingStation.root"

Definition at line 52 of file createGeoJuelichSetup1.C.

TGeoRotation* rot1 = new TGeoRotation("",90.,0.,0.)

Definition at line 101 of file createGeoJuelichSetup1.C.

TGeoVolumeAssembly* SubunitDouble = new TGeoVolumeAssembly("TTDouble")

Definition at line 131 of file createGeoJuelichSetup1.C.

TGeoVolumeAssembly* SubunitSingle = new TGeoVolumeAssembly("TTSingle")

Definition at line 136 of file createGeoJuelichSetup1.C.

TGeoVolumeAssembly* SubunitVol = new TGeoVolumeAssembly("TTVol")

Definition at line 129 of file createGeoJuelichSetup1.C.

TGeoVolume* top = new TGeoVolumeAssembly("TS")

Definition at line 74 of file createGeoJuelichSetup1.C.

TGeoCombiTrans* trc1 = new TGeoCombiTrans(*trt1,*dummyrot)

Definition at line 103 of file createGeoJuelichSetup1.C.

TGeoCombiTrans* trc2 = new TGeoCombiTrans(*trt2,*dummyrot)

Definition at line 107 of file createGeoJuelichSetup1.C.

TGeoCombiTrans* trc3a = new TGeoCombiTrans(*trt3a,*dummyrot)

Definition at line 111 of file createGeoJuelichSetup1.C.

TGeoCombiTrans* trc3b = new TGeoCombiTrans(*trt3b,*rot1)

Definition at line 116 of file createGeoJuelichSetup1.C.

TGeoCombiTrans* trc4a = new TGeoCombiTrans(*trt4a,*dummyrot)

Definition at line 120 of file createGeoJuelichSetup1.C.

TGeoCombiTrans* trc4b = new TGeoCombiTrans(*trt4b,*rot1)

Definition at line 125 of file createGeoJuelichSetup1.C.

TGeoTranslation* trt1 = new TGeoTranslation(0.,0.,kPos1)

Definition at line 93 of file createGeoJuelichSetup1.C.

TGeoTranslation* trt2 = new TGeoTranslation(0.,0.,kPos2)

Definition at line 94 of file createGeoJuelichSetup1.C.

TGeoTranslation* trt3a = new TGeoTranslation(0.,0.,kPos3 - 0.5*kGap3 - kDz/2.)

Definition at line 95 of file createGeoJuelichSetup1.C.

TGeoTranslation* trt3b = new TGeoTranslation(0.,0.,kPos3 + 0.5*kGap3 + kDz/2.)

Definition at line 96 of file createGeoJuelichSetup1.C.

TGeoTranslation* trt4a = new TGeoTranslation(0.,0.,kPos4 - 0.5*kGap4 - kDz/2.)

Definition at line 97 of file createGeoJuelichSetup1.C.

TGeoTranslation* trt4b = new TGeoTranslation(0.,0.,kPos4 + 0.5*kGap4 + kDz/2.)

Definition at line 98 of file createGeoJuelichSetup1.C.