Skip to content

Commit 4cc00d4

Browse files
committed
Clang formatting fix
1 parent 94b4413 commit 4cc00d4

File tree

6 files changed

+246
-248
lines changed

6 files changed

+246
-248
lines changed

Generators/include/Generators/GeneratorFromFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class GeneratorFromO2Kine : public o2::eventgen::Generator
103103
bool mRandomPhi = false; //! whether we want to randomize the phi angle of the particles
104104
TGrid* mAlienInstance = nullptr; // a cached connection to TGrid (needed for Alien locations)
105105
bool mGlobal = true; // whether to use the global configuration
106-
std::unique_ptr<O2KineGenConfig> mConfig; //! Local configuration of the generator
106+
std::unique_ptr<O2KineGenConfig> mConfig; //! Local configuration of the generator
107107

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

Generators/include/Generators/GeneratorHybridParam.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace eventgen
2929
**/
3030

3131
struct GeneratorHybridParam : public o2::conf::ConfigurableParamHelper<GeneratorHybridParam> {
32-
std::string configFile = ""; // JSON configuration file for the generators
32+
std::string configFile = ""; // JSON configuration file for the generators
3333
bool randomize = false; // randomize the order of the generators, if not generator using fractions
3434
O2ParamDef(GeneratorHybridParam, "GeneratorHybrid");
3535
};

Generators/src/GeneratorFactory.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ void GeneratorFactory::setPrimaryGenerator(o2::conf::SimConfig const& conf, Fair
246246
LOG(info) << "Init hybrid generator";
247247
auto& hybridparam = GeneratorHybridParam::Instance();
248248
std::string config = hybridparam.configFile;
249-
//check if config string points to an existing file and not empty
249+
// check if config string points to an existing and not empty file
250250
if (config.empty()) {
251251
LOG(fatal) << "No configuration file provided for hybrid generator";
252252
return;

Generators/src/GeneratorFromFile.cxx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ GeneratorFromO2Kine::GeneratorFromO2Kine(const char* name)
207207
LOG(error) << "Problem reading events from file " << name;
208208
}
209209

210-
GeneratorFromO2Kine::GeneratorFromO2Kine(O2KineGenConfig const& pars): GeneratorFromO2Kine(pars.fileName.c_str())
210+
GeneratorFromO2Kine::GeneratorFromO2Kine(O2KineGenConfig const& pars) : GeneratorFromO2Kine(pars.fileName.c_str())
211211
{
212212
mGlobal = false;
213213
mConfig = std::make_unique<O2KineGenConfig>(pars);
@@ -218,7 +218,7 @@ bool GeneratorFromO2Kine::Init()
218218

219219
// read and set params
220220

221-
if(mGlobal){
221+
if (mGlobal) {
222222
auto& param = GeneratorFromO2KineParam::Instance();
223223
LOG(info) << "Init \'FromO2Kine\' generator with following parameters";
224224
LOG(info) << param;
@@ -228,8 +228,7 @@ bool GeneratorFromO2Kine::Init()
228228
mRandomize = param.randomize;
229229
mRngSeed = param.rngseed;
230230
mRandomPhi = param.randomphi;
231-
}
232-
else{
231+
} else {
233232
mSkipNonTrackable = mConfig->skipNonTrackable;
234233
mContinueMode = mConfig->continueMode;
235234
mRoundRobin = mConfig->roundRobin;

0 commit comments

Comments
 (0)