FairRoot/PandaRoot
|
Go to the source code of this file.
Functions | |
gROOT | LoadMacro ("$VMCWORKDIR/gconfig/basiclibs.C") |
basiclibs () | |
gSystem | Load ("libGeoBase") |
gSystem | Load ("libParBase") |
gSystem | Load ("libBase") |
gSystem | Load ("libPndData") |
gSystem | Load ("libField") |
gSystem | Load ("libPassive") |
gSystem | Load ("libPlane") |
gSystem | Load ("libStt") |
gSystem | Load ("libGen") |
gSystem | Load ("libGeom.so") |
c1 | SetFillColor (10) |
geoMan | SetVisLevel (3) |
geoMan | GetMasterVolume () -> Draw("same") |
view | Top () |
view | Centered () |
t | SetBranchAddress ("GeoTracks",&fT) |
for (Int_t j=0;j< t->GetEntriesFast();j++) | |
geoMan | DrawTracks ("same") |
Variables | |
TFile * | file = new TFile("ex2.root") |
TGeoManager * | geoMan = (TGeoManager*) file->Get("FAIRGeom") |
TCanvas * | c1 = new TCanvas("c1", "", 100, 100, 800, 800) |
TView * | view = c1->GetView() |
TTree * | t =file->Get("pndsim") |
TClonesArray * | fT =new TClonesArray("TGeoTrack") |
TGeoTrack * | tr |
TObjArray * | TrList = geoMan->GetListOfTracks() |
basiclibs | ( | ) |
view Centered | ( | ) |
geoMan DrawTracks | ( | "same" | ) |
for | ( | Int_t | j = 0; j< t->GetEntriesFast(); j++ | ) |
gSystem Load | ( | "libGeoBase" | ) |
gSystem Load | ( | "libParBase" | ) |
gSystem Load | ( | "libBase" | ) |
gSystem Load | ( | "libPndData" | ) |
gSystem Load | ( | "libField" | ) |
gSystem Load | ( | "libPassive" | ) |
gSystem Load | ( | "libPlane" | ) |
gSystem Load | ( | "libStt" | ) |
gSystem Load | ( | "libGen" | ) |
gSystem Load | ( | "libGeom.so" | ) |
gROOT LoadMacro | ( | "$VMCWORKDIR/gconfig/basiclibs.C" | ) |
t SetBranchAddress | ( | "GeoTracks" | , |
& | fT | ||
) |
c1 SetFillColor | ( | 10 | ) |
geoMan SetVisLevel | ( | 3 | ) |
view Top | ( | ) |
TCanvas* c1 = new TCanvas("c1", "", 100, 100, 800, 800) |
Definition at line 28 of file ex2/macro/draw.C.
TFile* file = new TFile("ex2.root") |
Definition at line 24 of file ex2/macro/draw.C.
TClonesArray* fT =new TClonesArray("TGeoTrack") |
Definition at line 43 of file ex2/macro/draw.C.
Definition at line 25 of file ex2/macro/draw.C.
Definition at line 41 of file ex2/macro/draw.C.
TGeoTrack* tr |
Definition at line 48 of file ex2/macro/draw.C.
TObjArray* TrList = geoMan->GetListOfTracks() |
Definition at line 49 of file ex2/macro/draw.C.
TView* view = c1->GetView() |
Definition at line 35 of file ex2/macro/draw.C.