- bouchet's home page
- Posts
- 2016
- 2015
- December (1)
- November (3)
- October (2)
- September (2)
- August (2)
- June (2)
- April (5)
- March (2)
- February (3)
- January (2)
- 2014
- December (2)
- November (2)
- October (3)
- September (2)
- August (3)
- July (1)
- June (3)
- May (6)
- April (6)
- March (1)
- February (2)
- January (1)
- 2013
- December (2)
- November (3)
- October (3)
- September (4)
- August (1)
- July (1)
- May (4)
- April (6)
- March (4)
- February (3)
- 2012
- 2011
- December (2)
- November (2)
- October (4)
- September (1)
- August (2)
- July (6)
- June (2)
- May (3)
- April (3)
- March (2)
- 2010
- 2009
- December (2)
- November (1)
- October (3)
- September (1)
- August (1)
- July (1)
- June (2)
- April (1)
- March (2)
- February (2)
- January (1)
- 2008
- My blog
- Post new blog entry
- All blogs
Alignment tables (PXL) : y2013
global alignment :
PxlLaddersOnSectors.y2013.C
PxlOnGlobal.y2013.C
PxlSectorsOnGlobal.y2013.C
PxlSensorsOnLadders.y2013.C
first step : create a y2013.h file that contains the geometry tree ( GEANT volumes path ) :
to do this , you have to run starsim and type the following commands :
note : for y2013, you have to be in DEV library (type stardev to swithc to DEV)
After this step, a file y2013.rz is created in your directory. Then the command line to produce the .h file is (from the terminal) :
MAcro : LoopOverPxlInner to find the rotations/translations parameters
Write the results into the tables.
PxlLaddersOnSectors.y2013.C
PxlOnGlobal.y2013.C
PxlSectorsOnGlobal.y2013.C
PxlSensorsOnLadders.y2013.C
first step : create a y2013.h file that contains the geometry tree ( GEANT volumes path ) :
to do this , you have to run starsim and type the following commands :
note : for y2013, you have to be in DEV library (type stardev to swithc to DEV)
detp geom y2013 gexec $STAR_LIB/xgeometry.so gclos all grfile y2013.rz quit
After this step, a file y2013.rz is created in your directory. Then the command line to produce the .h file is (from the terminal) :
g2root y2013.rz
note : the command line above creates .C file ; you can just rename the file with .h extension
It's a good thing to place this file (y2013.h) in a same tree structure as the tree used for reconstruction :
StarDb/AgiGeometry
StarDb/AgMLGeometry
So you can download these 2 directories from CVS :
cvs co StarDb/AgiGeometry
cvs co StarDb/AgMLGeometry
note :
1. a file Geometry.y2013.C has to be created also in StarDb/AgiGeometry ( make a copy from any other file and change to y2013)
2. put the y2013.h file in your private StarDb/AgiGeometry
It's a good thing to place this file (y2013.h) in a same tree structure as the tree used for reconstruction :
StarDb/AgiGeometry
StarDb/AgMLGeometry
So you can download these 2 directories from CVS :
cvs co StarDb/AgiGeometry
cvs co StarDb/AgMLGeometry
note :
1. a file Geometry.y2013.C has to be created also in StarDb/AgiGeometry ( make a copy from any other file and change to y2013)
2. put the y2013.h file in your private StarDb/AgiGeometry
MAcro : LoopOverPxlInner to find the rotations/translations parameters
.L StarDb/AgiGeometry/Geometry.y2013.C CreateTable() .x LoopOverTgeo.C
Write the results into the tables.
- the macro spits out the parameters for all sensors ( 10 sectors * 4 ladders * 10 sensors)
- however the global parameters are written for a given ladder ( rot, translation ) in the table PxlLaddersOnSectors
- the z position of the 10 sensors , in a given ladder, are written in PxlSensorsOnLadders using the following positions
const Int_t NSECTOR = 10; const Int_t NLADDER = 4; const Int_t NSENSOR = 10; Float_t ZPOS[NSENSOR] = {-9.1170, -7.0910, -5.0650, -3.0390, -1.0130, 1.0130, 3.0390, 5.0650, 7.0910, 9.1170};
Groups:
- bouchet's blog
- Login or register to post comments