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 :

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;