Skip to content

Commit

Permalink
Move tStartingValue to its own header.
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiSchluter committed Oct 10, 2011
1 parent f76394b commit 70806e9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ clean:
.cc.o:
g++ -c ${CXXFLAGS} $< -o $@

myFit.o: myFit.cc control.h wave.h likelihood.h gHist.h
myFit.o: myFit.cc control.h wave.h likelihood.h gHist.h startingValue.h
control.o: control.cc control.h
wave.o: wave.cc wave.h event.h
event.o: event.cc event.h
Expand Down
11 changes: 1 addition & 10 deletions myFit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ using namespace std;
#include "3j.h"
#include "event.h"
#include "likelihood.h"
#include "startingValue.h"
#include "gHist.h"

#define NFLATMCEVENTS 100000
Expand Down Expand Up @@ -113,16 +114,6 @@ class combinedLikelihood : public ROOT::Minuit2::FCNBase {
size_t getNChannels() const { return myLs.size(); }
};

struct tStartingValue {
string name;
Double_t value;
bool fixed;

tStartingValue(const string& n, Double_t v, bool f)
: name(n), value(v), fixed(f)
{}
};


void
fillRDhists(const event& e)
Expand Down
18 changes: 18 additions & 0 deletions startingValue.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#ifndef STARTINGVALUE_H__
#define STARTINGVALUE_H__

#include <string>

#include "Rtypes.h" // for Double_t

struct tStartingValue {
std::string name;
Double_t value;
bool fixed;

tStartingValue(const std::string& n, Double_t v, bool f)
: name(n), value(v), fixed(f)
{}
};

#endif

0 comments on commit 70806e9

Please sign in to comment.