Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Volkel authored and sawenzel committed Oct 4, 2023
1 parent 959b3f8 commit ef431cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions MCReplay/include/MCReplay/MCReplayEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ class MCReplayEngine : public TVirtualMC
/// Set the maximum step allowed till the particle is in the current medium
virtual void SetMaxStep(Double_t) override
{
//Warning("SetMaxStep", "Not yet implemented");
// Warning("SetMaxStep", "Not yet implemented");
}

/// Set the maximum number of steps till the particle is in the current medium
Expand Down Expand Up @@ -1015,7 +1015,7 @@ class MCReplayEngine : public TVirtualMC
virtual Int_t StepProcesses(TArrayI& proc) const override
{
// TODO Not possible atm with MCStepLogger, donet have that info
//Warning("StepProcesses", "Not yet implemented");
// Warning("StepProcesses", "Not yet implemented");
return -1;
}

Expand Down Expand Up @@ -1166,15 +1166,15 @@ class MCReplayEngine : public TVirtualMC

// add process or cut values based on name and value
template <typename P, typename T, std::size_t N>
bool insertProcessOrCut(std::vector<std::vector<P>*>& insertInto, const std::array<T, N>& allParamsNames, const std::vector<P>& defaultParams, Int_t mediumId, const char* paramName, P parval, bool forceSet=false)
bool insertProcessOrCut(std::vector<std::vector<P>*>& insertInto, const std::array<T, N>& allParamsNames, const std::vector<P>& defaultParams, Int_t mediumId, const char* paramName, P parval, bool forceSet = false)
{
auto paramIndex = physics::paramToIndex(allParamsNames, paramName);
return insertProcessOrCut(insertInto, allParamsNames, defaultParams, mediumId, paramIndex, parval, forceSet);
}

// add process or cut values based on name and value
template <typename P, typename T, std::size_t N>
bool insertProcessOrCut(std::vector<std::vector<P>*>& insertInto, const std::array<T, N>& allParamsNames, const std::vector<P>& defaultParams, Int_t mediumId, int paramIndex, P parval, bool forceSet=false)
bool insertProcessOrCut(std::vector<std::vector<P>*>& insertInto, const std::array<T, N>& allParamsNames, const std::vector<P>& defaultParams, Int_t mediumId, int paramIndex, P parval, bool forceSet = false)
{
if (paramIndex < 0) {
return false;
Expand All @@ -1197,14 +1197,14 @@ class MCReplayEngine : public TVirtualMC
}

template <typename P, typename T, std::size_t N>
bool insertProcessOrCut(std::vector<P>& insertInto, const std::array<T, N>& allParamsNames, const char* paramName, P parval, bool forceSet=false)
bool insertProcessOrCut(std::vector<P>& insertInto, const std::array<T, N>& allParamsNames, const char* paramName, P parval, bool forceSet = false)
{
auto paramIndex = physics::paramToIndex(allParamsNames, paramName);
return insertProcessOrCut(insertInto, allParamsNames, paramIndex, parval, forceSet);
}

template <typename P, typename T, std::size_t N>
bool insertProcessOrCut(std::vector<P>& insertInto, const std::array<T, N>& allParamsNames, int paramIndex, P parval, bool forceSet=false)
bool insertProcessOrCut(std::vector<P>& insertInto, const std::array<T, N>& allParamsNames, int paramIndex, P parval, bool forceSet = false)
{
if (paramIndex < 0) {
return false;
Expand Down
1 change: 0 additions & 1 deletion MCReplay/src/MCReplayEngine.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,6 @@ void MCReplayEngine::Gstpar(Int_t itmed, const char* param, Double_t parval)
}
}


void MCReplayEngine::loadCurrentCutsAndProcesses(int volId)
{
mCurrentProcesses = &mProcessesGlobal;
Expand Down
2 changes: 1 addition & 1 deletion MCStepLogger/src/MCStepLoggerImpl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void flushToTTree(const char* branchname, T* address)
branch->Fill();
tree->SetEntries(branch->GetEntries());
// To avoid large number of cycles since whenever the file is opened and things are written, this is done as a new cycle
//f->Write();
// f->Write();
tree->Write("", TObject::kOverwrite);
f->Close();
delete f;
Expand Down

0 comments on commit ef431cf

Please sign in to comment.