Skip to content

Commit

Permalink
minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
osahin committed May 26, 2014
1 parent cf1d557 commit b8af3fb
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 14 deletions.
1 change: 1 addition & 0 deletions include/Dir.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "Histo.h"
#include <sys/stat.h>
#include <unistd.h>
#include <cstdlib>
#include <iostream>
#include <TCanvas.h>
//this module can be improved by adding the time information to the first dir.
Expand Down
1 change: 1 addition & 0 deletions include/Histo.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Author: OS
#include <vector>
#include <iostream>
#include <THStack.h>
#include <cstdlib>
/*Purpose of this class is to arrange histogram containers for the plotting tool
The Histo base class is inherited to variety of different classes among the tool,
thus, a basic understanding of this class is necessary to do modifications on the
Expand Down
1 change: 1 addition & 0 deletions include/Properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ozgur[no_spam].sahin[spam_not]@cern.ch
#include <TH1D.h>
#include <THStack.h>
#include <TString.h>
#include <cstdlib>
#include <map>
#include <vector>
#include "Histo.h"
Expand Down
2 changes: 1 addition & 1 deletion include/Ratio.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace plotting{
template<class dat_type, class bkg_type, class sig_type> TPad* plotting::Ratio<dat_type,bkg_type,sig_type>::DrawPlot(dat_type* data,bkg_type* background, sig_type* signal)
{

TPad* pad1= AllocPad(data->GetName(),background->GetName());
TPad* pad1= this->AllocPad(data->GetName(),background->GetName());
pad1->Draw();


Expand Down
1 change: 1 addition & 0 deletions src/Dir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ozgur[no_spam].sahin[spam_not]@cern.ch
#include <TString.h>
#include <string>
#include <sys/stat.h>
#include <cstdlib>
#include <unistd.h>
#include <TCanvas.h>
using std::cout;
Expand Down
3 changes: 2 additions & 1 deletion src/Draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ozgur[no_spam].sahin[spam_not]@cern.ch
#include <TAxis.h>
#include <TFile.h>
#include <TCanvas.h>
#include <cstdlib>
#include "Pad.h"
#include "Ratio.h"
#include "Control.h"
Expand All @@ -32,7 +33,7 @@ using namespace plotting;
void plotting::Draw::arrange_hists(const TString& config_path)
{
TH1::SetDefaultSumw2(true);
gErrorIgnoreLevel = kWarning;
gErrorIgnoreLevel = kBreak;
properties property(config_path);
std::vector<TString*>::iterator path_it;
//Don't worry we are not moving the objects, just put their addresses together.
Expand Down
2 changes: 1 addition & 1 deletion src/Histo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Author:OS
#include <TKey.h>
#include <TFile.h>
#include <iostream>

#include <cstdlib>
using namespace std;
//simple method that sets the integral for the given value to Hist container
void plotting::Histo::Set_integral(Hist* hist_it,int min, int max) {
Expand Down
1 change: 1 addition & 0 deletions src/MakeUp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <TH1D.h>
#include "THStack.h"
#include <TList.h>
#include <cstdlib>
#include "TObject.h"
#include "TCollection.h"
#include "TLatex.h"
Expand Down
11 changes: 0 additions & 11 deletions src/Pad.cpp

This file was deleted.

0 comments on commit b8af3fb

Please sign in to comment.