-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70806e9
commit 2bc88e8
Showing
5 changed files
with
66 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
OBJECTS=myFit.o control.o wave.o event.o likelihood.o 3j.o | ||
OBJECTS=myFit.o control.o wave.o event.o likelihood.o 3j.o fitInfo.o fitInfoDict.o | ||
DEBUGFLAGS=-g -fopenmp | ||
LDFLAGS=${DEBUGFLAGS} | ||
CXXFLAGS=-Wall ${DEBUGFLAGS} -O2 `root-config --cflags` | ||
LIBS=`root-config --libs --cflags` -lMinuit2 -lMathMore | ||
CXXFLAGS:=-Wall ${DEBUGFLAGS} -O2 $(shell root-config --cflags) | ||
LIBS:=$(shell root-config --libs --cflags) -lMinuit2 -lMathMore | ||
|
||
myFit: ${OBJECTS} | ||
g++ -o $@ ${LDFLAGS} ${OBJECTS} ${LIBS} | ||
|
||
clean: | ||
rm -f ${OBJECTS} | ||
rm -f fitInfoDict.{cc,h} | ||
rm -f myFit | ||
|
||
.cc.o: | ||
g++ -c ${CXXFLAGS} $< -o $@ | ||
|
||
myFit.o: myFit.cc control.h wave.h likelihood.h gHist.h startingValue.h | ||
fitInfoDict.o: fitInfoDict.cc | ||
fitInfoDict.cc: fitInfo.h startingValue.h LinkDef.h | ||
rootcint -f $@ -c fitInfo.h+ | ||
|
||
myFit.o: myFit.cc control.h wave.h likelihood.h gHist.h startingValue.h fitInfo.h | ||
control.o: control.cc control.h | ||
wave.o: wave.cc wave.h event.h | ||
event.o: event.cc event.h | ||
likelihood.o: likelihood.cc likelihood.h event.h wave.h | ||
3j.o: 3j.cc wave.h | ||
fitInfo.o: fitInfo.cc fitInfo.h startingValue.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include <vector> | ||
|
||
#include "fitInfo.h" | ||
|
||
fitInfo::fitInfo(const std::vector<tStartingValue>& fitVars) | ||
{ | ||
for (size_t i = 0; i < fitVars.size(); i++) | ||
{ | ||
paramNames.push_back(fitVars[i].name.c_str()); | ||
} | ||
} | ||
|
||
#ifndef __CINT__ | ||
ClassImp(fitInfo) | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef FITINFO_H__ | ||
#define FITINFO_H__ | ||
|
||
// | ||
// The data stored in the output tree's UserInfo need to be put in a | ||
// TList, which in turn means they have to be put in data structures | ||
// inheriting from TObject, so we take care of this here. | ||
|
||
#include <vector> | ||
#include <string> | ||
|
||
#include "TObject.h" | ||
#include "TString.h" | ||
|
||
#include "startingValue.h" | ||
|
||
class fitInfo : public TObject | ||
{ | ||
public: | ||
fitInfo() {}; | ||
fitInfo(const std::vector<tStartingValue>& fitVars); | ||
private: | ||
std::vector<std::string> paramNames; | ||
|
||
ClassDef(fitInfo, 1) | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters