Commit 15b879db authored by Sergey Gorbunov's avatar Sergey Gorbunov
Browse files

update

parent 3329bf18
#include "TROOT.h"
#include "TSystem.h"
<<<<<<< HEAD
#include "myParameters.h"
=======
#include <FairLogger.h>
>>>>>>> update of macros
/*
Macro to run standard cbmroot qa in a simplified form
Example:
......@@ -14,7 +11,10 @@
*/
void myQa(TString inpSetup = "el", TString inpEnergy = "10gev", TString inpCentr = "mbias", TString type = "eb") {
void myQa(TString inpSetup = "el",
TString inpEnergy = "10gev",
TString inpCentr = "mbias",
TString type = "eb") {
// setup: "el" or "mu"
// energy: "10gev" or "25gev"
......@@ -33,20 +33,13 @@ void myQa(TString inpSetup = "el", TString inpEnergy = "10gev", TString inpCent
return;
}
TString file = inpSetup + "." + inpEnergy + "." + inpCentr + "." + type;
<<<<<<< HEAD
TString command = s + ".x " + myParameters::kCBMROOT_DIR + "/macro/run/run_qa.C(" + "\"" + myParameters::kDATA_DIR + "/" + file
+ "\", " + setup + ")";
=======
file = "\"data/" + file;
TString command = s + ".x $CBMSRCDIR/macro/run/run_qa.C(" + file
+ "\", "+ file
+ "\", "+ file
+ "\", "+ file
+ "\", "+ file
+ "\", " + setup + ", -1)";
>>>>>>> update of macros
TString file = "\"";
file = file + myParameters::kDATA_DIR + "/" + inpSetup + "." + inpEnergy + "."
+ inpCentr + "." + type + "\"";
TString command = s + ".x $VMCWORKDIR/macro/run/run_qa.C(" + file + ", "
+ file + ", " + file + ", " + file + ", " + file + ", "
+ setup + ", -1)";
cout << "processing command " << command << endl;
gROOT->ProcessLine(command);
......
......@@ -34,10 +34,10 @@ void myReco(TString inpSetup = "el",
TString file = myParameters::kDATA_DIR + "/" + inpSetup + "." + inpEnergy
+ "." + inpCentr + "." + type;
TString eventBuilder = "Ideal";
TString eventBuilder = ""; //"Ideal";
TString command = s + ".x $VMCWORKDIR/macro/run/run_reco.C(" + "\"" + file
+ "\", -1, 0, \"\", \"+eventBuilder+\", " + setup
+ "\", -1, 0, \"\", \"" + eventBuilder + "\", " + setup
+ ", \"\", true)";
cout << "processing command " << command << endl;
......
......@@ -12,10 +12,11 @@
*/
void myTransport(TString inpSetup = "el",
void myTransport(TString inpSetup = "el",
const char* inpEnergy = "10gev",
const char* inpCentr = "mbias",
const char* inpDir = "/home/cbmdock/cbmroot/input/", int nEvents = 100) {
const char* inpCentr = "mbias",
int nEvents = 100,
const char* inpDir = "$VMCWORKDIR/input") {
// setup: "el" or "mu"
// energy: "10gev" or "25gev"
......@@ -36,16 +37,17 @@ void myTransport(TString inpSetup = "el",
return;
}
TString file = myParameters::kDATA_DIR + "/" + inpSetup + "." + inpEnergy + "." + inpCentr;
TString file0 = inpSetup + "." + inpEnergy + "." + inpCentr;
TString file = myParameters::kDATA_DIR + "/" + file0;
TString events;
events = events + "\"" + inpDir + "/urqmd.auau." + inpEnergy
+ "." + inpCentr + ".root\"";
events = events + "\"" + inpDir + "/urqmd.auau." + inpEnergy + "." + inpCentr
+ ".root\"";
TString command;
command = command + ".x $VMCWORKDIR/macro/run/run_transport.C(" + nEvents+ ","+ setup
+ ",\"" + myParameters::kDATA_DIR + "/" + file + "\","
+ events + ", 1)";
command = command + ".x $VMCWORKDIR/macro/run/run_transport.C(" + nEvents
+ "," + setup + ",\"" + file + "\"," + events + ", 1)";
cout << "processing command " << command << endl;
......@@ -54,11 +56,11 @@ void myTransport(TString inpSetup = "el",
gSystem->Exec(s + "cp " + file + ".par.root " + file + ".eb.par.root");
gSystem->Exec(s + "cp " + file + ".par.root " + file + ".tb.par.root");
gSystem->Exec(s + "ln -sf " + file + ".tra.root " + file + ".eb.tra.root");
gSystem->Exec(s + "ln -sf " + file + ".tra.root " + file + ".tb.tra.root");
gSystem->Exec(s + "ln -sf " + file + ".geo.root " + file + ".eb.geo.root");
gSystem->Exec(s + "ln -sf " + file + ".geo.root " + file + ".tb.geo.root");
gSystem->Exec(s + "ln -sf " + file0 + ".tra.root " + file + ".eb.tra.root");
gSystem->Exec(s + "ln -sf " + file0 + ".tra.root " + file + ".tb.tra.root");
gSystem->Exec(s + "ln -sf " + file0 + ".geo.root " + file + ".eb.geo.root");
gSystem->Exec(s + "ln -sf " + file0 + ".geo.root " + file + ".tb.geo.root");
cout << "processed command " << command << endl;
}
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