pixel geometry
- test of upgr15 with DEV library
Chain used :
trs,ssd,upgr15,pixFastSim,Idst,IAna,l0,tpcI,fcf,Tree,logger,ITTF,Sti,StiRnd,PixelIT,IstIT,StiPulls,genvtx,NoSvtIt,SsdIt,MakeEvent,McEvent,geant,evout,IdTruth,bbcSim,emcY2,EEfs,big,-dstout,fzin,MiniMcMk,McEvOut,clearmem
file used :
/star/institutions/ksu/margetis/hft/geant/1Kpions_100Evnts_UPG13.fzd
In the pixelFastSimMaker, there are comments :
StPixelFastSimMaker:DEBUG - Path: /HALL_1/CAVE_1/PXMO_1/PSEC_1/PLMO_1/PLAC_1
StPixelFastSimMaker:ERROR - TGeoManager::cd : Path /HALL_1/CAVE_1/PXMO_1/PSEC_1/PLMO_1/PLAC_1 not valid
StPixelFastSimMaker:DEBUG - pixel hit volume id: 1010000
In the PixelDetectorBuilder :
---------------------------------------------------------------------------------------
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_0 from /HALL_1/CAVE_1/PXMO_1/PXLA_1/PLMI_1/PLAC_1 center: 0.628318 normal: 0.628319
StiMaker:INFO - Setting detector normal angle: 1.25664
StiMaker:INFO - -I- Setting detector center angle: 1.25664 offset: 9.24677e-08 Ist style offset: -9.24677e-08
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_0 from /HALL_1/CAVE_1/PXMO_1/PXLA_1/PLMI_2/PLAC_1 center: 1.25664 normal: 1.25664
StiMaker:INFO - Setting detector normal angle: 1.88496
StiMaker:INFO - -I- Setting detector center angle: 1.88496 offset: 9.24677e-08 Ist style offset: 9.24677e-08
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_0 from /HALL_1/CAVE_1/PXMO_1/PXLA_1/PLMI_3/PLAC_1 center: 1.88496 normal: 1.88496
StiMaker:INFO - Setting detector normal angle: 2.51327
StiMaker:INFO - -I- Setting detector center angle: 2.51327 offset: 2.62843e-07 Ist style offset: -2.62843e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_0 from /HALL_1/CAVE_1/PXMO_1/PXLA_1/PLMI_4/PLAC_1 center: 2.51327 normal: 2.51327
StiMaker:INFO - Setting detector normal angle: 3.14159
StiMaker:INFO - -I- Setting detector center angle: -3.14159 offset: 2.19781e-07 Ist style offset: -2.19781e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_0 from /HALL_1/CAVE_1/PXMO_1/PXLA_1/PLMI_5/PLAC_1 center: -3.14159 normal: 3.14159
StiMaker:INFO - Setting detector normal angle: -2.51327
StiMaker:INFO - -I- Setting detector center angle: -2.51327 offset: 2.62843e-07 Ist style offset: 2.62843e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_0 from /HALL_1/CAVE_1/PXMO_1/PXLA_1/PLMI_6/PLAC_1 center: -2.51327 normal: -2.51327
StiMaker:INFO - Setting detector normal angle: -1.88496
StiMaker:INFO - -I- Setting detector center angle: -1.88496 offset: 1.92849e-07 Ist style offset: 1.92849e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_0 from /HALL_1/CAVE_1/PXMO_1/PXLA_1/PLMI_7/PLAC_1 center: -1.88496 normal: -1.88496
StiMaker:INFO - Setting detector normal angle: -1.25664
StiMaker:INFO - -I- Setting detector center angle: -1.25664 offset: 2.87955e-07 Ist style offset: -2.87955e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_0 from /HALL_1/CAVE_1/PXMO_1/PXLA_1/PLMI_8/PLAC_1 center: -1.25664 normal: -1.25664
StiMaker:INFO - Setting detector normal angle: -0.628319
StiMaker:INFO - -I- Setting detector center angle: -0.628318 offset: 2.62843e-07 Ist style offset: -2.62843e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_0 from /HALL_1/CAVE_1/PXMO_1/PXLA_1/PLMI_9/PLAC_1 center: -0.628318 normal: -0.628319
StiMaker:INFO - Setting detector normal angle: 0
StiMaker:INFO - -I- Setting detector center angle: 1.75825e-07 offset: 4.39562e-07 Ist style offset: -4.39562e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_0 from /HALL_1/CAVE_1/PXMO_1/PXLA_1/PLMI_10/PLAC_1 center: 1.75825e-07 normal: 0
StiMasterDetectorBuilder::build() -I- Calling Group Builder named:IstBuilder
StiIstDetectorBuilder::buildDetectors() -I- Use VMC geometry
StiMaker:DEBUG - StiDetectorBuilder::AverageVolume -I TGeoPhysicalNode /HALL_1/CAVE_1/IBMO_1/IBMY_1/IBAM_1/IBLM_1/IBSS_1
StiMaker:WARN - St_HitErrorC::instance found table ist1HitError with NRows = 1 in db
StiMaker:WARN - Validity:20050101/0 ----- 20380101/0
- test of upgr13 with DEV library
In the pixelFastSimMaker, there are comments :
StPixelFastSimMaker:DEBUG - Path: /HALL_1/CAVE_1/PXMO_1/PSEC_1/PLMO_1/PLAC_1
StPixelFastSimMaker:DEBUG - pixel hit volume id: 1010000
In the PixelDetectorBuilder :
---------------------------------------------------------------------------------------
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_2 from /HALL_1/CAVE_1/PXMO_1/PSEC_1/PLMO_1/PLAC_1 center: 1.74587 normal: 1.51844
StiMaker:INFO - Setting detector normal angle: 0.820305
StiMaker:INFO - -I- Setting detector center angle: 1.04774 offset: 0.562378 Ist style offset: -0.562378
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_1 from /HALL_1/CAVE_1/PXMO_1/PSEC_1/PLMO_2/PLAC_1 center: 1.04774 normal: 0.820305
StiMaker:INFO - Setting detector normal angle: 0.122173
StiMaker:INFO - -I- Setting detector center angle: 0.349607 offset: 0.562378 Ist style offset: -0.562378
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_0 from /HALL_1/CAVE_1/PXMO_1/PSEC_1/PLMO_3/PLAC_1 center: 0.349607 normal: 0.122173
StiMaker:INFO - Setting detector normal angle: 1.8326
StiMaker:INFO - -I- Setting detector center angle: 1.8326 offset: 1.66367e-07 Ist style offset: -1.66367e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_7 from /HALL_1/CAVE_1/PXMO_1/PSEC_1/PLMO_4/PLAC_1 center: 1.8326 normal: 1.8326
StiMaker:INFO - Setting detector normal angle: 1.5708
StiMaker:INFO - -I- Setting detector center angle: 1.5708 offset: 3.27835e-07 Ist style offset: -3.27835e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_6 from /HALL_1/CAVE_1/PXMO_1/PSEC_1/PLMO_5/PLAC_1 center: 1.5708 normal: 1.5708
StiMaker:INFO - Setting detector normal angle: 1.309
StiMaker:INFO - -I- Setting detector center angle: 1.309 offset: 1.66367e-07 Ist style offset: 1.66367e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_5 from /HALL_1/CAVE_1/PXMO_1/PSEC_1/PLMO_6/PLAC_1 center: 1.309 normal: 1.309
StiMaker:INFO - Setting detector normal angle: 1.0472
StiMaker:INFO - -I- Setting detector center angle: 1.0472 offset: 2.35808e-07 Ist style offset: -2.35808e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_4 from /HALL_1/CAVE_1/PXMO_1/PSEC_1/PLMO_7/PLAC_1 center: 1.0472 normal: 1.0472
StiMaker:INFO - Setting detector normal angle: 0.785398
StiMaker:INFO - -I- Setting detector center angle: 0.785398 offset: 8.88178e-16 Ist style offset: -7.20979e-16
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_3 from /HALL_1/CAVE_1/PXMO_1/PSEC_1/PLMO_8/PLAC_1 center: 0.785398 normal: 0.785398
StiMaker:INFO - Setting detector normal angle: 0.523599
StiMaker:INFO - -I- Setting detector center angle: 0.523599 offset: 2.35808e-07 Ist style offset: 2.35808e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_2 from /HALL_1/CAVE_1/PXMO_1/PSEC_1/PLMO_9/PLAC_1 center: 0.523599 normal: 0.523599
StiMaker:INFO - Setting detector normal angle: 0.261799
StiMaker:INFO - -I- Setting detector center angle: 0.261799 offset: 1.66367e-07 Ist style offset: -1.66367e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_1 from /HALL_1/CAVE_1/PXMO_1/PSEC_1/PLMO_10/PLAC_1 center: 0.261799 normal: 0.261799
StiMaker:INFO - Setting detector normal angle: 0
StiMaker:INFO - -I- Setting detector center angle: 0 offset: 0 Ist style offset: 0
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_0 from /HALL_1/CAVE_1/PXMO_1/PSEC_1/PLMO_11/PLAC_1 center: 0 normal: 0
StiMaker:INFO - Setting detector normal angle: -2.67035
StiMaker:INFO - -I- Setting detector center angle: -2.44292 offset: 0.562378 Ist style offset: -0.562378
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_5 from /HALL_1/CAVE_1/PXMO_1/PSEC_2/PLMO_1/PLAC_1 center: -2.44292 normal: -2.67035
StiMaker:INFO - Setting detector normal angle: 2.9147
StiMaker:INFO - -I- Setting detector center angle: -3.14105 offset: 0.562378 Ist style offset: -0.562378
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_4 from /HALL_1/CAVE_1/PXMO_1/PSEC_2/PLMO_2/PLAC_1 center: -3.14105 normal: 2.9147
StiMaker:INFO - Setting detector normal angle: 2.21657
StiMaker:INFO - -I- Setting detector center angle: 2.444 offset: 0.562378 Ist style offset: -0.562378
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_3 from /HALL_1/CAVE_1/PXMO_1/PSEC_2/PLMO_3/PLAC_1 center: 2.444 normal: 2.21657
StiMaker:INFO - Setting detector normal angle: -2.35619
StiMaker:INFO - -I- Setting detector center angle: -2.35619 offset: 1.66367e-07 Ist style offset: -1.66367e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_15 from /HALL_1/CAVE_1/PXMO_1/PSEC_2/PLMO_4/PLAC_1 center: -2.35619 normal: -2.35619
StiMaker:INFO - Setting detector normal angle: -2.61799
StiMaker:INFO - -I- Setting detector center angle: -2.61799 offset: 3.27835e-07 Ist style offset: -3.27835e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_14 from /HALL_1/CAVE_1/PXMO_1/PSEC_2/PLMO_5/PLAC_1 center: -2.61799 normal: -2.61799
StiMaker:INFO - Setting detector normal angle: -2.87979
StiMaker:INFO - -I- Setting detector center angle: -2.87979 offset: 1.66367e-07 Ist style offset: 1.66367e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_13 from /HALL_1/CAVE_1/PXMO_1/PSEC_2/PLMO_6/PLAC_1 center: -2.87979 normal: -2.87979
StiMaker:INFO - Setting detector normal angle: 3.14159
StiMaker:INFO - -I- Setting detector center angle: -3.14159 offset: 2.35808e-07 Ist style offset: -2.35808e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_12 from /HALL_1/CAVE_1/PXMO_1/PSEC_2/PLMO_7/PLAC_1 center: -3.14159 normal: 3.14159
StiMaker:INFO - Setting detector normal angle: 2.87979
StiMaker:INFO - -I- Setting detector center angle: 2.87979 offset: 4.44089e-16 Ist style offset: -2.88392e-15
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_11 from /HALL_1/CAVE_1/PXMO_1/PSEC_2/PLMO_8/PLAC_1 center: 2.87979 normal: 2.87979
StiMaker:INFO - Setting detector normal angle: 2.61799
StiMaker:INFO - -I- Setting detector center angle: 2.61799 offset: 2.35808e-07 Ist style offset: 2.35808e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_10 from /HALL_1/CAVE_1/PXMO_1/PSEC_2/PLMO_9/PLAC_1 center: 2.61799 normal: 2.61799
StiMaker:INFO - Setting detector normal angle: 2.35619
StiMaker:INFO - -I- Setting detector center angle: 2.35619 offset: 1.66367e-07 Ist style offset: -1.66367e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_9 from /HALL_1/CAVE_1/PXMO_1/PSEC_2/PLMO_10/PLAC_1 center: 2.35619 normal: 2.35619
StiMaker:INFO - Setting detector normal angle: 2.0944
StiMaker:INFO - -I- Setting detector center angle: 2.0944 offset: 0 Ist style offset: 0
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_8 from /HALL_1/CAVE_1/PXMO_1/PSEC_2/PLMO_11/PLAC_1 center: 2.0944 normal: 2.0944
StiMaker:INFO - Setting detector normal angle: -0.575959
StiMaker:INFO - -I- Setting detector center angle: -0.348525 offset: 0.562378 Ist style offset: -0.562378
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_8 from /HALL_1/CAVE_1/PXMO_1/PSEC_3/PLMO_1/PLAC_1 center: -0.348525 normal: -0.575959
StiMaker:INFO - Setting detector normal angle: -1.27409
StiMaker:INFO - -I- Setting detector center angle: -1.04666 offset: 0.562378 Ist style offset: -0.562378
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_7 from /HALL_1/CAVE_1/PXMO_1/PSEC_3/PLMO_2/PLAC_1 center: -1.04666 normal: -1.27409
StiMaker:INFO - Setting detector normal angle: -1.97222
StiMaker:INFO - -I- Setting detector center angle: -1.74479 offset: 0.562378 Ist style offset: -0.562378
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_0/Ladder_6 from /HALL_1/CAVE_1/PXMO_1/PSEC_3/PLMO_3/PLAC_1 center: -1.74479 normal: -1.97222
StiMaker:INFO - Setting detector normal angle: -0.261799
StiMaker:INFO - -I- Setting detector center angle: -0.261799 offset: 1.66367e-07 Ist style offset: -1.66367e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_23 from /HALL_1/CAVE_1/PXMO_1/PSEC_3/PLMO_4/PLAC_1 center: -0.261799 normal: -0.261799
StiMaker:INFO - Setting detector normal angle: -0.523599
StiMaker:INFO - -I- Setting detector center angle: -0.523599 offset: 3.27835e-07 Ist style offset: -3.27835e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_22 from /HALL_1/CAVE_1/PXMO_1/PSEC_3/PLMO_5/PLAC_1 center: -0.523599 normal: -0.523599
StiMaker:INFO - Setting detector normal angle: -0.785398
StiMaker:INFO - -I- Setting detector center angle: -0.785398 offset: 1.66367e-07 Ist style offset: 1.66367e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_21 from /HALL_1/CAVE_1/PXMO_1/PSEC_3/PLMO_6/PLAC_1 center: -0.785398 normal: -0.785398
StiMaker:INFO - Setting detector normal angle: -1.0472
StiMaker:INFO - -I- Setting detector center angle: -1.0472 offset: 2.35808e-07 Ist style offset: -2.35808e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_20 from /HALL_1/CAVE_1/PXMO_1/PSEC_3/PLMO_7/PLAC_1 center: -1.0472 normal: -1.0472
StiMaker:INFO - Setting detector normal angle: -1.309
StiMaker:INFO - -I- Setting detector center angle: -1.309 offset: 9.15513e-16 Ist style offset: 0
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_19 from /HALL_1/CAVE_1/PXMO_1/PSEC_3/PLMO_8/PLAC_1 center: -1.309 normal: -1.309
StiMaker:INFO - Setting detector normal angle: -1.5708
StiMaker:INFO - -I- Setting detector center angle: -1.5708 offset: 2.35808e-07 Ist style offset: 2.35808e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_18 from /HALL_1/CAVE_1/PXMO_1/PSEC_3/PLMO_9/PLAC_1 center: -1.5708 normal: -1.5708
StiMaker:INFO - Setting detector normal angle: -1.8326
StiMaker:INFO - -I- Setting detector center angle: -1.8326 offset: 1.66367e-07 Ist style offset: -1.66367e-07
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_17 from /HALL_1/CAVE_1/PXMO_1/PSEC_3/PLMO_10/PLAC_1 center: -1.8326 normal: -1.8326
StiMaker:INFO - Setting detector normal angle: -2.0944
StiMaker:INFO - -I- Setting detector center angle: -2.0944 offset: 0 Ist style offset: 0
StiMaker:INFO - StiPixelDetectorBuilder: -I- built detector Pixel/Layer_1/Ladder_16 from /HALL_1/CAVE_1/PXMO_1/PSEC_3/PLMO_11/PLAC_1 center: -2.0944 normal: -2.0944
StiMasterDetectorBuilder::build() -I- Calling Group Builder named:IstBuilder
StiIstDetectorBuilder::buildDetectors() -I- Use VMC geometry
StiMaker:DEBUG - StiDetectorBuilder::AverageVolume -I TGeoPhysicalNode /HALL_1/CAVE_1/IBMO_1/IBMY_1/IBAM_1/IBLM_1/IBSS_1
StiMaker:WARN - St_HitErrorC::instance found table ist1HitError with NRows = 1 in db
StiMaker:WARN - Validity:20050101/0 ----- 20380101/0
- numbering of layer/ladder of upgr15
I used a .fzd file and ran the macro from Gerrit that dumps the hits positions.
I printed the volumeId from g2t_pixl_Hit.
The previous decoding (for upgr13 for example) used the following logic :
($STAR/StRoot/StmcEvent/StMcPixlHit.cc)
00099 StMcPixelHit::ladder() const
00100 {
00101 // 3 modules of 11 ladders each; 8 outer and 3 inner ladder per module
00102 // layer 1 : ladder 1 - 9
00103 // layer 2 : ladder 1 - 24
00104 unsigned long iModule = mVolumeId/1000000;
00105 unsigned long iLadder = (mVolumeId%1000000)/10000;
00106 //cout<<"volume id: "<<mVolumeId<<endl;
00107 //cout<<"iModule: "<<iModule<<endl;
00108 //cout<<"iLadder: "<<iLadder<<endl;
00109 if (iLadder>3) // outer: 3*(4-11) to 1-24
00110 {
00111 iLadder=(iModule-1)*8+iLadder-3;
00112 }
00113 else
00114 {
00115 iLadder = (iModule-1)*3 + (iLadder);
00116 }
00117 //cout<<"final iLadder: "<<iLadder<<endl;
00118 return iLadder;
00119 }
So with upgr15, we have 2layers with respectively 10 and 30 ladders.
Following the same idea, I printed :
mVolumeId/1000000 and (mVolumeId%10000000)/10000 ;
========> PIX: x y z = 2.50096 0.708255 -0.012885 volumeId 1100000 Module :1 ladder :10
========> PIX: x y z = 2.50072 0.211995 -2.43057 volumeId 1100000 Module :1 ladder :10
========> PIX: x y z = 2.50096 -0.708215 0.183455 volumeId 1100000 Module :1 ladder :10
========> PIX: x y z = 2.50064 -0.478055 -2.90135 volumeId 1100000 Module :1 ladder :10
========> PIX: x y z = 2.50085 0.456895 -1.45369 volumeId 1100000 Module :1 ladder :10
========> PIX: x y z = 7.83954 1.60039 2.10441 volumeId 2010000 Module :2 ladder :1
========> PIX: x y z = 7.85758 1.51472 -5.97336 volumeId 2010000 Module :2 ladder :1
========> PIX: x y z = 7.92052 1.21953 -0.553725 volumeId 2010000 Module :2 ladder :1
========> PIX: x y z = 7.77794 1.88948 5.72732 volumeId 2010000 Module :2 ladder :1
So we have
- 1 <= volumeId/1000000 <=2
- 1<=(volumeId%1000000)/10000 <=10 for volumeId/1000000 ==1
- 1<=(volumeId%1000000)/10000 <=30 for volumeId/1000000 ==2
So we can identify layer == volumeId/1000000 and ladder == (volumeId%1000000)/10000
In the macro, I used those condition
Fig 1 : X vs Y global positions of hits when requiring volumeId/1000000 ==1
Fig 2 : X vs Y global positions of hits when requiring volumeId/1000000 ==2
- I did the same for IST ; with the same .fzd file , I printed and filled in a tuple :
tuple2[8] = vol/1000000;
tuple2[9] =(vol%1000000)/10000;
So it appears that vol/1000000 returns the ladder_id : 1< vol/1000000 < 25
and (vol%1000000)/10000 returns the wafer_id : 1 <(vol%10000000)/10000< 12
Here is the output of the macro where I printed the position of hits and the 2 last columns are vol/1000000 and (vol%1000000)/10000
- Reason why only the first layer is built
From starsim, I represented the path of the volumes created with pixlgeo00.g
The path should be :
/HALL_1/CAVE_1/PXMO_1/PXLA_1/PLMI_1-10/PLAC_1 for the inner layer
/HALL_1/CAVE_1/PXMO_1/PXLA_2/PLMI_1-30/PLAC_1 for the outer layer
So the first layer is correctly built (PXLA extension) but the second has PXL1 extension
- bouchet's blog
- Login or register to post comments