FairRoot/PandaRoot
Functions | Variables
createRootGeoFileBwEnd_Str24.4.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 ("/home/dkhaneft/Programs/PANDAroot/trunk/geometry/media_pnd.geo")
 
geoFace readMedia ()
 
geoFace print ()
 
gGeoMan SetTopVolume (top)
 
SubunitVol9 AddNode (BoxVol5, b, trrotBox)
 
 if (b==1)
 
CrystalVol SetLineColor (4)
 
 for (Int_t k=0;k< kNumOfCrystals;k++)
 
trrotQuar SetName (name)
 
trrotQuar RegisterYourself ()
 
trrotQuar ReflectX (1)
 
top AddNode (QuarterVol, 1, trrotQuar)
 
 for (Int_t q=1;q<=3;q++)
 
gGeoMan CloseGeometry ()
 
top Write ()
 
fi Close ()
 
gGeoManager Export (outfile)
 
top Draw ()
 
gGeoManager SetVisLevel (10)
 

Variables

const Double_t kHeight = 2.44
 
const Double_t kLength = 10.0
 
const Double_t kSizeOfCrys = 2.44
 
const Double_t kAlveoleThickness = 0.02
 
const Double_t kGluedAlveoleThickness = 0.04
 
const Double_t kCrystalCrystal = 0.06
 
const Double_t kAlveoleAlveole = 0.08
 
const Double_t kCrystalAlveole = 0.024
 
const Int_t kNumOfQuarters = 4
 
const Int_t kNumOfSubunit = 4
 
const Int_t kNumOfBoxes4InSubunit = 4
 
const Int_t kNumOfBoxes4 = 12
 
const Int_t kNumOfBoxes2 = 10
 
const Int_t kNumOfBoxes1 = 3
 
const Int_t kNumOfCrystalsInBox4 = 4
 
const Int_t kNumOfCrystalsInBox2 = 2
 
Double_t sizeOfBox1 = kWidth + 2*kAlveoleThickness + 2*kCrystalAlveole
 
Double_t sizeOfBox2 = 2*kWidth + 2*kAlveoleThickness + 2*kCrystalAlveole + kCrystalCrystal
 
Double_t sizeOfBox4 = sizeOfBox2
 
Double_t sizeOfSubunit = 2*sizeOfBox4
 
const Int_t kNumOfBoxes = 4
 
const Int_t kNumOfCrystals = 4
 
TString outfile = "./emc_module4_StraightGeo24.4.root"
 
TFile * fi = new TFile(outfile,"RECREATE")
 
FairGeoLoader * geoLoad = new FairGeoLoader("TGeo","FairGeoLoader")
 
FairGeoInterface * geoFace = geoLoad->getGeoInterface()
 
FairGeoMedia * Media = geoFace->getMedia()
 
FairGeoBuilder * geobuild =geoLoad->getGeoBuilder()
 
FairGeoMedium * CbmMediumAir = Media->getMedium("air")
 
FairGeoMedium * CbmMediumPWO = Media->getMedium("PWO")
 
FairGeoMedium * CbmMediumCarbon = Media->getMedium("carbon")
 
FairGeoMedium * CbmMediumAluminium = Media->getMedium("aluminium")
 
Int_t nmed =geobuild->createMedium(CbmMediumAir)
 
TGeoManager * gGeoMan = (TGeoManager*)gROOT->FindObject("FAIRGeom")
 
Double_t sizeOfQuar = 37.644
 
TGeoVolume * top = new TGeoVolumeAssembly("Emc4")
 
TGeoTranslation trQuar = new TGeoTranslation(0.,0.,0.)
 
TGeoTranslation trSub
 
TGeoTranslation trBox
 
TGeoTranslation trCrystal
 
TGeoRotation rotQuar = new TGeoRotation()
 
TGeoRotation rotSub
 
TGeoRotation rotBox
 
TGeoRotation rotCrystal
 
