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

illustrate how to track gamma-rays coming out from GEANT simulations More...

#include "TH1.h"
#include "TH2.h"
#include "TGeoManager.h"
#include "TGeoTrack.h"
#include "GeantLMOF.h"
#include "GammaTracker.h"
#include "XtermProgressBar.h"

Go to the source code of this file.

Functions

void EPTracking (const char *input, UInt_t mult=1, UInt_t MaxEvents=1000000)
 This function computes the photopeak efficiency for a given multipliciy. More...
 
void GGTracking (const char *input, UInt_t mult=1, UInt_t MaxEvents=1000000)
 This function built a gamma gamma matrix. More...
 
void TestImportAgata ()
 
void VisuTrack (const char *input, UInt_t mult=1, UInt_t MaxEvents=10)
 

Variables

const char TRACKERNAME [] = "OFT"
 

Detailed Description

illustrate how to track gamma-rays coming out from GEANT simulations

Two examples are available to illustrate how to track gamma-rays coming out from the GEANT simulations to build histograms and gamma-gamma matrices.
The GWGEM library and others must be loaded first (see rootlogon.C in the demos/gem directory). To load a tracker (in this case the OFT tracker) in a ROOT session:
root[] Gw::GammaTracker::Load("OFT","/Path/to/the/directory/where/is/the/package/","libtracking.so");
root[] Gw::GammaTracker::IsTracker("OFT")

IsTracker returns true if everything is all right. Once loaded, compile the macros and execute the functions you want:
root[] .L FirstTracking.C+
root[] EPTracking(...)

Author
Olivier Stezowski

Definition in file FirstTracking.C.