- 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
generating pedestal files txt
Step 1 :
a) run over a pedestal file generated with Tonko's routine ; this .daq file has only one 1 event with ped and rms.
The StSstDaqMaker is used for this.
In this code, the strips reordering is *not* done ( the reordering consists in mapping the RDO channels from the A128C to silicon strips numbering)
Since we know Tonko reads the data as they come, and they come in the A128C ordering, it should match.
In this code, the wafer swapping (16P<-->1N, etc ...) is *not* done.
b) the recalculation of pedestal is done in this code too.
c) 20*2 histograms are filled with the new pedestal values and written to a root file ; Histograms are named AdcStrip_[side]_[ladder] with 0≤side<2 and 0≤ladder <20
Step 2 :
a) the root file with the previous histograms is used to dump the values into the txt files.
b) basically it's 2 loops over 5RDO and 8 fibers.
Based on the RDO and Fiber Id's, I get the (ladder,side) using the corresponding table :
and retrieve for the corresponding (RDO,fiber) the correct (Ladder,side)
c) write into the current RDO txt file the values
Macro to write the txt files is at :
/star/u/bouchet/SSD_COMMISSIONNING/offlineChain_20140505/doPedestal.C
A set of 5 txt files (8 RDO fibers/file) has been produced for the run 15127085 with the following setup :
a) run over a pedestal file generated with Tonko's routine ; this .daq file has only one 1 event with ped and rms.
The StSstDaqMaker is used for this.
In this code, the strips reordering is *not* done ( the reordering consists in mapping the RDO channels from the A128C to silicon strips numbering)
Since we know Tonko reads the data as they come, and they come in the A128C ordering, it should match.
In this code, the wafer swapping (16P<-->1N, etc ...) is *not* done.
b) the recalculation of pedestal is done in this code too.
c) 20*2 histograms are filled with the new pedestal values and written to a root file ; Histograms are named AdcStrip_[side]_[ladder] with 0≤side<2 and 0≤ladder <20
Step 2 :
a) the root file with the previous histograms is used to dump the values into the txt files.
b) basically it's 2 loops over 5RDO and 8 fibers.
Based on the RDO and Fiber Id's, I get the (ladder,side) using the corresponding table :
const int RDO2LADDER[5][8] = { {1,2,3,4,5,6,7,8}, {9,10,11,12,13,14,15,16}, {17,18,19,20,1,2,3,4}, {5,6,7,8,9,10,11,12}, {13,14,15,16,17,18,19,20}};
and retrieve for the corresponding (RDO,fiber) the correct (Ladder,side)
c) write into the current RDO txt file the values
Macro to write the txt files is at :
/star/u/bouchet/SSD_COMMISSIONNING/offlineChain_20140505/doPedestal.C
A set of 5 txt files (8 RDO fibers/file) has been produced for the run 15127085 with the following setup :
UInt_t MASK = 1023; UInt_t THRESHOLD = 700; UInt_t OFFSET = 375; UInt_t NSIGMA = 4; UInt_t CONSTANT = 3;
Groups:
- bouchet's blog
- Login or register to post comments