Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 16, 2024
1 parent ee41821 commit 7df7848
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions source/framework/sensitivity/inc/TRestComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
#include <TCanvas.h>
#include <THn.h>

#include <ROOT/RDataFrame.hxx>
#include <ROOT/RVec.hxx>

#include "TRestDataSet.h"
#include "TRestMetadata.h"
#include "TRestResponse.h"

#include <ROOT/RDataFrame.hxx>
#include <ROOT/RVec.hxx>

/// It defines a background/signal model distribution in a given parameter space (tipically x,y,en)
class TRestComponent : public TRestMetadata {
protected:
Expand Down
10 changes: 5 additions & 5 deletions source/framework/sensitivity/src/TRestComponent.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,7 @@ ROOT::RDF::RNode TRestComponent::GetMonteCarloDataFrame(Int_t N) {

for (size_t i = 0; i < fVariables.size(); ++i) {
auto varName = fVariables[i];
auto FillRand = [&i = i](const ROOT::RVecD & randomValues) {
return randomValues[i];
};
auto FillRand = [&i = i](const ROOT::RVecD& randomValues) { return randomValues[i]; };
df = df.Define(varName, FillRand, {"Rndm"});
}

Expand All @@ -324,13 +322,15 @@ TCanvas* TRestComponent::DrawComponent(std::vector<std::string> drawVariables,
TString drawOption) {
if (drawVariables.size() > 2 || drawVariables.size() == 0) {
RESTError << "TRestComponent::DrawComponent. The number of variables to be drawn must "
"be 1 or 2!" << RESTendl;
"be 1 or 2!"
<< RESTendl;
return fCanvas;
}

if (scanVariables.size() > 2 || scanVariables.size() == 0) {
RESTError << "TRestComponent::DrawComponent. The number of variables to be scanned must "
"be 1 or 2!" << RESTendl;
"be 1 or 2!"
<< RESTendl;
return fCanvas;
}

Expand Down

0 comments on commit 7df7848

Please sign in to comment.