Skip to content

Commit 32e6375

Browse files
Merge pull request #322 from michaelmackenzie/MinorEdits
Minor edits: Add a rooutil namespace and reduce some code duplication
2 parents 93cbf52 + e4a8f6d commit 32e6375

40 files changed

Lines changed: 746 additions & 779 deletions

rooutil/examples/CompareTrkQualTrainings.C

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include "TLine.h"
1212
#include "TLatex.h"
1313

14+
using namespace rooutil;
15+
1416
void CompareTrkQualTrainings(std::string filename) {
1517

1618
bool save_plots = false;

rooutil/examples/CreateNtuple.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "TH1F.h"
1010

11+
using namespace rooutil;
1112
void CreateNtuple(std::string filename) {
1213

1314
// Set up RooUtil

rooutil/examples/CreateTrackNtuple.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "TH1F.h"
1010

11+
using namespace rooutil;
1112
void CreateTrackNtuple(std::string filename) {
1213

1314
// Create the TTree

rooutil/examples/PlotCRVPEs.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "TH1F.h"
1010

11+
using namespace rooutil;
1112
void PlotCRVPEs(std::string filename) {
1213

1314
// Create the histogram you want to fill

rooutil/examples/PlotCRVPEsVsMCEDep.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "TH2F.h"
1010

11+
using namespace rooutil;
1112
void PlotCRVPEsVsMCEDep(std::string filename) {
1213

1314
// Create the histogram you want to fill

rooutil/examples/PlotCRVTotalPEs.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "TH1F.h"
1010

11+
using namespace rooutil;
1112
void PlotCRVTotalPEs(std::string filename) {
1213

1314
// Create the histogram you want to fill

rooutil/examples/PlotCaloClusterEnergy.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "TH1F.h"
1010

11+
using namespace rooutil;
1112
void PlotCaloClusterEnergy(std::string filename) {
1213

1314
// Create the histogram you want to fill

rooutil/examples/PlotEntranceFitPars.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "TEllipse.h"
1212
#include "TGaxis.h"
1313

14+
using namespace rooutil;
1415
void PlotEntranceFitPars(std::string filename) {
1516

1617
double xmin = -800;

rooutil/examples/PlotEntranceMomentum.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "TH1F.h"
1010

11+
using namespace rooutil;
1112
void PlotEntranceMomentum(std::string filename) {
1213

1314
// Create the histogram you want to fill

rooutil/examples/PlotEntranceMomentumCRVCut.C

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "TH1F.h"
1010
#include "TCanvas.h"
1111

12+
using namespace rooutil;
1213
void PlotEntranceMomentumCRVCut(std::string filename) {
1314

1415
// Create the histogram you want to fill

0 commit comments

Comments
 (0)