Skip to content

Commit 5c4b8c6

Browse files
committed
Revert "Implementation of hybrid generator (AliceO2Group#13699)"
This reverts commit d6a50f0.
1 parent c3ffb66 commit 5c4b8c6

28 files changed

+18
-866
lines changed

Generators/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ o2_add_library(Generators
2424
src/GeneratorTGenerator.cxx
2525
src/GeneratorExternalParam.cxx
2626
src/GeneratorFromFile.cxx
27-
src/GeneratorHybrid.cxx
28-
src/GeneratorHybridParam.cxx
2927
src/GeneratorFromO2KineParam.cxx
3028
src/GeneratorFileOrCmd.cxx
3129
src/GeneratorFileOrCmdParam.cxx
@@ -70,8 +68,6 @@ set(headers
7068
include/Generators/GeneratorTGenerator.h
7169
include/Generators/GeneratorExternalParam.h
7270
include/Generators/GeneratorFromFile.h
73-
include/Generators/GeneratorHybrid.h
74-
include/Generators/GeneratorHybridParam.h
7571
include/Generators/GeneratorFromO2KineParam.h
7672
include/Generators/GeneratorFileOrCmd.h
7773
include/Generators/GeneratorFileOrCmdParam.h

Generators/include/Generators/BoxGenerator.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "Generators/Generator.h"
1818
#include "TParticle.h"
1919
#include <vector>
20-
#include <Generators/BoxGunParam.h>
2120

2221
namespace o2::eventgen
2322
{
@@ -46,13 +45,6 @@ class BoxGenerator : public Generator
4645
SetPhiRange(phimin, phimax);
4746
}
4847

49-
BoxGenerator(BoxGenConfig const& config) : mPDG{config.pdg}, mMult{config.number}
50-
{
51-
SetEtaRange(config.eta[0], config.eta[1]);
52-
SetPRange(config.prange[0], config.prange[1]);
53-
SetPhiRange(config.phirange[0], config.phirange[1]);
54-
}
55-
5648
void SetPRange(Double32_t pmin = 0, Double32_t pmax = 10)
5749
{
5850
mPMin = pmin;

Generators/include/Generators/BoxGunParam.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ struct BoxGunParam : public o2::conf::ConfigurableParamHelper<BoxGunParam> {
3737
O2ParamDef(BoxGunParam, "BoxGun");
3838
};
3939

40-
struct BoxGenConfig {
41-
int pdg = 211; // which particle (default pion); could make this an enum
42-
int number = 10; // how many particles
43-
double eta[2] = {-1, 1}; // eta range
44-
double prange[2] = {0.1, 5}; // energy range min, max in GeV
45-
double phirange[2] = {0., 360.}; // phi range
46-
};
47-
4840
} // end namespace eventgen
4941
} // end namespace o2
5042

Generators/include/Generators/GeneratorExternalParam.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ struct GeneratorExternalParam : public o2::conf::ConfigurableParamHelper<Generat
3434
O2ParamDef(GeneratorExternalParam, "GeneratorExternal");
3535
};
3636

37-
struct ExternalGenConfig {
38-
std::string fileName = "";
39-
std::string funcName = "";
40-
};
41-
4237
} // end namespace eventgen
4338
} // end namespace o2
4439