TGeoShape * QuarterShape
 
TGeoShape * SubunitShape
 
TGeoShape * BoxShape
 
TGeoShape * CrystalShape = new TGeoBBox(name,0.5*kWidth,0.5*kHeight,kLength,0)
 
TGeoVolume * QuarterVol
 
TGeoVolume * SubunitVol
 
TGeoVolume * SubunitVol1
 
TGeoVolume * SubunitVol2
 
TGeoVolume * SubunitVol3
 
TGeoVolume * SubunitVol4
 
TGeoVolume * SubunitVol5
 
TGeoVolume * SubunitVol6
 
TGeoVolume * SubunitVol7
 
TGeoVolume * SubunitVol8
 
TGeoVolume * SubunitVol9
 
TGeoVolume * BoxVol
 
TGeoVolume * BoxVol1
 
TGeoVolume * BoxVol2
 
TGeoVolume * BoxVol3
 
TGeoVolume * BoxVol4
 
TGeoVolume * BoxVol5
 
TGeoVolume * BoxVol6
 
TGeoVolume * CrystalVol = new TGeoVolume(name,CrystalShape,gGeoMan->GetMedium(medium))
 
TString name = "CrystalShape"
 
TString name1
 
TString name2
 
TString name3
 
TString name4
 
TString name5
 
TString name6
 
TString name7
 
TString name8
 
TString name9
 
