Difference: PeterWinterShrubProcessing (8 vs. 9)

Revision 92009-07-23 - PeterWinter

Line: 1 to 1
 
META TOPICPARENT name="PeterWinterAnalysis"
-- PeterWinter - 16 Feb 2009

This page will keep a description of how I use to create the final lifetime histograms from the output shrubs from ./mta....

Subdividing the data sets into groups of same magnet setting

Changed:
<
<
First thing is to separate the runs into data sets according to Sara's classification scheme. One important step for that is to sort them into according groups of magnet settings (mainly +125A and -125A). That is done with ~/jobscripts/ExtractMagnetForDataSets.pl at NPL.
>
>
First thing is to separate the runs into data sets according to Sara's classification scheme. One important step for that is to sort them into according groups of magnet settings (mainly +125A and -125A). That can be done from the MySQL database. The extracted data set files are at ~/jobscripts/lists/datasets. The files in there are named prod_rn10_mu+_a_125 or prod_rn11_mu-_c and comprise a list of run numbers that belong to this data set.
 

Creating the links

Changed:
<
<
After the mta has produced the intermediate shrubs, it might be necessary to create appropriate links to the data sets. Since Brendan had the original trees in his directories on Abe in /cfs/projects/lqo/bkiburg/run11_4/treepass2/mta/, I created data set directories in /cfs/scratch/projects/lqo/pwinter/run11_4/treepass2/. Then, to create the links for each of the data sets, I have a macro in /u/ac/pwinter/jobscripts called MakeLinksForDatasets.pl. It will make the links according to the run numbers that are listed in the current $datasetfile = $HOME."/jobscripts/lists/datasets/".$dataset.".txt";
>
>
After the mta has produced the intermediate shrubs, it might be necessary to create appropriate links to the data sets. The original trees live usually on Abe in /cfs/projects/lqo/bkiburg/run11_4/treepass2/mta/, where treepass2 must be replaced with the according production that you are interested (currently ProdMay09). Then, to create the links for each of the data sets, I have a macro in /u/ac/pwinter/jobscripts called MakeLinksForDatasets.pl. It will make the links according to the run numbers that are listed in the current $datasetfile = $HOME."/jobscripts/lists/datasets/".$dataset.".txt"; . To for example create the links for run 10 data set a_125 for mu+, you have to run: > ./MakeLinksForDatasets.pl 11 prod_rn11_mu+_a_125 Pixel_;
Here the argument 11 denotes that this is run 11. The second argument is the data set name and the last states, that you want to do this for the Pixel shrubs, i.e. the Pixel_treeNNNNN.root files. You might need to adapt some directory paths in the script to your needs.
 
Changed:
<
<

Merging the shrubs on the nodes

Transfer to NPL

>
>

Merging the shrubs on the nodes and transfering to NPL

I have combined these steps into one macro
 

Conversion to lifetime histograms

  1. In order to create histograms, I have a script on NPL at ~/jobscripts/MakeHistogramExe.pl. If you run it, it requires thre input parameters:
    MakeHistogramExe.pl input_directory data_set_name prefix where
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback