Project
Loading...
Searching...
No Matches
O2TrivialMCConfig.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11#include "FairRunSim.h"
13#include "DetectorsBase/Stack.h"
15#include <fairlogger/Logger.h>
16#include "FairModule.h"
18#include "../commonConfig.C"
19
20// these are used in commonConfig.C
22
23namespace o2
24{
25namespace o2trivialmcengineconfig
26{
27
28void Config()
29{
30 // TString* gModel = run->GetGeoModel();
31 FairRunSim* run = FairRunSim::Instance();
32 auto* replay = new mc::O2TrivialMCEngine();
33 stackSetup(replay, run);
34}
35
37{
38 LOG(info) << "Setting up O2TrivialMCEngine sim from library code";
39 Config();
40}
41
42} // namespace o2trivialmcengineconfig
43} // namespace o2
Definition of the Stack class.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"