User Tools

Site Tools


community:hepsim:dev_full

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
community:hepsim:dev_full [2016/10/18 14:57]
asc
community:hepsim:dev_full [2016/10/18 15:50] (current)
asc [How to make changes in compact.xml]
Line 10: Line 10:
  
  
 +====== How to make changes in compact.xml ======
 +
 +If you want to make changes in the detector design, edit "compact.xml", and then run the converters:
 +<code bash>
 +JAVA_OPTS="-Xms2048m -Xmx2048m"
 +GCONVERTER=lcsim/detector-framework/target/lcsim-detector-framework-3.1.6-SNAPSHOT-bin.jar
 +GEOM="mydetector" # name of your detector
 +java $JAVA_OPTS -jar $GCONVERTER -o lcdd compact.xml $GEOM.lcdd
 +slic -g ${GEOM}.lcdd  -G ${GEOM}.gdml
 +echo "heprep compact.xml.."
 +java $JAVA_OPTS -jar $GCONVERTER -o heprep compact.xml $GEOM.heprep
 +echo "pandora compact.xml.."
 +java $JAVA_OPTS -jar $GCONVERTER -o pandora compact.xml $GEOM.pandora
 +java $JAVA_OPTS -jar $GCONVERTER -o html compact.xml ${GEOM}.html
 +</code>
 +where "${GEOM}" is the name of the detector geometry.  Next, check that you do not have overlapping volumes. Run ROOT with the commands:
 +
 +<code cpp>
 +TGeoManager::Import("mydetector.gdml");
 +gGeoManager->ViewLeaves(true);
 +gGeoManager->ls("All");
 +gGeoManager->CheckOverlaps(0.1); //0.1 tolerance or better!
 +gGeoManager->PrintOverlaps();
 +gGeoManager->GetTopVolume()->Draw("ogl");
 +</code>
 +If you see that some volumes overlap, come back to "compact.xml" and make corrections.
 +
 + --- //[[[email protected]|Sergei Chekanov]] 2016/10/18 10:47//
 ====== Pandora PFA ====== ====== Pandora PFA ======
  
Line 20: Line 48:
   * timeCut   * timeCut
  
-and sampling fractions. Look at the file:+The sampling fractions are taken from the detector  directory called "SamplingFractions" 
 +Here files look as this: 
 + 
 +<code> 
 +BeamCal.properties* 
 +EcalBarrel.properties* 
 +EcalEndcap.properties* 
 +HcalBarrel.properties* 
 +HcalEndcap.properties* 
 +LumiCal.properties* 
 +MuonBarrel.properties* 
 +MuonEndcap.properties* 
 +README* 
 +</code> 
 + 
 + 
 +Look at the file:
 <code> <code>
 lcsim/detector-framework/src/main/java/org/lcsim/geometry/compact/converter/pandora/Main.java lcsim/detector-framework/src/main/java/org/lcsim/geometry/compact/converter/pandora/Main.java
 </code> </code>
community/hepsim/dev_full.1476802624.txt.gz · Last modified: 2016/10/18 14:57 by asc