diff --git a/Aux/EventBuilder.cpp b/Aux/EventBuilder.cpp index 35856b6..7e0b461 100644 --- a/Aux/EventBuilder.cpp +++ b/Aux/EventBuilder.cpp @@ -7,6 +7,7 @@ #include "TGraph.h" #include "TFile.h" #include "TTree.h" +#include "TMacro.h" #include "CustomStruct.h" @@ -19,7 +20,7 @@ int main(int argc, char **argv) { printf("=========================================\n"); printf("=== *.fsu Events Builder ===\n"); printf("=========================================\n"); - if (argc <= 3) { + if (argc <= 6) { printf("Incorrect number of arguments:\n"); printf("%s [timeWindow] [withTrace] [verbose] [tempFolder] [inFile1] [inFile2] .... \n", argv[0]); printf(" timeWindow : in ns \n"); @@ -416,6 +417,11 @@ int main(int argc, char **argv) { printf(" total data duration = %.2f sec = %.2f min\n", tDuration_sec, tDuration_sec/60.); printf("=======> saved to %s \n", outFileName.Data()); + TMacro info; + info.AddLine(Form("tStart= %20llu ns",tStart)); + info.AddLine(Form(" tEnd= %20llu ns",tEnd)); + info.Write("info"); + outRootFile->Close(); for( int i = 0; i < nGroup; i++){ diff --git a/Aux/EventBuilderNoTrace.cpp b/Aux/EventBuilderNoTrace.cpp index f2b8aa5..acd2427 100644 --- a/Aux/EventBuilderNoTrace.cpp +++ b/Aux/EventBuilderNoTrace.cpp @@ -7,6 +7,7 @@ #include "TGraph.h" #include "TFile.h" #include "TTree.h" +#include "TMacro.h" #define MAX_MULTI 1000 @@ -304,6 +305,11 @@ int main(int argc, char **argv) { printf(" total data duration = %.2f sec = %.2f min\n", tDuration_sec, tDuration_sec/60.); printf("=======> saved to %s \n", outFileName.Data()); + TMacro info; + info.AddLine(Form("tStart= %20llu ns",tStart)); + info.AddLine(Form(" tEnd= %20llu ns",tEnd)); + info.Write("info"); + outRootFile->Close(); for( int i = 0 ; i < nFile; i++) delete reader[i]; diff --git a/Hit.h b/Hit.h index 7d3be70..e07f8be 100644 --- a/Hit.h +++ b/Hit.h @@ -1,6 +1,8 @@ #ifndef Hit_H #define Hit_H +#include + class Hit{ public: unsigned short sn;