Generators/include/Generators/GeneratorFileOrCmd.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ struct GeneratorFileOrCmd {
3535
* function so as to better facilitate changes. */
3636
void setup(const GeneratorFileOrCmdParam& param,
3737
const conf::SimConfig& config);
38-
// Configure with local parameters
39-
void setup(const FileOrCmdGenConfig& param,
40-
const conf::SimConfig& config);
4138
/**
4239
* Set command to execute in bacground rather than reading from
4340
* existing file(s)

Generators/include/Generators/GeneratorFileOrCmdParam.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ struct GeneratorFileOrCmdParam : public o2::conf::ConfigurableParamHelper<Genera
3939
O2ParamDef(GeneratorFileOrCmdParam, "GeneratorFileOrCmd");
4040
};
4141

42-
struct FileOrCmdGenConfig {
43-
std::string fileNames = "";
44-
std::string cmd = ""; // Program command line to spawn
45-
};
46-
4742
} // end namespace eventgen
4843
} // end namespace o2
4944

Generators/include/Generators/GeneratorFromFile.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
#include "FairGenerator.h"
1818
#include "Generators/Generator.h"
19-
#include "Generators/GeneratorFromO2KineParam.h"
2019
#include <TRandom3.h>
2120
#include <TGrid.h>
2221

@@ -70,7 +69,6 @@ class GeneratorFromO2Kine : public o2::eventgen::Generator
7069
public:
7170
GeneratorFromO2Kine() = default;
7271
GeneratorFromO2Kine(const char* name);
73-
GeneratorFromO2Kine(O2KineGenConfig const& pars);
7472

7573
bool Init() override;
7674

@@ -102,7 +100,6 @@ class GeneratorFromO2Kine : public o2::eventgen::Generator
102100
unsigned int mRngSeed = 0; //! randomizer seed, 0 for random value
103101
bool mRandomPhi = false; //! whether we want to randomize the phi angle of the particles
104102
TGrid* mAlienInstance = nullptr; // a cached connection to TGrid (needed for Alien locations)
105-
std::unique_ptr<O2KineGenConfig> mConfig; //! Configuration object
106103

107104
std::unique_ptr<o2::dataformats::MCEventHeader> mOrigMCEventHeader; //! the MC event header of the original file
108105

Generators/include/Generators/GeneratorFromO2KineParam.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@ struct GeneratorFromO2KineParam : public o2::conf::ConfigurableParamHelper<Gener
3939
O2ParamDef(GeneratorFromO2KineParam, "GeneratorFromO2Kine");
4040
};
4141

42-
struct O2KineGenConfig {
43-
bool skipNonTrackable = true;
44-
bool continueMode = false;
45-
bool roundRobin = false; // read events with period boundary conditions
46-
bool randomize = false; // randomize the order of events
47-
unsigned int rngseed = 0; // randomizer seed, 0 for random value
48-
bool randomphi = false; // randomize phi angle
49-
std::string fileName = ""; // filename to read from - takes precedence over SimConfig if given
50-
};
51-
5242
} // end namespace eventgen
5343
} // end namespace o2
5444

Generators/include/Generators/GeneratorHepMC.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "Generators/Generator.h"
1818
#include "Generators/GeneratorFileOrCmd.h"
1919
#include "Generators/GeneratorHepMCParam.h"
20-
#include "Generators/GeneratorFileOrCmdParam.h"
2120

2221
#ifdef GENERATORS_WITH_HEPMC3_DEPRECATED
2322
namespace HepMC
@@ -70,10 +69,6 @@ class GeneratorHepMC : public Generator, public GeneratorFileOrCmd
7069
void setup(const GeneratorFileOrCmdParam& param0,
7170
const GeneratorHepMCParam& param,
7271
const conf::SimConfig& config);
73-
// Generator configuration from external local parameters
74-
void setup(const FileOrCmdGenConfig& param0,
75-
const HepMCGenConfig& param,
76-
const conf::SimConfig& config);
7772
/**
7873
* Generate a single event. The event is read in from the current
7974
* input file. Returns false if a new event could not be read.
@@ -88,7 +83,6 @@ class GeneratorHepMC : public Generator, public GeneratorFileOrCmd
8883

8984
/** setters **/
9085
void setEventsToSkip(uint64_t val) { mEventsToSkip = val; };
91-
void setVersion(const int& ver) { mVersion = ver; };
9286

9387
protected:
9488
/** copy constructor **/

Generators/include/Generators/GeneratorHepMCParam.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,6 @@ struct GeneratorHepMCParam : public o2::conf::ConfigurableParamHelper<GeneratorH
5454
O2ParamDef(GeneratorHepMCParam, "HepMC");
5555
};
5656

57-
struct HepMCGenConfig {
58-
// Same parameters as GeneratorHepMCParam
59-
int version = 0;
60-
uint64_t eventsToSkip = 0;
61-
std::string fileName = "";
62-
bool prune = false;
63-
};
64-
6557
} // end namespace eventgen
6658
} // end namespace o2
6759

0 commit comments

Comments
 (0)