GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — AliceO2/run/o2sim_evalmat.cxx at dev · AliceO2Group/AliceO2 Expand file tree/ Copy patho2sim_evalmat.cxxMore file actions 54 lines (47 loc) · 1.89 KB / Copy patho2sim_evalmat.cxxFile metadata and controls54 lines (47 loc) · 1.89 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 // Copyright 2019-2020 CERN and copyright holders of ALICE O2. // See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. // All rights not expressly granted are reserved. // // This software is distributed under the terms of the GNU General Public // License v3 (GPL Version 3), copied verbatim in the file "COPYING". // // In applying this license CERN does not waive the privileges and immunities // granted to it by virtue of its status as an Intergovernmental Organization // or submit itself to any jurisdiction. #include "../macro/o2sim.C" #include <SimConfig/SimConfig.h> #include <SimConfig/MatMapParams.h> #include <TStopwatch.h> #include <fairlogger/Logger.h> #include <SimSetup/StaticTLSReserve.h> int main(int argc, char* argv[]) { // Geant4 is loaded by dlopen and may need a static TLS reserve, which glibc only takes at program start o2::ensureStaticTLSReserve(argv); TStopwatch timer; timer.Start(); auto& conf = o2::conf::SimConfig::Instance(); #ifdef SIM_RUN5 conf.setRun5(); #endif auto& matmapP = o2::conf::MatMapParams::Instance(); if (!conf.resetFromArguments(argc, argv)) { return 1; } // custom number of events // customize the level of output FairLogger::GetLogger()->SetLogScreenLevel(conf.getLogSeverity().c_str()); FairLogger::GetLogger()->SetLogVerbosityLevel(conf.getLogVerbosity().c_str()); // call o2sim "macro" o2sim(false, true); o2::utils::ShmManager::Instance().release(); // print total time LOG(info) << "Simulation process took " << timer.RealTime() << " s"; // We do this instead of return 0 // for the reason that we see lots of problems // with TROOTs atexit mechanism often triggering double-free or delete symptoms. // While this is not optimal ... I think it is for the moment // better to have a stable simulation runtime in contrast to // having to debug complicated "atexit" memory problems. _exit(0); } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |