Project
Loading...
Searching...
No Matches
MCReplayConfig.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
12#include "FairRunSim.h"
13#include "MCReplay/MCReplayEngine.h"
15#include "DetectorsBase/Stack.h"
17#include <fairlogger/Logger.h>
18#include "FairModule.h"
20#include "../commonConfig.C"
21
22// these are used in commonConfig.C
24
25namespace o2
26{
27namespace mcreplayconfig
28{
29
30void Config()
31{
32 // TString* gModel = run->GetGeoModel();
33 FairRunSim* run = FairRunSim::Instance();
34 auto* replay = new mcreplay::MCReplayEngine();
35 stackSetup(replay, run);
37 replay->setStepFilename(params.stepFilename);
38 replay->setStepTreename(params.stepTreename);
39 replay->SetCut("CUTALLE", params.energyCut);
40 replay->cutsFromConfig(params.cutFile);
41 replay->blockSetProcessesCuts();
42}
43
45{
46 LOG(info) << "Setting up MCReplay sim from library code";
47 Config();
48}
49
50} // namespace mcreplayconfig
51} // namespace o2
Definition of the Stack class.
GLenum const GLfloat * params
Definition glcorearb.h:272
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"