/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ // $Id$ // // Author: I. Hrivnacova // #include "TFluka.h" #include "FGeometryInit.hh" #include "AliDetConstructionHelper.h" #include "AliRun.h" #include #define flukam flukam_ extern "C" void flukam(const G4int & GeoFlag); int main(int argc, char** argv) { // ROOT =================== TROOT aTROOT("Alice","Alice Flugg prototype Root I/O"); // AliRun AliRun* run = new AliRun("gAlice","The Alice run manager"); G4cout << "AliRun has been created." << G4endl; // TFluka TFluka* fluka = new TFluka("TFluka", "The Fluka Monte Carlo"); G4cout << "TFluka has been created." << G4endl; // Detector construction helper AliDetConstructionHelper* detHelper = new AliDetConstructionHelper(); G4cout << "Detector construction helper has been created." << G4endl; // Flugg FGeometryInit* theFGeometryInit = FGeometryInit::GetInstance(); theFGeometryInit->setDetConstruction(detHelper->DetConstruction()); G4cout << "Detector construction has been set to Flugg." << G4endl; //flag for geometry: const G4int flag = 1; // 1 for GEANT4 // 0 for FLUKA // 2 for Rubia //call fluka flukam(flag); delete run; return 0; }