- 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
pixel geometry for misalignment work
The latest version of the PXL (PixlGeo4.xml, in dev13, dev14) has only sectors and ladders. For (mis)alignment work, instead of a full active ladder (20cm *2 cm active silicon), 10 wafers (2*2cm) / ladder have been implemented.
2. Geant decoding
Since there is now wafers, the geant decoding from geant_Id to (sector,ladder,wafer) is :
Rotation matrices for all wafers are taken from the root geometry, PLAC volume (active silicon) is the target.
PxlLaddersOnSectors has 40 entries (1 per ladder)
The positionning of wafers on a ladder is coded in PxlWafersOnLadders (see below). A unique Id ( based on sector/ladder/wafer) is assigned for each wafer. It will be used in StPxlDbMaker
- creation of the new PXL geometry
- get the proper GEANT hit decoding
- create geometry tables
- run the BFC chain with correct sector/ladder/wafer decoding
- run the alignment code
2. Geant decoding
Since there is now wafers, the geant decoding from geant_Id to (sector,ladder,wafer) is :
int sector = VOLID/1000000; // [1-10] int ladder = (VOLID%1000000)/10000; //[1-4] int wafer = (VOLID - sector*1000000 - ladder*10000)/100; //[1-10] Path= Form("/HALL_1/CAVE_1/PXMO_1/PXLA_%i/LADR_%i/PLAC_%i",sector,ladder,wafer);3. Geometry Tables.
Rotation matrices for all wafers are taken from the root geometry, PLAC volume (active silicon) is the target.
PxlLaddersOnSectors has 40 entries (1 per ladder)
The positionning of wafers on a ladder is coded in PxlWafersOnLadders (see below). A unique Id ( based on sector/ladder/wafer) is assigned for each wafer. It will be used in StPxlDbMaker
TDataSet *CreateTable() { // ----------------------------------------------------------------- // cout <<" CreateTable::PxlWafersOnLadders : " << endl; // Positioning of the PXL wafers in the PXL ladder coordinate systems if (!gROOT->GetClass("St_Survey")) return 0; Survey_st row = {0, 1,0,0, 0,1,0, 0,0,1, 0,0,0, .1,.1,.1,.002,.1,.002,"Ideal"}; const Int_t NSECTOR = 10; const Int_t NLADDER = 4; const Int_t NWAFER = 10; Float_t ZPOS[10] = {-9.04, -7.04, -5.04, -3.04, -1.04, .96, 2.96, 4.96, 6.96, 8.96}; Int_t id = 0 ; Int_t layer = 0; Int_t counter = 0; St_Survey *tableSet = new St_Survey("PxlWafersOnLadders",NSECTOR*NLADDER*NWAFER); for (Int_t sector = 0; sector <NSECTOR; sector++) { for (Int_t ladder = 0; ladder <NLADDER; ladder++) { for (Int_t wafer = 0; wafer < NWAFER; wafer++) { (ladder==3)?layer=1:layer=2; row.Id = layer*1000 + sector*100 + ladder*10 + wafer ; row.t2 = ZPOS[wafer]; tableSet->AddAt(&row.Id); id = layer*1000 + sector*100 + ladder*10 + wafer ; ++counter; cout <<" id/sector/ladder/wafer : " << id <<"/"<<sector<<"/"<<ladder<<"/"<<wafer<<endl; } } } cout << counter <<" have been added for the PXL in the Rotation matrices list "<< endl; return (TDataSet *)tableSet; }note to myself : to get the position along the Z axis, run LoopOverTGeo over all wafers to check the Z position (= center of the wafer)
Groups:
- bouchet's blog
- Login or register to post comments