cout
<< "-----------------------------------------------> Quarter
VOLUME<<endl;name="QuarterShape";QuarterShape=newTGeoBBox(name,sizeOfQuar*0.5,sizeOfQuar*0.5,10.5,0);name="QuarterNewVol";TStringmedium="air";QuarterVol=newTGeoVolumeAssembly(name);name="SubunitShape";SubunitShape=newTGeoBBox(name,2*kWidth+2*kAlveoleThickness+kCrystalCrystal+2*kCrystalAlveole,2*kHeight+2*kAlveoleThickness+kCrystalCrystal+2*kCrystalAlveole,kLength,0);TStringmedium="air";name="SubunitVol";name1="SubunitVol1";name2="SubunitVol2";name3="SubunitVol3";name4="SubunitVol4";name5="SubunitVol5";name6="SubunitVol6";name7="SubunitVol7";name8="SubunitVol8";name9="SubunitVol9";SubunitVol=newTGeoVolumeAssembly(name);SubunitVol1=newTGeoVolumeAssembly(name1);SubunitVol2=newTGeoVolumeAssembly(name2);SubunitVol3=newTGeoVolumeAssembly(name3);SubunitVol4=newTGeoVolumeAssembly(name4);SubunitVol5=newTGeoVolumeAssembly(name5);SubunitVol6=newTGeoVolumeAssembly(name6);SubunitVol7=newTGeoVolumeAssembly(name7);SubunitVol8=newTGeoVolumeAssembly(name8);SubunitVol9=newTGeoVolumeAssembly(name9);name="BoxShape";BoxShape=newTGeoBBox(name,kWidth+kAlveoleThickness+0.5*kCrystalCrystal+kCrystalAlveole,kHeight+kAlveoleThickness+0.5*kCrystalCrystal+kCrystalAlveole,kLength,0);TStringmedium="air";name="BoxVol";BoxVol=newTGeoVolumeAssembly(name);name1="BoxVol1";name2="BoxVol2";name3="BoxVol3";name4="BoxVol4";name5="BoxVol5";name6="BoxVol6";BoxVol1=newTGeoVolumeAssembly(name1);BoxVol2=newTGeoVolumeAssembly(name2);BoxVol3=newTGeoVolumeAssembly(name3);BoxVol4=newTGeoVolumeAssembly(name4);BoxVol5=newTGeoVolumeAssembly(name5);BoxVol6=newTGeoVolumeAssembly(name6);for(Int_tb=0;b
<kNumOfBoxes;b++){cout
<<""<<endl;cout
<<"---------------->BOXnumber:"
<<b<<endl;if(b==0){trBox=newTGeoTranslation(kSizeOfCrys+kAlveoleThickness+0.5*kCrystalCrystal+kCrystalAlveole,kSizeOfCrys+kAlveoleThickness+0.5*kCrystalCrystal+kCrystalAlveole,0.);rotBox=newTGeoRotation();rotBox.RotateX(0.);rotBox.RotateY(0.);}if(b==1){trBox=newTGeoTranslation(-kSizeOfCrys-kAlveoleThickness-0.5*kCrystalCrystal-kCrystalAlveole,-kSizeOfCrys-kAlveoleThickness-0.5*kCrystalCrystal-kCrystalAlveole,0.);rotBox=newTGeoRotation();rotBox.RotateX(0.);rotBox.RotateY(0.);}if(b==2){trBox=newTGeoTranslation(kSizeOfCrys+kAlveoleThickness+0.5*kCrystalCrystal+kCrystalAlveole,-kSizeOfCrys-kAlveoleThickness-0.5*kCrystalCrystal-kCrystalAlveole,0.);rotBox=newTGeoRotation();rotBox.RotateX(0.);rotBox.RotateY(0.);}if(b==3){trBox=newTGeoTranslation(-kSizeOfCrys-kAlveoleThickness-0.5*kCrystalCrystal-kCrystalAlveole,kSizeOfCrys+kAlveoleThickness+0.5*kCrystalCrystal+kCrystalAlveole,0.);rotBox=newTGeoRotation();rotBox.RotateX(0.);rotBox.RotateY(0.);}TGeoCombiTrans*trrotBox=newTGeoCombiTrans(trBox,rotBox);name="BoxVol";name+=b;trrotBox->
SetName(name);trrotBox->
RegisterYourself();SubunitVol->
AddNode(BoxVol,b,trrotBox);if(b==0){name+=b;trrotBox->
SetName(name);trrotBox->
RegisterYourself();SubunitVol1->
AddNode(BoxVol1,b,trrotBox);SubunitVol4->
AddNode(BoxVol2,b,trrotBox);SubunitVol6->
AddNode(BoxVol6,b,trrotBox);SubunitVol7->
AddNode(BoxVol4,b,trrotBox);SubunitVol8-> 
AddNode (BoxVol, b, trrotBox)
 
TString medium ="PWO"
 
Int_t jj =0
 
TGeoCombiTrans * trrotQuar = new TGeoCombiTrans(trQuar,rotQuar)
 

Function Documentation

SubunitVol9 AddNode ( BoxVol5  ,
b  ,
trrotBox   
)
top AddNode ( QuarterVol  ,
,
trrotQuar   
)
fi Close ( )
gGeoMan CloseGeometry ( )
top Draw ( )

Definition at line 64 of file NHitsPerEvent.C.

64  {
65 
66  std::cout << "mvdHitArray: " << mvdHitArray->GetEntries() << " projectedHitArray " << mvdProjectedArray->GetEntries() << std::endl;
67 
68 // gHitPoints->Clear();
71  //if (gHitPoints->GetN() != x.size()) gHitPoints->Expand(x.size());
72 
73  std::cout << "NHits: " << gHitPoints->GetN() << std::endl;
74  gHitPoints->Draw("apl");
75  gProjections->Draw("pl");
76 }
void ExtractData(TClonesArray *array, TGraph *g)
Definition: NHitsPerEvent.C:78
TGraph * gHitPoints
Definition: NHitsPerEvent.C:15
TClonesArray * mvdHitArray
Definition: NHitsPerEvent.C:12
TClonesArray * mvdProjectedArray
Definition: NHitsPerEvent.C:13
TGraph * gProjections
Definition: NHitsPerEvent.C:16
gGeoManager Export ( outfile  )
for ( )

Definition at line 294 of file createRootGeoFileBwEnd_Str24.4.C.

294  {
295  cout << " " << endl;
296  cout << " -----> CRYSTAL number: "<< k << endl;
297  if (k==0){
298  trCrystal = new TGeoTranslation(kSizeOfCrys/2. + 0.5*kCrystalCrystal,kSizeOfCrys/2. + 0.5*kCrystalCrystal,0.);
299  rotCrystal = new TGeoRotation(); // "right-upper" Crystal
300  }else if (k==1){
301  trCrystal= new TGeoTranslation(-kSizeOfCrys/2. - 0.5*kCrystalCrystal,-kSizeOfCrys/2. - 0.5*kCrystalCrystal,0.);
302  rotCrystal = new TGeoRotation(); // "left-lower" Crystal
303  rotCrystal.RotateZ(180.);
304  }else if (k==2){
305  trCrystal= new TGeoTranslation(-kSizeOfCrys/2. - 0.5*kCrystalCrystal,kSizeOfCrys/2. + 0.5*kCrystalCrystal,0.);
306  rotCrystal = new TGeoRotation(); // "left-upper" Crystal
307  rotCrystal.RotateZ(90.);
308  }else if (k==3){
309  trCrystal= new TGeoTranslation(kSizeOfCrys/2. + 0.5*kCrystalCrystal,-kSizeOfCrys/2. - 0.5*kCrystalCrystal,0.);
310  rotCrystal = new TGeoRotation(); // "right-lower" Crystal
311  rotCrystal.RotateZ(270.);
312  }
313 
314  TGeoCombiTrans* trrotCrystal= new TGeoCombiTrans(trCrystal,rotCrystal);
315 
316  name = "CrystalVol";
317  name+=k;
318  trrotCrystal->SetName(name);
319  trrotCrystal->RegisterYourself();
320 
321  BoxVol->AddNode(CrystalVol,k,trrotCrystal);
322 
323  if (k==0) {
324  name+=k;
325  trrotCrystal->SetName(name);
326  trrotCrystal->RegisterYourself();
327 
328  BoxVol4->AddNode(CrystalVol,k,trrotCrystal);
329  BoxVol5->AddNode(CrystalVol,k,trrotCrystal);
330  }
331  if (k==1) {
332  name+=k;
333  trrotCrystal->SetName(name);
334  trrotCrystal->RegisterYourself();
335 
336  BoxVol1->AddNode(CrystalVol,k,trrotCrystal);
337  BoxVol2->AddNode(CrystalVol,k,trrotCrystal);
338  BoxVol3->AddNode(CrystalVol,k,trrotCrystal);
339  BoxVol6->AddNode(CrystalVol,k,trrotCrystal);
340  }
341  if (k==2) {
342  name+=k;
343  trrotCrystal->SetName(name);
344  trrotCrystal->RegisterYourself();
345 
346  BoxVol3->AddNode(CrystalVol,k,trrotCrystal);
347  BoxVol4->AddNode(CrystalVol,k,trrotCrystal);
348  BoxVol6->AddNode(CrystalVol,k,trrotCrystal);
349  }
350  if (k==3) {
351  name+=k;
352  trrotCrystal->SetName(name);
353  trrotCrystal->RegisterYourself();
354 
355  BoxVol1->AddNode(CrystalVol,k,trrotCrystal);
356  BoxVol3->AddNode(CrystalVol,k,trrotCrystal);
357  BoxVol5->AddNode(CrystalVol,k,trrotCrystal);
358  }
359  }
TGeoVolume * BoxVol3
TGeoTranslation trCrystal
TGeoVolume * BoxVol5
const Double_t kSizeOfCrys
const Double_t kCrystalCrystal
TGeoVolume * BoxVol1
TGeoVolume * BoxVol4
TGeoVolume * BoxVol
TString name
TGeoVolume * CrystalVol
TGeoRotation rotCrystal
TGeoVolume * BoxVol2
TGeoVolume * BoxVol6
for ( Int_t  q = 1; q<=3; q++)

Definition at line 438 of file createRootGeoFileBwEnd_Str24.4.C.

References reflection.

438  {
439  TGeoCombiTrans reflection;
440  TGeoTranslation ttt;
441 
442  if (q==1){ // second copy: -X -Y
443  reflection.ReflectY(1); // right-lower Quarter
444  reflection.ReflectX(1);
445  ttt = new TGeoTranslation(0.,0.,0.);//-0.5*sizeOfQuar,-0.5*sizeOfQuar,0.);
446  }
447  if (q==2){ // third copy: +X -Y
448  reflection.ReflectY(1); // left-lower Quarter
449  reflection.ReflectX(1);
450  reflection.ReflectX(1);
451  ttt = new TGeoTranslation(0.,0.,0.);//0.5*sizeOfQuar,-0.5*sizeOfQuar,0.);
452  }
453  if (q==3){ // fourth copy: +X +Y
454  reflection.ReflectX(1); // left-upper Quarter
455  reflection.ReflectX(1);
456  ttt = new TGeoTranslation(0.,0.,0.);//0.5*sizeOfQuar,0.5*sizeOfQuar,0.);
457  }
458 
459  top->AddNode(QuarterVol,q+1,new TGeoCombiTrans(ttt,reflection));
460  }
TGeoVolume * QuarterVol
TGeoVolume * top
TGeoCombiTrans reflection
if ( b  = =1)

Definition at line 245 of file createRootGeoFileBwEnd_Str24.4.C.

References b.

245  {
246  name+=b;
247  trrotBox->SetName(name);
248  trrotBox->RegisterYourself();
249 
250  SubunitVol1->AddNode(BoxVol,b,trrotBox);
251  SubunitVol2->AddNode(BoxVol,b,trrotBox);
252  SubunitVol3->AddNode(BoxVol2,b,trrotBox);
253  SubunitVol4->AddNode(BoxVol,b,trrotBox);
254  SubunitVol5->AddNode(BoxVol,b,trrotBox);
255  SubunitVol6->AddNode(BoxVol,b,trrotBox);
256  }
TGeoVolume * SubunitVol6
TTree * b
TGeoVolume * SubunitVol5
TGeoVolume * BoxVol
TGeoVolume * SubunitVol2
TString name
TGeoVolume * SubunitVol4
TGeoVolume * BoxVol2
TGeoVolume * SubunitVol3
TGeoVolume * SubunitVol1
gSystem Load ( "libGeoBase"  )
gSystem Load ( "libParBase"  )
gSystem Load ( "libBase"  )
gSystem Load ( "libPndData"  )
gSystem Load ( "libPassive"  )
gROOT Macro ( "$VMCWORKDIR/gconfig/rootlogon.C )
geoFace readMedia ( )
trrotQuar ReflectX ( )
trrotQuar RegisterYourself ( )
CrystalVol SetLineColor ( )
geoFace setMediaFile ( "/home/dkhaneft/Programs/PANDAroot/trunk/geometry/media_pnd.geo"  )
trrotQuar SetName ( name  )
gGeoMan SetTopVolume ( top  )
gGeoManager SetVisLevel ( 10  )
top Write ( )

Variable Documentation

cout<< "-----------------------------------------------> Quarter VOLUME<<endl;name="QuarterShape";QuarterShape=newTGeoBBox(name,sizeOfQuar*0.5,sizeOfQuar*0.5,10.5,0);name="QuarterNewVol";TStringmedium="air";QuarterVol=newTGeoVolumeAssembly(name);name="SubunitShape";SubunitShape=newTGeoBBox(name,2*kWidth+2*kAlveoleThickness+kCrystalCrystal+2*kCrystalAlveole,2*kHeight+2*kAlveoleThickness+kCrystalCrystal+2*kCrystalAlveole,kLength,0);TStringmedium="air";name="SubunitVol";name1="SubunitVol1";name2="SubunitVol2";name3="SubunitVol3";name4="SubunitVol4";name5="SubunitVol5";name6="SubunitVol6";name7="SubunitVol7";name8="SubunitVol8";name9="SubunitVol9";SubunitVol=newTGeoVolumeAssembly(name);SubunitVol1=newTGeoVolumeAssembly(name1);SubunitVol2=newTGeoVolumeAssembly(name2);SubunitVol3=newTGeoVolumeAssembly(name3);SubunitVol4=newTGeoVolumeAssembly(name4);SubunitVol5=newTGeoVolumeAssembly(name5);SubunitVol6=newTGeoVolumeAssembly(name6);SubunitVol7=newTGeoVolumeAssembly(name7);SubunitVol8=newTGeoVolumeAssembly(name8);SubunitVol9=newTGeoVolumeAssembly(name9);name="BoxShape";BoxShape=newTGeoBBox(name,kWidth+kAlveoleThickness+0.5*kCrystalCrystal+kCrystalAlveole,kHeight+kAlveoleThickness+0.5*kCrystalCrystal+kCrystalAlveole,kLength,0);TStringmedium="air";name="BoxVol";BoxVol=newTGeoVolumeAssembly(name);name1="BoxVol1";name2="BoxVol2";name3="BoxVol3";name4="BoxVol4";name5="BoxVol5";name6="BoxVol6";BoxVol1=newTGeoVolumeAssembly(name1);BoxVol2=newTGeoVolumeAssembly(name2);BoxVol3=newTGeoVolumeAssembly(name3);BoxVol4=newTGeoVolumeAssembly(name4);BoxVol5=newTGeoVolumeAssembly(name5);BoxVol6=newTGeoVolumeAssembly(name6);for(Int_tb=0;b<kNumOfBoxes;b++){cout<<""<<endl;cout<<"---------------->BOXnumber:"<<b<<endl;if(b==0){trBox=newTGeoTranslation(kSizeOfCrys+kAlveoleThickness+0.5*kCrystalCrystal+kCrystalAlveole,kSizeOfCrys+kAlveoleThickness+0.5*kCrystalCrystal+kCrystalAlveole,0.);rotBox=newTGeoRotation();rotBox.RotateX(0.);rotBox.RotateY(0.);}if(b==1){trBox=newTGeoTranslation(-kSizeOfCrys-kAlveoleThickness-0.5*kCrystalCrystal-kCrystalAlveole,-kSizeOfCrys-kAlveoleThickness-0.5*kCrystalCrystal-kCrystalAlveole,0.);rotBox=newTGeoRotation();rotBox.RotateX(0.);rotBox.RotateY(0.);}if(b==2){trBox=newTGeoTranslation(kSizeOfCrys+kAlveoleThickness+0.5*kCrystalCrystal+kCrystalAlveole,-kSizeOfCrys-kAlveoleThickness-0.5*kCrystalCrystal-kCrystalAlveole,0.);rotBox=newTGeoRotation();rotBox.RotateX(0.);rotBox.RotateY(0.);}if(b==3){trBox=newTGeoTranslation(-kSizeOfCrys-kAlveoleThickness-0.5*kCrystalCrystal-kCrystalAlveole,kSizeOfCrys+kAlveoleThickness+0.5*kCrystalCrystal+kCrystalAlveole,0.);rotBox=newTGeoRotation();rotBox.RotateX(0.);rotBox.RotateY(0.);}TGeoCombiTrans*trrotBox=newTGeoCombiTrans(trBox,rotBox);name="BoxVol";name+=b;trrotBox->SetName(name);trrotBox->RegisterYourself();SubunitVol->AddNode(BoxVol,b,trrotBox);if(b==0){name+=b;trrotBox->SetName(name);trrotBox->RegisterYourself();SubunitVol1->AddNode(BoxVol1,b,trrotBox);SubunitVol4->AddNode(BoxVol2,b,trrotBox);SubunitVol6->AddNode(BoxVol6,b,trrotBox);SubunitVol7->AddNode(BoxVol4,b,trrotBox);SubunitVol8-> AddNode(BoxVol, b, trrotBox)

Definition at line 242 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoShape* BoxShape

Definition at line 92 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* BoxVol

Definition at line 106 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* BoxVol1

Definition at line 107 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* BoxVol2

Definition at line 108 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* BoxVol3

Definition at line 109 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* BoxVol4

Definition at line 110 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

TGeoVolume* BoxVol5

Definition at line 111 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

TGeoVolume* BoxVol6

Definition at line 112 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

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

Definition at line 60 of file createRootGeoFileBwEnd_Str24.4.C.

FairGeoMedium* CbmMediumAluminium = Media->getMedium("aluminium")

Definition at line 63 of file createRootGeoFileBwEnd_Str24.4.C.

FairGeoMedium* CbmMediumCarbon = Media->getMedium("carbon")

Definition at line 62 of file createRootGeoFileBwEnd_Str24.4.C.

FairGeoMedium* CbmMediumPWO = Media->getMedium("PWO")

Definition at line 61 of file createRootGeoFileBwEnd_Str24.4.C.

CrystalShape = new TGeoBBox(name,0.5*kWidth,0.5*kHeight,kLength,0)

Definition at line 93 of file createRootGeoFileBwEnd_Str24.4.C.

CrystalVol = new TGeoVolume(name,CrystalShape,gGeoMan->GetMedium(medium))

Definition at line 113 of file createRootGeoFileBwEnd_Str24.4.C.

TFile* fi = new TFile(outfile,"RECREATE")

Definition at line 49 of file createRootGeoFileBwEnd_Str24.4.C.

FairGeoBuilder* geobuild =geoLoad->getGeoBuilder()

Definition at line 58 of file createRootGeoFileBwEnd_Str24.4.C.

FairGeoInterface* geoFace = geoLoad->getGeoInterface()

Definition at line 52 of file createRootGeoFileBwEnd_Str24.4.C.

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

Definition at line 51 of file createRootGeoFileBwEnd_Str24.4.C.

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

Definition at line 70 of file createRootGeoFileBwEnd_Str24.4.C.

Int_t jj =0

Definition at line 361 of file createRootGeoFileBwEnd_Str24.4.C.

const Double_t kAlveoleAlveole = 0.08

Definition at line 17 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

const Double_t kAlveoleThickness = 0.02

Definition at line 14 of file createRootGeoFileBwEnd_Str24.4.C.

const Double_t kCrystalAlveole = 0.024

Definition at line 18 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

const Double_t kCrystalCrystal = 0.06

Definition at line 16 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

const Double_t kGluedAlveoleThickness = 0.04

Definition at line 15 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

const Double_t kHeight = 2.44

Definition at line 10 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

const Double_t kLength = 10.0

Definition at line 11 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

const Int_t kNumOfBoxes = 4

Definition at line 35 of file createRootGeoFileBwEnd_Str24.4.C.

const Int_t kNumOfBoxes1 = 3

Definition at line 25 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

const Int_t kNumOfBoxes2 = 10

Definition at line 24 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

const Int_t kNumOfBoxes4 = 12

Definition at line 23 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

const Int_t kNumOfBoxes4InSubunit = 4

Definition at line 22 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

const Int_t kNumOfCrystals = 4

Definition at line 36 of file createRootGeoFileBwEnd_Str24.4.C.

const Int_t kNumOfCrystalsInBox2 = 2

Definition at line 27 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

const Int_t kNumOfCrystalsInBox4 = 4

Definition at line 26 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

const Int_t kNumOfQuarters = 4

Definition at line 20 of file createRootGeoFileBwEnd_Str24.4.C.

const Int_t kNumOfSubunit = 4

Definition at line 21 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

const Double_t kSizeOfCrys = 2.44

Definition at line 12 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

FairGeoMedia* Media = geoFace->getMedia()

Definition at line 57 of file createRootGeoFileBwEnd_Str24.4.C.

TString medium ="PWO"

Definition at line 286 of file createRootGeoFileBwEnd_Str24.4.C.

name = "CrystalShape"

Definition at line 115 of file createRootGeoFileBwEnd_Str24.4.C.

TString name1

Definition at line 115 of file createRootGeoFileBwEnd_Str24.4.C.

TString name2

Definition at line 115 of file createRootGeoFileBwEnd_Str24.4.C.

TString name3

Definition at line 115 of file createRootGeoFileBwEnd_Str24.4.C.

TString name4

Definition at line 115 of file createRootGeoFileBwEnd_Str24.4.C.

TString name5

Definition at line 115 of file createRootGeoFileBwEnd_Str24.4.C.

TString name6

Definition at line 115 of file createRootGeoFileBwEnd_Str24.4.C.

TString name7

Definition at line 115 of file createRootGeoFileBwEnd_Str24.4.C.

TString name8

Definition at line 115 of file createRootGeoFileBwEnd_Str24.4.C.

TString name9

Definition at line 115 of file createRootGeoFileBwEnd_Str24.4.C.

Definition at line 65 of file createRootGeoFileBwEnd_Str24.4.C.

TString outfile = "./emc_module4_StraightGeo24.4.root"

Definition at line 48 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoShape* QuarterShape

Definition at line 90 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* QuarterVol

Definition at line 95 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoRotation rotBox

Definition at line 87 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoRotation rotCrystal

Definition at line 88 of file createRootGeoFileBwEnd_Str24.4.C.

rotQuar = new TGeoRotation()

Definition at line 85 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoRotation rotSub

Definition at line 86 of file createRootGeoFileBwEnd_Str24.4.C.

Double_t sizeOfBox1 = kWidth + 2*kAlveoleThickness + 2*kCrystalAlveole

Definition at line 29 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

Double_t sizeOfBox2 = 2*kWidth + 2*kAlveoleThickness + 2*kCrystalAlveole + kCrystalCrystal

Definition at line 30 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

Double_t sizeOfBox4 = sizeOfBox2

Definition at line 31 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

Double_t sizeOfQuar = 37.644

Definition at line 73 of file createRootGeoFileBwEnd_Str24.4.C.

Double_t sizeOfSubunit = 2*sizeOfBox4

Definition at line 32 of file createRootGeoFileBwEnd_Str24.4.C.

Referenced by emc_module4_StraightGeo24_ste().

TGeoShape* SubunitShape

Definition at line 91 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* SubunitVol

Definition at line 96 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* SubunitVol1

Definition at line 97 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* SubunitVol2

Definition at line 98 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* SubunitVol3

Definition at line 99 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* SubunitVol4

Definition at line 100 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* SubunitVol5

Definition at line 101 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* SubunitVol6

Definition at line 102 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* SubunitVol7

Definition at line 103 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* SubunitVol8

Definition at line 104 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* SubunitVol9

Definition at line 105 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoVolume* top = new TGeoVolumeAssembly("Emc4")

Definition at line 76 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoTranslation trBox

Definition at line 82 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoTranslation trCrystal

Definition at line 83 of file createRootGeoFileBwEnd_Str24.4.C.

trQuar = new TGeoTranslation(0.,0.,0.)

Definition at line 80 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoCombiTrans* trrotQuar = new TGeoCombiTrans(trQuar,rotQuar)

Definition at line 429 of file createRootGeoFileBwEnd_Str24.4.C.

TGeoTranslation trSub

Definition at line 81 of file createRootGeoFileBwEnd_Str24.4.C.