Skip to content

Commit 12377ec

Browse files
authored
Revert "First implementation of loopers inclusion in base Generator class"
This reverts commit b8c867d.
1 parent acb3aed commit 12377ec

File tree

14 files changed

+146
-1007
lines changed

14 files changed

+146
-1007
lines changed

Common/SimConfig/include/SimConfig/SimConfig.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ struct SimConfigData {
5252
std::vector<std::string> mActiveModules; // list of active modules
5353
std::vector<std::string> mReadoutDetectors; // list of readout detectors
5454
std::string mMCEngine; // chosen VMC engine
55-
bool mNoLoopers = false; // Disable automatic TPC loopers
5655
std::string mGenerator; // chosen VMC generator
5756
std::string mTrigger; // chosen VMC generator trigger
5857
unsigned int mNEvents; // number of events to be simulated
@@ -139,8 +138,6 @@ class SimConfig
139138
// get selected active detectors
140139
std::vector<std::string> const& getActiveModules() const { return mConfigData.mActiveModules; }
141140
std::vector<std::string> const& getReadoutDetectors() const { return mConfigData.mReadoutDetectors; }
142-
// get loopers veto
143-
bool getLoopersVeto() const { return mConfigData.mNoLoopers; }
144141

145142
// static helper functions to determine list of active / readout modules
146143
// can also be used from outside

Common/SimConfig/src/SimConfig.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ void SimConfig::initOptions(boost::program_options::options_description& options
7474
"run", bpo::value<int>()->default_value(-1), "ALICE run number")(
7575
"asservice", bpo::value<bool>()->default_value(false), "run in service/server mode")(
7676
"noGeant", bpo::bool_switch(), "prohibits any Geant transport/physics (by using tight cuts)")(
77-
"noLoopers", bpo::bool_switch(), "disable automatic TPC loopers")(
7877
"forwardKine", bpo::bool_switch(), "forward kinematics on a FairMQ channel")(
7978
"noDiscOutput", bpo::bool_switch(), "switch off writing sim results to disc (useful in combination with forwardKine)");
8079
options.add_options()("fromCollContext", bpo::value<std::string>()->default_value(""), "Use a pregenerated collision context to infer number of events to simulate, how to embedd them, the vertex position etc. Takes precedence of other options such as \"--nEvents\". The format is COLLISIONCONTEXTFILE.root[:SIGNALNAME] where SIGNALNAME is the event part in the context which is relevant.");
@@ -298,7 +297,6 @@ bool SimConfig::resetFromParsedMap(boost::program_options::variables_map const&
298297
using o2::detectors::DetID;
299298
mConfigData.mMCEngine = vm["mcEngine"].as<std::string>();
300299
mConfigData.mNoGeant = vm["noGeant"].as<bool>();
301-
mConfigData.mNoLoopers = vm["noLoopers"].as<bool>();
302300

303301
// Reset modules and detectors as they are anyway re-parsed
304302
mConfigData.mReadoutDetectors.clear();

Generators/CMakeLists.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ o2_add_library(Generators
4141
src/GeneratorTParticleParam.cxx
4242
src/GeneratorService.cxx
4343
src/FlowMapper.cxx
44-
$<$<BOOL:${onnxruntime_FOUND}>:src/TPCLoopers.cxx>
45-
$<$<BOOL:${onnxruntime_FOUND}>:src/TPCLoopersParam.cxx>
4644
$<$<BOOL:${pythia_FOUND}>:src/GeneratorPythia8.cxx>
4745
$<$<BOOL:${pythia_FOUND}>:src/DecayerPythia8.cxx>
4846
$<$<BOOL:${pythia_FOUND}>:src/GeneratorPythia8Param.cxx>
@@ -55,7 +53,6 @@ o2_add_library(Generators
5553
PUBLIC_LINK_LIBRARIES FairRoot::Base O2::SimConfig O2::CommonUtils O2::DetectorsBase O2::ZDCBase
5654
O2::SimulationDataFormat ${pythiaTarget} ${hepmcTarget}
5755
FairRoot::Gen
58-
$<$<BOOL:${onnxruntime_FOUND}>:onnxruntime::onnxruntime>
5956
TARGETVARNAME targetName)
6057

6158
if(pythia_FOUND)
@@ -66,10 +63,6 @@ if(HepMC3_FOUND)
6663
target_compile_definitions(${targetName} PUBLIC GENERATORS_WITH_HEPMC3)
6764
endif()
6865

69-
if(onnxruntime_FOUND)
70-
target_compile_definitions(${targetName} PUBLIC GENERATORS_WITH_ONNXRUNTIME)
71-
endif()
72-
7366
set(headers
7467
include/Generators/Generator.h
7568
include/Generators/Trigger.h
@@ -95,12 +88,6 @@ set(headers
9588
include/Generators/FlowMapper.h
9689
)
9790

98-
if(onnxruntime_FOUND)
99-
list(APPEND headers
100-
include/Generators/TPCLoopers.h
101-
include/Generators/TPCLoopersParam.h)
102-
endif()
103-
10491
if(pythia_FOUND)
10592
list(APPEND headers
10693
include/Generators/GeneratorPythia8.h

Generators/include/Generators/Generator.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
#include "FairGenerator.h"
1818
#include "TParticle.h"
1919
#include "Generators/Trigger.h"
20-
#ifdef GENERATORS_WITH_ONNXRUNTIME
21-
#include "Generators/TPCLoopers.h"
22-
#include "Generators/TPCLoopersParam.h"
23-
#endif
2420
#include <functional>
2521
#include <vector>
2622
#include <unordered_map>
@@ -77,7 +73,6 @@ class Generator : public FairGenerator
7773
/** methods to override **/
7874
virtual Bool_t generateEvent() = 0; // generates event (in structure internal to generator)
7975
virtual Bool_t importParticles() = 0; // fills the mParticles vector (transfer from generator state)
80-
Bool_t loopers(); // adds loopers to the event in case TPC is used
8176
virtual void updateHeader(o2::dataformats::MCEventHeader* eventHeader) {};
8277
Bool_t triggerEvent();
8378

@@ -159,8 +154,6 @@ class Generator : public FairGenerator
159154
private:
160155
void updateSubGeneratorInformation(o2::dataformats::MCEventHeader* header) const;
161156

162-
// loopers flag
163-
Bool_t mAddLoopers = kFALSE;
164157
// collect an ID and a short description of sub-generator entities
165158
std::unordered_map<int, std::string> mSubGeneratorsIdToDesc;
166159
// the current ID of the sub-generator used in the current event (if applicable)
@@ -169,12 +162,6 @@ class Generator : public FairGenerator
169162
// global static information about (upper limit of) number of events to be generated
170163
static unsigned int gTotalNEvents;
171164

172-
#ifdef GENERATORS_WITH_ONNXRUNTIME
173-
// Loopers generator instance
174-
std::unique_ptr<o2::eventgen::GenTPCLoopers> mLoopersGen = nullptr;
175-
#endif
176-
void initLoopersGen();
177-
178165
ClassDefOverride(Generator, 2);
179166

180167
}; /** class Generator **/

Generators/include/Generators/TPCLoopersParam.h

Lines changed: 0 additions & 48 deletions
This file was deleted.

Generators/include/TPCLoopers.h

Lines changed: 0 additions & 127 deletions
This file was deleted.

Generators/share/egconfig/ScalerComptonParams.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

Generators/share/egconfig/ScalerPairParams.json

Lines changed: 0 additions & 34 deletions
This file was deleted.

Generators/share/egconfig/gaussian_params.csv

Lines changed: 0 additions & 4 deletions
This file was deleted.

Generators/share/egconfig/poisson_params.csv

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)