Skip to content

Commit

Permalink
Ugghh
Browse files Browse the repository at this point in the history
  • Loading branch information
vargasa committed Jul 1, 2020
1 parent cc22d71 commit fb9e92f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Validation/Geometry/src/MaterialBudgetTree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "FWCore/MessageLogger/interface/MessageLogger.h"

MaterialBudgetTree::MaterialBudgetTree(std::shared_ptr<MaterialBudgetData> data, const std::string& filename)
MaterialBudgetTree::MaterialBudgetTree(std::shared_ptr<MaterialBudgetData> data, const std::string &filename)
: MaterialBudgetFormat(data) {
fname = filename;
book();
Expand Down Expand Up @@ -201,10 +201,9 @@ void MaterialBudgetTree::fillEndTrack() {
}
}


if (theData->getNumberOfSteps() != 0) {
Int_t ssize = theTree->Fill();
edm::LogInfo("MaterialBudget") << "MaterialBudgetTree: Filling Tree " << ssize << " bytes" ;
edm::LogInfo("MaterialBudget") << "MaterialBudgetTree: Filling Tree " << ssize << " bytes";
} else {
edm::LogWarning("MaterialBudget") << "MaterialBudgetTree: Event with 0 steps not recorded";
}
Expand All @@ -217,7 +216,7 @@ void MaterialBudgetTree::endOfRun() {
TFile *outFile = new TFile(fname.c_str(), "RECREATE");
outFile->mkdir("TEST");

if(theTree){
if (theTree) {
TTree *t1 = theTree->CloneTree();
t1->Write();
edm::LogWarning("MaterialBudget") << "TTree Written " << t1;
Expand All @@ -226,5 +225,4 @@ void MaterialBudgetTree::endOfRun() {
}

delete outFile;

}

0 comments on commit fb9e92f

Please sign in to comment.