GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
firstdemo.C File Reference

to illustrate how to use GWPHYSICS and GWGEM in a root session More...

#include <Link.h>
#include <XGammaLink.h>
#include <TStopwatch.h>
#include <TH1.h>
#include <TTree.h>
#include <iostream>

Go to the source code of this file.

Functions

void CGate (TH1 *spgated, Cascade *cas, Int_t g1, Int_t g2)
 Function to gate on a cascade. More...
 
void CheckLS (const Char_t *name="197Pb.ags")
 function to check if a AGS file is correctly read by drawing it More...
 
void CheckX (const Char_t *name="simu2.ags")
 function to check if a AGS file is correctly read by looking for XGammaLink More...
 
void oneLS (const Char_t *nameAGS, Int_t nbcas=100)
 Function to make a monte carlo on any AGS file. More...
 
void showIE (Int_t nbcas=100)
 Function to display the entry point distribution in a (spin,excitation energy) plan. More...
 
void simu1 (Int_t nbcas=100)
 Function to test BaseGEM. More...
 
void simu1BG (Int_t nbcas=100000)
 Same as simu1() but with another source of gamma-ray that produces a continuous background. More...
 
void simu1X (Int_t nbcas=100000)
 Same as simu1() but X-rays are added to the converted 417 keV. More...
 
void twoLS (Int_t nbcas=100)
 Function to make a Monte Carlo on two AGS files. More...
 

Detailed Description

to illustrate how to use GWPHYSICS and GWGEM in a root session

the two libraries must be loaded first with
gSystem->Load("libGWPHYSICS.so"); gSystem->Load("libGWGEM.so");

Another possibility is to use a rootlogon.C file to do the job. The are examples of such a file in demos directory.

In this file several functions are defined to illustrate some features of the gammaware package:

  • reading of a level scheme
  • switching on/off the X-rays production by converted gamma-rays
  • generating simulated cascades from one/two level schemes.
  • adding gamma-rays from a continuum to cascades of discret gamma-rays.
  • ..
Author
Olivier Stezowski

Definition in file firstdemo.C.