Skip to content

Commit

Permalink
Code-format
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider committed Nov 23, 2023
1 parent 62a467b commit 0e1ee7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions PhysicsTools/TagAndProbe/src/TagProbeFitter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ string TagProbeFitter::calculateEfficiency(string dirName,
} else {
// disactive not needed branches
inputTree->SetBranchStatus("*", false);
for (TObject* obj: dataVars)
for (TObject* obj : dataVars)
inputTree->SetBranchStatus(obj->GetName(), true);
}

Expand Down Expand Up @@ -478,7 +478,7 @@ string TagProbeFitter::calculateEfficiency(string dirName,
if (data_bin->numEntries() > 0) {
//set the values of binnedVariables to the mean value in this data bin
RooArgSet meanOfVariables;
for (const RooAbsArg* vv: binnedVariables) {
for (const RooAbsArg* vv : binnedVariables) {
const RooRealVar* v = dynamic_cast<const RooRealVar*>(vv);
meanOfVariables.addClone(*v);
double mean = w->data("data")->mean(*v);
Expand Down Expand Up @@ -786,7 +786,7 @@ void TagProbeFitter::saveFitPlot(RooWorkspace* w) {
RooAbsPdf& pdf = *w->pdf("simPdf");
std::unique_ptr<RooArgSet> obs(pdf.getObservables(*dataAll));
RooRealVar* mass = nullptr;
for (RooAbsArg* v: *obs) {
for (RooAbsArg* v : *obs) {
if (!v->InheritsFrom("RooRealVar"))
continue;
mass = (RooRealVar*)v;
Expand Down Expand Up @@ -864,7 +864,7 @@ void TagProbeFitter::saveDistributionsPlot(RooWorkspace* w) {

const RooArgSet* vars = dataAll->get();
vector<RooRealVar*> reals;
for (RooAbsArg* v: *vars) {
for (RooAbsArg* v : *vars) {
if (!v->InheritsFrom("RooRealVar"))
continue;
reals.push_back((RooRealVar*)v);
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/Utilities/src/SideBandSubtraction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ int SideBandSubtract::doGlobalFit() {

//need to grab sbs objects after each global fit, because they get reset
resetSBSProducts();
for (const auto& variable: *Data->get()) {
for (const auto& variable : *Data->get()) {
for (unsigned int i = 0; i < BaseHistos.size(); i++) {
if ((string)variable->GetName() != (string)SeparationVariable->GetName() &&
(string)variable->GetName() == (string)BaseHistos[i]->GetName())
Expand Down

0 comments on commit 0e1ee7a

Please sign in to comment.