Changeset 210 for snovis/trunk


Ignore:
Timestamp:
Feb 14, 2007, 9:12:27 AM (17 years ago)
Author:
barrand
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • snovis/trunk/applications/snovis_session.cc

    r208 r210  
    2424
    2525#include "Environment.h"
    26 
    27 //using namespace snova;
    2826
    2927namespace snovis {
     
    9997  try {
    10098    //std::cerr << "snovis_session : startup" << std::endl;
    101     std::cerr << "snovis_session : startup : 000" << std::endl;
    10299 
    103100    // A snova manager:
    104     snovis::mgr my_snova_mgr;
     101    snovis::mgr mgr;
    105102
    106103    // Configure some properties of the snova manager:
    107     my_snova_mgr.set_debug(false);
    108     my_snova_mgr.set_params_filename(params);
    109     //my_snova_mgr.set_G4_macro(G4_macro);
     104    mgr.set_debug(false);
     105    mgr.set_params_filename(params);
     106    //mgr.set_G4_macro(G4_macro);
    110107
    111108    // Use a dedicated vertex generator factory:
    112     snemo::base_VG_factory my_VG_factory;
    113     my_VG_factory.add("CALO_basic",
    114                       snemo::CALO_basic_VG::new_CALO_basic_VG );
    115     my_VG_factory.add("source_simple",
    116                       snemo::source_simple_VG::new_source_simple_VG);
     109    snemo::base_VG_factory VG_factory;
     110    VG_factory.add("CALO_basic",
     111                   snemo::CALO_basic_VG::new_CALO_basic_VG );
     112    VG_factory.add("source_simple",
     113                   snemo::source_simple_VG::new_source_simple_VG);
    117114    // <here you may add more functors in the factory internal map... >
    118115    // NOT AVAILABLE YET!
    119     //my_VG_factory.add("TC_nblocks",
    120     //                  snemo::TC_nblocks_VG::new_TC_nblocks_VG );
     116    //VG_factory.add("TC_nblocks",
     117    //               snemo::TC_nblocks_VG::new_TC_nblocks_VG );
    121118
    122     my_VG_factory.init();
     119    VG_factory.init();
    123120    //if( debug ) my_VG_factory.dump(std::cerr);
    124     my_snova_mgr.set_VG_factory(my_VG_factory);
     121    mgr.set_VG_factory(VG_factory);
    125122
    126123    // Build the guts of the simulation process within the snova manager:
    127124    //std::cerr << "snovis_session :"
    128125    //          << " mgr.init..." << std::endl;
    129     my_snova_mgr.init();
     126    mgr.init();
    130127
    131128    // Run the simulation:
    132     my_snova_mgr.run_sim(argc,argv,is_Mac_app?"Qt":"");
     129    mgr.run_sim(argc,argv,is_Mac_app?"Qt":"");
    133130
    134131    //std::cerr << "snovis_session :"
    135132    //          << " mgr.reset..." << std::endl;
    136     my_snova_mgr.reset(); // not mandatory for we do it in the d-tor.
     133    mgr.reset(); // not mandatory for we do it in the d-tor.
    137134
    138135    //std::cerr << "snovis_session :"
Note: See TracChangeset for help on using the changeset viewer.