Checkoverlaps

What’s the difference between “fGeoManager->CheckOverlaps(0.001);” and “fGeoManager->CheckOverlaps(0.001,“s”)”? Will both of them produce same output like Number of illegal overlaps/extrusions will be same? why am I getting different output?

I think @agheata can help.

The option “s” stands for “sampling”. Standard checking uses points on the volume`s vertices and edges to find illegal overlaps with other volumes and is reproducible. The sampling method shoots N points (1 million by default) inside the volume and uses those to detect clashing regions. Using “s[N}” (e.g. “s50000”) one can change the number of points. None of the 2 methods is guaranteed to find all the overlaps.

Thank @agheata ,
I have geometry which produce overlap area with the sample method.but standard method fGeoManager->CheckOverlaps(0.001) doesn’t work for geometry?

//The sampling method
root [2] geo->CheckOverlaps(0.001,“s”)
Info in TGeoNodeMatrix::CheckOverlaps: Checking overlaps for volWorld and daughters within 0.001
Info in TGeoNodeMatrix::CheckOverlaps: Checking overlaps by sampling for volWorld and daughters
Info in TGeoNodeMatrix::CheckOverlaps: === NOTE: Extrusions NOT checked with sampling option ! ===
Info in TGeoChecker::CheckOverlapsBySampling: #Found 10 overlaps adding-up to 2.04629e+08 +/- 537793 [cm3] for daughters of modulelayervol
Check overlaps: [==========] 217430 [100.00 %] 00:01
Info in TGeoNodeMatrix::CheckOverlaps: Number of illegal overlaps/extrusions : 10

//standard method output
root [1] geo->CheckOverlaps(0.001)
Info in TGeoNodeMatrix::CheckOverlaps: Checking overlaps for volWorld and daughters within 0.001
Check overlaps: [==========] 217430 [100.00 %] 00:00
Info in TGeoNodeMatrix::CheckOverlaps: Number of illegal overlaps/extrusions : 0

why standard method is not working?

No idea, can you share the geometry root file? It might be that the volumes in question are Boolean composites, in which case the standard method is not working.

Thank @agheata this is my root file which has overlap area working only with sampling method ,but not standard method

<?xml version="1.0" encoding="ASCII"?>
<gdml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://service-spi.web.cern.ch/service-spi/app/releases/GDML/schema/gdml.xsd">
  <define>
    <position unit="cm" name="lfposTMS" x="264.35" y="0.0" z="0.0"/>
    <position unit="cm" name="rtposTMS" x="-264.35" y="0.0" z="0.0"/>
    <position unit="cm" name="ctrposTMS" x="0.0" y="0.0" z="0.0"/>
    <position unit="cm" name="a" x="0.0" y="0.0" z="0.0"/>
    <position unit="cm" name="thinlayerposition0" x="0.0" y="85.0" z="-346.45"/>
    <position unit="cm" name="thinlayerposition1" x="0.0" y="85.0" z="-340.95"/>
    <position unit="cm" name="e" x="0.0" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition0" x="-83.23700000000001" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition1" x="-79.69500000000001" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition2" x="-76.153" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition3" x="-72.611" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition4" x="-69.069" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition5" x="-65.527" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition6" x="-61.985" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition7" x="-58.443" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition8" x="-54.900999999999996" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition9" x="-51.359" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition10" x="-47.81700000000001" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition11" x="-44.275000000000006" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition12" x="-40.73300000000001" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition13" x="-37.19100000000001" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition14" x="-33.64900000000001" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition15" x="-30.107000000000006" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition16" x="-26.565000000000005" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition17" x="-23.023000000000003" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition18" x="-19.481000000000005" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition19" x="-15.939000000000004" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition20" x="-12.397000000000002" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition21" x="-8.855000000000002" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition22" x="-5.313000000000001" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition23" x="-1.7710000000000004" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition24" x="1.7709999999999892" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition25" x="5.31299999999999" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition26" x="8.85499999999999" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition27" x="12.396999999999991" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition28" x="15.938999999999993" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition29" x="19.480999999999995" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition30" x="23.022999999999993" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition31" x="26.564999999999994" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition32" x="30.106999999999996" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition33" x="33.648999999999994" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition34" x="37.190999999999995" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition35" x="40.733" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition36" x="44.275" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition37" x="47.817" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition38" x="51.359" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition39" x="54.900999999999996" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition40" x="58.443" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition41" x="61.985" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition42" x="65.527" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition43" x="69.069" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition44" x="72.611" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition45" x="76.153" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition46" x="79.69500000000001" y="0.0" z="0.0"/>
    <position unit="cm" name="sci_barposition47" x="83.23700000000001" y="0.0" z="0.0"/>
    <rotation unit="degree" name="Modrirot" x="0" y="0" z="3"/>
    <rotation unit="degree" name="Modleftrot" x="0" y="0" z="-3"/>
    <position unit="cm" name="modpos1TMS" x="-256.524" y="0.0" z="0.0"/>
    <position unit="cm" name="modpos2TMS" x="-85.508" y="0.0" z="0.0"/>
    <position unit="cm" name="modpos3TMS" x="85.508" y="0.0" z="0.0"/>
    <position unit="cm" name="modpos4TMS" x="256.524" y="0.0" z="0.0"/>
    <position unit="cm" name="g" x="0.0" y="0.0" z="0.0"/>
    <position unit="cm" name="thinModlayerposition0" x="0.0" y="85.0" z="-349.2"/>
    <position unit="cm" name="thinModlayerposition1" x="0.0" y="85.0" z="-343.7"/>
    <position name="center"/>
    <rotation name="identity"/>
  </define>
  <materials/>
  <solids>
    <box name="boxTMS" lunit="cm" x="174.9" y="502.20000000000005" z="1.5"/>
    <box name="box2TMS" lunit="cm" x="349.8" y="502.20000000000005" z="1.5"/>
    <box name="thickboxTMS" lunit="cm" x="174.9" y="502.20000000000005" z="4.0"/>
    <box name="thickbox2TMS" lunit="cm" x="349.8" y="502.20000000000005" z="4.0"/>
    <box name="thinlayerbox" lunit="cm" x="703.5999999999999" y="502.20000000000005" z="1.5"/>
    <box name="thicklayerbox" lunit="cm" x="703.5999999999999" y="502.20000000000005" z="4.0"/>
    <box name="tmsbox" lunit="cm" x="703.5999999999999" y="690.0" z="705.0"/>
    <box name="scinboxTMS" lunit="cm" x="3.542" y="309.6" z="1.0"/>
    <box name="ModuleBox" lunit="cm" x="170.016" y="309.6" z="1.0"/>
    <box name="Modulelayerbox" lunit="cm" x="703.5999999999999" y="502.20000000000005" z="4.0"/>
  </solids>
  <structure>
    <volume name="thinvolTMS">
      <materialref ref="SteelTMS"/>
      <solidref ref="boxTMS"/>
      <auxiliary auxtype="BField" auxvalue="(0.0 T,  1 T, 0 T)"/>
    </volume>
    <volume name="thinvol2TMS">
      <materialref ref="SteelTMS"/>
      <solidref ref="box2TMS"/>
      <auxiliary auxtype="BField" auxvalue="(0.0 T, -1 T, 0 T)"/>
    </volume>
    <volume name="thinlayervol">
      <materialref ref="Air"/>
      <solidref ref="thinlayerbox"/>
      <physvol>
        <volumeref ref="thinvolTMS"/>
        <positionref ref="rtposTMS"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="thinvolTMS"/>
        <positionref ref="lfposTMS"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="thinvol2TMS"/>
        <positionref ref="ctrposTMS"/>
        <rotationref ref="identity"/>
      </physvol>
    </volume>
    <volume name="scinBoxlvTMS">
      <materialref ref="Scintillator"/>
      <solidref ref="scinboxTMS"/>
      <auxiliary auxtype="SensDet" auxvalue="volTMS"/>
    </volume>
    <volume name="ModuleBoxvol">
      <materialref ref="Air"/>
      <solidref ref="ModuleBox"/>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition0"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition1"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition2"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition3"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition4"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition5"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition6"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition7"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition8"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition9"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition10"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition11"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition12"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition13"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition14"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition15"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition16"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition17"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition18"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition19"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition20"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition21"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition22"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition23"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition24"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition25"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition26"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition27"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition28"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition29"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition30"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition31"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition32"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition33"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition34"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition35"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition36"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition37"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition38"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition39"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition40"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition41"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition42"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition43"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition44"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition45"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition46"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="scinBoxlvTMS"/>
        <positionref ref="sci_barposition47"/>
        <rotationref ref="identity"/>
      </physvol>
    </volume>
    <volume name="modulelayervol">
      <materialref ref="Air"/>
      <solidref ref="Modulelayerbox"/>
      <physvol>
        <volumeref ref="ModuleBoxvol"/>
        <positionref ref="modpos1TMS"/>
        <rotationref ref="Modrirot"/>
      </physvol>
      <physvol>
        <volumeref ref="ModuleBoxvol"/>
        <positionref ref="modpos1TMS"/>
        <rotationref ref="Modleftrot"/>
      </physvol>
      <physvol>
        <volumeref ref="ModuleBoxvol"/>
        <positionref ref="modpos2TMS"/>
        <rotationref ref="Modrirot"/>
      </physvol>
      <physvol>
        <volumeref ref="ModuleBoxvol"/>
        <positionref ref="modpos2TMS"/>
        <rotationref ref="Modleftrot"/>
      </physvol>
      <physvol>
        <volumeref ref="ModuleBoxvol"/>
        <positionref ref="modpos3TMS"/>
        <rotationref ref="Modrirot"/>
      </physvol>
      <physvol>
        <volumeref ref="ModuleBoxvol"/>
        <positionref ref="modpos3TMS"/>
        <rotationref ref="Modleftrot"/>
      </physvol>
      <physvol>
        <volumeref ref="ModuleBoxvol"/>
        <positionref ref="modpos4TMS"/>
        <rotationref ref="Modrirot"/>
      </physvol>
      <physvol>
        <volumeref ref="ModuleBoxvol"/>
        <positionref ref="modpos4TMS"/>
        <rotationref ref="Modleftrot"/>
      </physvol>
    </volume>
    <volume name="volTMS">
      <materialref ref="Air"/>
      <solidref ref="tmsbox"/>
      <physvol>
        <volumeref ref="thinlayervol"/>
        <positionref ref="thinlayerposition0"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="thinlayervol"/>
        <positionref ref="thinlayerposition1"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="modulelayervol"/>
        <positionref ref="thinModlayerposition0"/>
        <rotationref ref="identity"/>
      </physvol>
      <physvol>
        <volumeref ref="modulelayervol"/>
        <positionref ref="thinModlayerposition1"/>
        <rotationref ref="identity"/>
      </physvol>
    </volume>
  </structure>
  <setup name="Default" version="0">
    <world ref="volTMS"/>
  </setup>
</gdml>

Hi, this kind of overlap cannot be detected by the standard method. The detection criterion is that points inside/on the surface of one volume should not be inside another. Since the standard method only checks points on vertices&edges, this condition is not fulfilled (the points on the edge of one lie on the surface of the other, and not inside). The sampling method works because it tests points inside each volume.

Thank @agheata very much. I really appreciate your help. Could you share all steps how you generated above graph,please?

root [0] TGeoManager::Import("overlaps_palash.gdml");
root [1] gGeoManager->CheckOverlaps(0.001,"s");
root [2] gGeoManager->PrintOverlaps();
=== Overlaps for Default ===
 = Overlap ov00000: Volume modulelayervol: node ModuleBoxvol_0 overlapping ModuleBoxvol_0 ovlp=0.499999
 = Overlap ov00001: Volume modulelayervol: node ModuleBoxvol_0 overlapping ModuleBoxvol_0 ovlp=0.499997
 = Overlap ov00002: Volume modulelayervol: node ModuleBoxvol_0 overlapping ModuleBoxvol_0 ovlp=0.499991
 = Overlap ov00003: Volume modulelayervol: node ModuleBoxvol_0 overlapping ModuleBoxvol_0 ovlp=0.499978
 = Overlap ov00004: Volume modulelayervol: node ModuleBoxvol_0 overlapping ModuleBoxvol_0 ovlp=0.499974
 = Overlap ov00005: Volume modulelayervol: node ModuleBoxvol_0 overlapping ModuleBoxvol_0 ovlp=0.499584
 = Overlap ov00006: Volume modulelayervol: node ModuleBoxvol_0 overlapping ModuleBoxvol_0 ovlp=0.499426
 = Overlap ov00007: Volume modulelayervol: node ModuleBoxvol_0 overlapping ModuleBoxvol_0 ovlp=0.498909
 = Overlap ov00008: Volume modulelayervol: node ModuleBoxvol_0 overlapping ModuleBoxvol_0 ovlp=0.498397
 = Overlap ov00009: Volume modulelayervol: node ModuleBoxvol_0 overlapping ModuleBoxvol_0 ovlp=0.498364
root [3] auto overlaps = gGeoManager->GetListOfOverlaps();
root [4] overlaps->At(0)->Print();
 = Overlap ov00000: Volume modulelayervol: node ModuleBoxvol_0 overlapping ModuleBoxvol_0 ovlp=0.499999
 - first volume: ModuleBoxvol at position:
matrix  - tr=1  rot=1  refl=0  scl=0 shr=0 reg=0 own=0
  0.998630    0.052336    0.000000    Tx =  85.508000
 -0.052336    0.998630    0.000000    Ty =   0.000000
  0.000000    0.000000    1.000000    Tz =   0.000000
*** Shape ModuleBox: TGeoBBox ***
    dX =    85.00800
    dY =   154.80000
    dZ =     0.50000
    origin: x=    0.00000 y=    0.00000 z=    0.00000
 - second volume: ModuleBoxvol at position:
matrix  - tr=1  rot=1  refl=0  scl=0 shr=0 reg=0 own=0
  0.998630   -0.052336    0.000000    Tx =  85.508000
  0.052336    0.998630    0.000000    Ty =   0.000000
  0.000000    0.000000    1.000000    Tz =   0.000000
*** Shape ModuleBox: TGeoBBox ***
    dX =    85.00800
    dY =   154.80000
    dZ =     0.50000
    origin: x=    0.00000 y=    0.00000 z=    0.00000
root [5] overlaps->At(0)->Draw("ogl"); // drop the "ogl" if you want to see it in the pad

Alternatively, after CheckOverlaps open a TBrowser and look for the list “Illegal overlaps” under your geometry name. Double-click overlaps to draw, use context menu to print.

root [6] new TBrowser;
// find the geometry name in the browser, double-click on overlaps

Thank@agheata very much

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.