File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed
Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change 2222#include "HFInvMassFitter.h"
2323
2424// if .h file not found, please include your local rapidjson/document.h and rapidjson/filereadstream.h here
25+ #include <TCanvas.h>
26+ #include <TDatabasePDG.h>
27+ #include <TFile.h>
28+ #include <TH2F.h>
29+
2530#include <rapidjson/document.h>
2631#include <rapidjson/filereadstream.h>
2732
3035#include <string> // std::string
3136#include <vector> // std::vector
3237
33- #include <TDatabasePDG.h>
34- #include <TFile.h>
35- #include <TH2F.h>
36-
3738#endif
3839
3940using namespace rapidjson ;
@@ -672,3 +673,16 @@ void divideCanvas(TCanvas* canvas, int nSliceVarBins)
672673 }
673674 }
674675}
676+
677+ int main (int argc , char * argv [])
678+ {
679+ if (argc < 2 ) {
680+ throw std ::runtime_error ("Not enough arguments. Please use\n./runMassFitter configFileName" );
681+ }
682+
683+ const std ::string configFileName = argv [1 ];
684+
685+ runMassFitter (configFileName );
686+
687+ return 0 ;
688+ }
You can’t perform that action at this time.
0 commit comments