Commit 8fbdb12b authored by Mehulkumar Shiroya's avatar Mehulkumar Shiroya
Browse files

STS_geo_beampipe_and_target_position

parent 4fd67d8c
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/* Copyright (C) 2018-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
SPDX-License-Identifier: GPL-3.0-only
Authors: Volker Friese [committer] */
/** @file run_transport.C
** @author Volker Friese <v.friese@gsi.de>
** @since 2 March 2019
......@@ -10,9 +6,7 @@
// Includes needed for IDE
#if !defined(__CLING__)
#include "CbmTransport.h"
#include "FairSystemInfo.h"
#include "TStopwatch.h"
#endif
......@@ -43,9 +37,10 @@
** For the options for the transport simulation, see the documentation of
** CbmTransport.
**/
void run_transport(Int_t nEvents = 2, const char* setupName = "sis100_electron", const char* output = "test",
const char* inputFile = "")
{
void run_transport(Int_t nEvents = 2,
const char* setupName = "sis100_electron", //"sis100_electron",
const char* output = "test",
const char* inputFile = "") {
// --- Logger settings ----------------------------------------------------
FairLogger::GetLogger()->SetLogScreenLevel("INFO");
......@@ -54,7 +49,7 @@ void run_transport(Int_t nEvents = 2, const char* setupName = "sis100_electron",
// ----- Environment --------------------------------------------------
TString myName = "run_transport"; // this macro's name for screen output
TString myName = "run_transport"; // this macro's name for screen output
TString srcDir = gSystem->Getenv("VMCWORKDIR"); // top source directory
// ------------------------------------------------------------------------
......@@ -67,7 +62,8 @@ void run_transport(Int_t nEvents = 2, const char* setupName = "sis100_electron",
std::cout << std::endl;
TString defaultInputFile = srcDir + "/input/urqmd.auau.10gev.centr.root";
TString inFile;
if (strcmp(inputFile, "") == 0) inFile = defaultInputFile;
if (strcmp(inputFile, "") == 0)
inFile = defaultInputFile;
else
inFile = inputFile;
std::cout << "-I- " << myName << ": Using input file " << inFile << std::endl;
......@@ -87,7 +83,7 @@ void run_transport(Int_t nEvents = 2, const char* setupName = "sis100_electron",
run.SetParFileName(parFile);
run.SetGeoFileName(geoFile);
run.LoadSetup(setupName);
run.SetTarget("Gold", 0.025, 2.5);
run.SetTarget("Gold", 0.025, 2.5, 0.0, 0.0, -4.0);
run.SetBeamPosition(0., 0., 0.1, 0.1);
run.SetRandomEventPlane();
run.Run(nEvents);
......@@ -102,7 +98,9 @@ void run_transport(Int_t nEvents = 2, const char* setupName = "sis100_electron",
std::cout << "Macro finished successfully." << std::endl;
std::cout << "Output file is " << outFile << std::endl;
std::cout << "Parameter file is " << parFile << std::endl;
std::cout << "Real time " << rtime << " s, CPU time " << ctime << "s" << std::endl << std::endl;
std::cout << "Real time " << rtime << " s, CPU time " << ctime << "s"
<< std::endl
<< std::endl;
// ------------------------------------------------------------------------
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
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