3 #include <TDatabasePDG.h> 
   11 constexpr 
auto cRED = 
"\033[1;31m";
 
   14 constexpr 
auto cGREEN = 
"\033[1;32m";
 
   17    : fP1x(0.), fP1y(0.), fP1z(0.), fP2x(0.), fP2y(0.), fP2z(0.), fVx(0.), fVy(0.), fVz(0.)
 
   24    : fP1x(0.), fP1y(0.), fP1z(0.), fP2x(0.), fP2y(0.), fP2z(0.), fPDG(TDatabasePDG::Instance()), fVx(0.), fVy(0.),
 
   30    TString dir = getenv(
"VMCWORKDIR");
 
   31    TString simfilepath = dir + 
"/macro/Simulation/data/" + simfile;
 
   32    auto *
f = 
new TFile(simfilepath.Data()); 
 
   34       std::cout << 
cRED << 
" AtTPCFissionGenerator: No simulation file found! Check VMCWORKDIR variable. Exiting... " 
   38       std::cout << 
cGREEN << 
" AtTPCFissionGenerator : Prototype geometry found in : " << simfilepath.Data() << 
cNORMAL 
   41    fTree = 
dynamic_cast<TTree *
>(
f->Get(
"tree101"));
 
   42    Int_t nEvents = fTree->GetEntriesFast();
 
   43    std::cout << 
" Number of events : " << nEvents << std::endl;
 
   44    fTree->SetBranchAddress(
"Evnt", &Evnt);
 
   45    fTree->SetBranchAddress(
"Ntrack", &Ntrack);
 
   46    fTree->SetBranchAddress(
"Aout", Aout);
 
   47    fTree->SetBranchAddress(
"Zout", Zout);
 
   48    fTree->SetBranchAddress(
"fOutPx", fOutPx);
 
   49    fTree->SetBranchAddress(
"fOutPy", fOutPy);
 
   50    fTree->SetBranchAddress(
"fOutPz", fOutPz);
 
   72    fVx = 0., fVy = 0., fVz = 0.;
 
   73    Double_t uma = 931.494028, mp = 938.272013, 
c = 29.972458;
 
   76    fTree->GetEntry(event);
 
  116    std::cout << 
cRED << 
" Fission event : " << 
event << 
cNORMAL << std::endl;