Commit 7fe48e03 authored by Marian I Ivanov's avatar Marian I Ivanov
Browse files

PWGPP-123 - macros to be used for the first guess filling of the MC productiontable

parent 600326b5
/*
get production form production table
.L $NOTES/../AliceMcProductionSetup/queryProductionInfo/code/fillMCTable.C
*/
TTree * productionTree=0;
void initMCTable(){
//
//
// Get table from the MonaLisa
// curl --cert $HOME/.globus/usercert.pem --key $HOME/.globus/userkey.pem --capath $HOME/alien/globus/share/certificates "https://alimonitor.cern.ch/job_details.jsp?$&res_path=csv" -o production.csv
//
if (!productionTree){
productionTree=new TTree("productionTree","productionTree");
productionTree->ReadFile("production.csv","",'\"');
}
}
void GetPairProductionJIRA(){
//
//
//
((TTreePlayer*)productionTree->GetPlayer())->SetScanFileName("productionComment.txt");
((TTreePlayer*)productionTree->GetPlayer())->SetScanRedirect(kTRUE);
productionTree->Scan("Production:Description","","col=:300")
}
/*
get production form production table
.L $NOTES/JIRA/PWGPP-123/code/fillMCTable.C
*/
TTree * productionTree=0;
void initMCTable(){
//
//
// Get table from the MonaLisa
// curl --cert $HOME/.globus/usercert.pem --key $HOME/.globus/userkey.pem --capath $HOME/alien/globus/share/certificates "https://alimonitor.cern.ch/job_details.jsp?$&res_path=csv" -o production.csv
//
if (!productionTree){
productionTree=new TTree("productionTree","productionTree");
productionTree->ReadFile("production.csv","",'\"');
}
}
void GetPairProductionJIRA(){
//
//
//
((TTreePlayer*)productionTree->GetPlayer())->SetScanFileName("productionComment.txt");
((TTreePlayer*)productionTree->GetPlayer())->SetScanRedirect(kTRUE);
}
# Macro to fill first estmate of the MC production tables based on the past production
#
# Parsing per production and per RUN JDL, sim.C, rec.C
#
# 1.) Cache basic production information - cacheProductionSetupInormation()
# 2.) Cache per run production information
#
# To run the code some parameters should be adjusted
#
workSpace=$NOTES/JIRA/PWGPP-123/data/productionCache
#
cacheProductionSetupInormation(){
#
# cache per period production information
#
mkdir -p $workSpace/lists
cd $workSpace/lists
#
alien_find /alice/cern.ch/user/a/aliprod/ JDL > production.list
alien_find /alice/cern.ch/user/a/aliprod/ *.C >> production.list
alien_find /alice/cern.ch/user/a/aliprod/ *.sh >> production.list
cd $workSpace/
$ALICE_PHYSICS/../src/PWGPP/QA/scripts/alienSync.sh alienFindCommand="cat lists/production.list" localPathPrefix=$workSpace
}
cachePerRunProductionInfo(){
#
curl --cert $HOME/.globus/usercert.pem --key $HOME/.globus/userkey.pem --capath $HOME/alien/globus/share/certificates "https://alimonitor.cern.ch/job_details.jsp?$&res_path=csv" -o production.csv
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment