FairRoot/PandaRoot
Functions | Variables
createJuelichSetup1.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
 
const Double_t offs1x = 0.
 
const Double_t offs1y = 0.
 
const Double_t offs2x = 0.
 
const Double_t offs2y = 0.
 
const Double_t offs3x = -0.1698
 
const Double_t offs3y = -0.1658
 
const Double_t offs4x = -0.0366
 
const Double_t offs4y = -0.1855
 
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(offs1x,offs1y,kPos1)
 
TGeoTranslation * trt2 = new TGeoTranslation(offs2x,offs2y,kPos2)
 
TGeoTranslation * trt3a = new TGeoTranslation(offs3x,offs3y,kPos3 - 0.5*kGap3 - kDz/2.)
 
TGeoTranslation * trt3b = new TGeoTranslation(offs3x,offs3y,kPos3 + 0.5*kGap3 + kDz/2.)
 
TGeoTranslation * trt4a = new TGeoTranslation(offs4x,offs4y,kPos4 - 0.5*kGap4 - kDz/2.)
 
TGeoTranslation * trt4b = new TGeoTranslation(offs4x,offs4y,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 92 of file createJuelichSetup1.C.

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

Definition at line 93 of file createJuelichSetup1.C.

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

Definition at line 94 of file createJuelichSetup1.C.

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

Definition at line 95 of file createJuelichSetup1.C.

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

Definition at line 96 of file createJuelichSetup1.C.

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

Definition at line 97 of file createJuelichSetup1.C.

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

Definition at line 99 of file createJuelichSetup1.C.

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

Definition at line 100 of file createJuelichSetup1.C.

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

Definition at line 101 of file createJuelichSetup1.C.

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

Definition at line 102 of file createJuelichSetup1.C.

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

Definition at line 103 of file createJuelichSetup1.C.

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

Definition at line 104 of file createJuelichSetup1.C.

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

Definition at line 80 of file createJuelichSetup1.C.

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

Definition at line 81 of file createJuelichSetup1.C.

TGeoRotation* dummyrot = new TGeoRotation()

Definition at line 114 of file createJuelichSetup1.C.

FairGeoBuilder* geobuild =geoLoad->getGeoBuilder()

Definition at line 78 of file createJuelichSetup1.C.

FairGeoInterface* geoFace = geoLoad->getGeoInterface()

Definition at line 70 of file createJuelichSetup1.C.

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

Definition at line 69 of file createJuelichSetup1.C.

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

Definition at line 86 of file createJuelichSetup1.C.

const Double_t kDy = 0.96

Definition at line 14 of file createJuelichSetup1.C.

const Double_t kDz = 0.015

Definition at line 15 of file createJuelichSetup1.C.

const Double_t kGap3 = 0.45

Definition at line 36 of file createJuelichSetup1.C.

const Double_t kGap4 = 0.45

Definition at line 37 of file createJuelichSetup1.C.

const Double_t kPos1 = 11.0

Definition at line 24 of file createJuelichSetup1.C.

const Double_t kPos2 = 183.2

Definition at line 25 of file createJuelichSetup1.C.

const Double_t kPos3 = 80.7

Definition at line 31 of file createJuelichSetup1.C.

const Double_t kPos4 = 139.0

Definition at line 32 of file createJuelichSetup1.C.

FairGeoMedia* Media = geoFace->getMedia()

Definition at line 77 of file createJuelichSetup1.C.

Definition at line 83 of file createJuelichSetup1.C.

const Double_t offs1x = 0.

Definition at line 41 of file createJuelichSetup1.C.

const Double_t offs1y = 0.

Definition at line 42 of file createJuelichSetup1.C.

const Double_t offs2x = 0.

Definition at line 44 of file createJuelichSetup1.C.

const Double_t offs2y = 0.

Definition at line 45 of file createJuelichSetup1.C.

const Double_t offs3x = -0.1698

Definition at line 47 of file createJuelichSetup1.C.

const Double_t offs3y = -0.1658

Definition at line 48 of file createJuelichSetup1.C.

const Double_t offs4x = -0.0366

Definition at line 50 of file createJuelichSetup1.C.

const Double_t offs4y = -0.1855

Definition at line 51 of file createJuelichSetup1.C.

TString outfile = "TrackingStation.root"

Definition at line 66 of file createJuelichSetup1.C.

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

Definition at line 115 of file createJuelichSetup1.C.

TGeoVolumeAssembly* SubunitDouble = new TGeoVolumeAssembly("TTDouble")

Definition at line 145 of file createJuelichSetup1.C.

TGeoVolumeAssembly* SubunitSingle = new TGeoVolumeAssembly("TTSingle")

Definition at line 150 of file createJuelichSetup1.C.

TGeoVolumeAssembly* SubunitVol = new TGeoVolumeAssembly("TTVol")

Definition at line 143 of file createJuelichSetup1.C.

TGeoVolume* top = new TGeoVolumeAssembly("TS")

Definition at line 88 of file createJuelichSetup1.C.

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

Definition at line 117 of file createJuelichSetup1.C.

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

Definition at line 121 of file createJuelichSetup1.C.

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

Definition at line 125 of file createJuelichSetup1.C.

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

Definition at line 130 of file createJuelichSetup1.C.

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

Definition at line 134 of file createJuelichSetup1.C.

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

Definition at line 139 of file createJuelichSetup1.C.

TGeoTranslation* trt1 = new TGeoTranslation(offs1x,offs1y,kPos1)

Definition at line 107 of file createJuelichSetup1.C.

TGeoTranslation* trt2 = new TGeoTranslation(offs2x,offs2y,kPos2)

Definition at line 108 of file createJuelichSetup1.C.

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

Definition at line 109 of file createJuelichSetup1.C.

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

Definition at line 110 of file createJuelichSetup1.C.

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

Definition at line 111 of file createJuelichSetup1.C.

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

Definition at line 112 of file createJuelichSetup1.C.