Uploaded image for project: 'VecGeom'
  1. VecGeom
  2. VECGEOM-578

A polycone with different sections in CPU and GPU

    XMLWordPrintable

Details

    • Bug
    • Status: Done (View Workflow)
    • High
    • Resolution: Done
    • None
    • None
    • volumes

    Description

      Investigating discrepant results between CPU and GPU tracking, I found one of the CMS2018 polycones (SFRN) having a different number of ZSections in CPU and GPU.
      Here is the result of `pvol->Print()` from  CPU:

      [9185] "SFRN0x7f4a8efccb00":
       Transformation3D {{0.00, 0.00, 0.00}, {1.00, 0.00, -0.00, 0.00, 1.00, 0.00, 0.00, 0.00, 1.00}}
       LogicalVolume [2742] "SFRN0x7f4a8efccb00":
       UnplacedPolycone {0.00, 6.28, 6}
       have 4 size Z
       ------- z planes follow ---------
       plane 0 at z pos 0.000000
       plane 1 at z pos 0.900000
       plane 2 at z pos 2.700000
       plane 3 at z pos 3.600000
       have 3 size fSections
       ------ sections follow ----------
       ## section 0, shift 0.450000
       ConeStruct : {rmin1 37.10, rmax1 122.80, rmin2 37.10, rmax2 122.80, dz 0.45, phistart 0.00, deltaphi 6.28}
       ## section 1, shift 1.800000
       ConeStruct : {rmin1 36.10, rmax1 122.20, rmin2 36.10, rmax2 122.20, dz 0.90, phistart 0.00, deltaphi 6.28}
       ## section 2, shift 3.150000
       ConeStruct : {rmin1 37.10, rmax1 122.80, rmin2 37.10, rmax2 122.80, dz 0.45, phistart 0.00, deltaphi 6.28}
      

      and here from the GPU:

      [9185]:
       Transformation3D {{0.00, 0.00, 0.00}, {1.00, 0.00, -0.00, 0.00, 1.00, 0.00, 0.00, 0.00, 1.00}}
       LogicalVolume [2742]:
       UnplacedPolycone {0.00, 6.28, 6}
       have 5 size Z
       ------- z planes follow ---------
       plane 0 at z pos 0.000000
       plane 1 at z pos 0.900000
       plane 2 at z pos 0.900000
       plane 3 at z pos 2.700000
       plane 4 at z pos 3.600000
       have 4 size fSections
       ------ sections follow ----------
       
      section 0, shift 0.450000
       ConeStruct : {rmin1 37.10, rmax1 122.80, rmin2 37.10, rmax2 122.80, dz 0.45, phistart 0.00, deltaphi 6.28} section 1, shift 0.900000
       ConeStruct : {rmin1 37.10, rmax1 122.80, rmin2 36.10, rmax2 122.20, dz 0.00, phistart 0.00, deltaphi 6.28} section 2, shift 1.800000
       ConeStruct : {rmin1 36.10, rmax1 122.20, rmin2 36.10, rmax2 122.20, dz 0.90, phistart 0.00, deltaphi 6.28} section 3, shift 3.150000
       ConeStruct : {rmin1 37.10, rmax1 122.80, rmin2 37.10, rmax2 122.80, dz 0.45, phistart 0.00, deltaphi 6.28}
       
      

       

      Attachments

        Activity

          People

            jlima Guilherme Lima
            jlima Guilherme Lima
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: