Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-10 07:50:27

0001 #!/usr/bin/env python
0002 
0003 import numpy as np
0004 from opticks.ana.fold import Fold
0005 
0006 np.set_printoptions(precision=12) 
0007 
0008 if __name__ == '__main__':
0009     t = Fold.Load(symbol="t")
0010     print(repr(t))
0011     print(t.FacetNormal[:100])
0012 
0013     fn = t.FacetNormal[:,0]
0014     sm = t.FacetNormal[:,1]
0015     mo = t.Meta[0] 
0016 
0017     fn_mo = np.sum( fn*mo, axis=1 )  # dot product of each FacetNormal with the mom 
0018     assert( np.all( fn_mo < 0 ) )    # all -ve so the mom is against the FacetNormal 
0019 
0020 pass
0021 
0022