EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
jleic.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file jleic.cc
1 void JLeicDetectorConstruction::Create_ce_Endcap(JLeicDetectorConfig::ce_Endcap_Config cfg)
2 {
3  // ...
4 
5  // Import ROOT file with an "EicToyModel" singleton class instance;
6  auto eic = EicToyModel::Import("example.root");
7 
8  // Construct the integration volumes geometry, internally;
9  eic->Construct();
10 
11  // Place them as G4 volumes into the IR world volume all at once;
12  eic->PlaceG4Volumes(World_Phys);
13 
14  // Get pointer to a particular G4VPhysicalVolume;
15  ce_ENDCAP_GVol_Phys = eic->bck()->get("HCal")->GetG4Volume();
16 
17  // ...
18 }