Commit 763a6508 authored by Stezowski Olivier's avatar Stezowski Olivier
Browse files

All classes are now in the Gw namespace

git-svn-id: svn+ssh://anonsvn.in2p3.fr/agata/gammaware/trunk@81 c3abf467-7ff2-0310-b516-c5fb849bdde0
parent 6021ff58
......@@ -21,7 +21,7 @@ prefix = @prefix@
exec_prefix = @exec_prefix@
# to built the gammaware package
all: conf modules end
all: showconf modules end
# one directory for each sub-project
SUBDIRS = @SUBPROJETS@
......
......@@ -2574,7 +2574,7 @@ fi
if test "$ok_conf" = "true"; then
echo "---------------------------------------------------------------------"
echo " Check the installation parameters with:"
echo " make conf"
echo " make showconf"
echo " To build the gammaware package:"
echo " make"
echo " and to install the package:"
......
......@@ -2574,7 +2574,7 @@ fi
if test "$ok_conf" = "true"; then
echo "---------------------------------------------------------------------"
echo " Check the installation parameters with:"
echo " make conf"
echo " make showconf"
echo " To build the gammaware package:"
echo " make"
echo " and to install the package:"
......
......@@ -141,7 +141,7 @@ fi
if test "$ok_conf" = "true"; then
echo "---------------------------------------------------------------------"
echo " Check the installation parameters with:"
echo " make conf"
echo " make showconf"
echo " To build the gammaware package:"
echo " make"
echo " and to install the package:"
......
......@@ -9,12 +9,12 @@
// load needed libraries
printf("- Try to load some needed libraries \n") ;
tmp = gwprefix; tmp += "lib/libGWPHYSICS.so";
if ( gSystem->Load(tmp.Data()) == 0 ) printf(" libGWPHYSICS.so loaded \n") ;
else printf(" WARNING libGWPHYSICS.so not loaded \n") ;
tmp = gwprefix; tmp += "lib/libGWGEM.so";
if ( gSystem->Load(tmp.Data()) == 0 ) printf(" libGWGEM.so loaded \n") ;
else printf(" WARNING libGWGEM.so not loaded \n") ;
tmp = gwprefix; tmp += "lib/libGWPHYSICS";
if ( gSystem->Load(tmp.Data()) == 0 ) printf(" libGWPHYSICS loaded \n") ;
else printf(" WARNING libGWPHYSICS not loaded \n") ;
tmp = gwprefix; tmp += "lib/libGWGEM";
if ( gSystem->Load(tmp.Data()) == 0 ) printf(" libGWGEM loaded \n") ;
else printf(" WARNING libGWGEM not loaded \n") ;
// expand path to get specific macros
TString macroPATH = gROOT->GetMacroPath();
......
......@@ -9,8 +9,11 @@
// load libraries to get event definition.
printf("- Try to load some needed libraries \n") ;
tmp = gwprefix; tmp += "lib/libGWTOOLS.so";
if ( gSystem->Load(tmp.Data()) == 0 ) printf(" libGWTOOLS.so loaded \n") ;
tmp = gwprefix; tmp += "lib/libGWPHYSICS";
if ( gSystem->Load(tmp.Data()) == 0 ) printf(" libGWPHYSICS loaded \n") ;
else printf(" WARNING libGWPHYSICS not loaded \n") ;
tmp = gwprefix; tmp += "lib/libGWTOOLS";
if ( gSystem->Load(tmp.Data()) == 0 ) printf(" libGWTOOLS loaded \n") ;
else printf(" WARNING libGWTOOLS.so not loaded \n") ;
// expand path to get specific macros
......
......@@ -40,7 +40,7 @@ void BrowserDB(const char *hname)
if ( gSystem->Load("libGWTOOLS.so") < 0 )
{ cout << "libGWTOOLS.so is needed to display " << hname << endl; return; }
HistoDB hdb; TString t = hname;
Gw::HistoDB hdb; TString t = hname;
if (t.EndsWith(".s")) { // here the action for gpsi .. could be changed to THstack
t.Prepend("gpsi:"); hdb.Open("tmp",t.Data()); hdb.ls();
......
......@@ -43,6 +43,7 @@ The GammaWare is used then to add discret gamma-rays.
using namespace std;
#endif
using namespace Gw;
/** This function calculates and writes in a file the gamma cascades
......
......@@ -30,6 +30,8 @@
using namespace std;
#endif
using namespace Gw;
#define MAX_STRING_LENGTH 50
/** Function to generate discret gamma-rays between several level schemes
......
/** \file ToGeant.C to illustrate how to use the GammaWare to produce input for Enrico's program */
using namespace Gw;
/** To produce sequences of gamma-ray energies and format them to Enrico's program
Function to generate gammas from on a level Scheme and store them in a file formatted for Enrico's programs
......
......@@ -4,6 +4,8 @@
*
*/
using namespace Gw;
/**
\date 02/2005 \author Olivier Stezowski
......
......@@ -6,6 +6,8 @@
\author Olivier Stezowski
*/
using namespace Gw;
/** Function to make a monte carlo on any AGS/or ENSDF file
Usage:
......
......@@ -16,6 +16,8 @@
\author Olivier Stezowski
*/
using namespace Gw;
/** function to check if a AGS file is correctly read by drawing it
Usage:
......
......@@ -3,12 +3,14 @@
#include "BaseFilter.h"
#endif
using namespace Gw;
ClassImp(BaseFilter);
// BaseFilter members /////////////////////////////////////////////////////
BaseFilter::BaseFilter() : TNamed("BaseFilter","Base for any experimental filter")
{
fRand = GwRand::Instance();
fRand = Random::Instance();
}
BaseFilter::~BaseFilter()
......
......@@ -9,10 +9,12 @@
#include <TList.h>
#endif
#ifndef GW_GWRAND_H
#include <GwRand.h>
#ifndef GW_RANDOM_H
#include <Random.h>
#endif
namespace Gw {
//! This class is a base class for any experimental filter
/*!
In the GammaWare, the physics generators give cascades of links stored in
......@@ -26,7 +28,7 @@
class BaseFilter : public TNamed
{
protected:
GwRand *fRand; // unique GwRand instance
Random *fRand; // unique Gw::Rand instance
public:
BaseFilter();
......@@ -47,4 +49,6 @@ public:
};
// BaseFilter inline members //////////////////////////////////////////////////////
// End BaseFilter inline members //////////////////////////////////////////////////
}
#endif
......@@ -4,6 +4,6 @@
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class BaseFilter;
#pragma link C++ class Gw::BaseFilter;
#endif
......@@ -28,6 +28,8 @@
#include <XGammaLink.h>
#endif
using namespace Gw;
ClassImp(BaseGEM);
BaseGEM::BaseGEM()
......
......@@ -35,6 +35,8 @@
#include <Link.h>
#endif
namespace Gw {
/**
Class to get randomly cascades of gammas on the basis of a level scheme
......@@ -125,4 +127,6 @@ public:
};
// inline members
inline const LevelScheme & BaseGEM::GetLS() const { return fLevelScheme; }
}
#endif
#ifdef __CINT__
#pragma link C++ class BaseGEM;
#pragma link C++ class Gw::BaseGEM;
#endif
......@@ -28,6 +28,8 @@
#include "TestFeeding.h"
#endif
using namespace Gw;
ClassImp(GEM);
GEM::GEM()
......
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