-#ifndef UNPACK_H
-#define UNPACK_H
-
#include "TMath.h"
#include "unpack.h"
// #include "help.h"
return nCharacter;
}
-//####################################################################
-#endif
\ No newline at end of file
+//####################################################################
\ No newline at end of file
+#ifndef UNPACK_H
+#define UNPACK_H
//-----------------
#ifndef CONFIG_H
#define CONFIG_H
unpacker(); // ready
~unpacker(); // ready
void scanFrames(UInt_t Start, UInt_t Entries); // ready
-};
\ No newline at end of file
+};
+#endif
\ No newline at end of file
CFLAGS=-c -g -Wall -std=c++11 `root-config --cflags`
LDFLAGS=`root-config --glibs`
CLDFLAGS = -std=c++11 `root-config --cflags --glibs` -lboost_system -lboost_filesystem
-SOURCES= main.C unpacker.C unpacker.h help.h header.h
+SOURCES= main.C unpacker.C unpacker.h help.h
OBJECTS=$(subst .cc,.o,$(SOURCES))
EXECUTABLE=unpacker
+++ /dev/null
-#ifndef CONFIG_H
-#define CONFIG_H
-
-#define SAVE 4
-#define ENDING "hld"
-#define CONTENTIN 1048576
-#define BUFSIZE 32000
-#define MAXSENSORS 64
-#define MAXSTATES 1140
-
-#endif
+++ /dev/null
-#include <stdlib.h>
-#include <TClass.h>
-#include <fstream>
-#include <iostream>
-#include "Riostream.h"
-#include <string>
-#include "TString.h"
-#include "TMath.h"
-#include <TFile.h>
-#include <TNtuple.h>
-#include <TH1F.h>
-#include <TH2F.h>
-#include "TH1.h"
-#include "TF1.h"
-#include "TROOT.h"
-#include <TApplication.h>
-#include "TCanvas.h"
-#include "TObject.h"
-#include "TStyle.h"
-#include "TEnv.h"
-#include "TGraph.h"
-#include "TGaxis.h"
-#include "TStyle.h"
-#include "TFrame.h"
-#include "TVector.h"
-#include "TVectorD.h"
-#include "Foption.h"
-#include "TRandom.h"
-#include "TRandom3.h"
-#include "TSpline.h"
-#include "TPaveStats.h"
-#include "TVirtualFitter.h"
-#include "TVirtualPad.h"
-//#include "TVirtualGraphPainter.h"
-#include "TBrowser.h"
-#include "TSystem.h"
-#include "TPluginManager.h"
-#include "TPad.h"
-#include <TQObject.h>
-#include <TMultiGraph.h>
-#include <vector>
-#include "TControlBar.h"
-#include <string>
-#include <stdio.h>
-#include <stdlib.h>
-#include "TGraphErrors.h"
-#include "TMinuit.h"
-#include <iomanip>
-#include <sys/time.h>
-#include <TLegend.h>
-using namespace std;
\ No newline at end of file
#define MAXSTATES 1140
#endif
-#include <iostream>
-#include <cstdlib>
-#include <unistd.h>
-#include <stdlib.h>
-#include <stddef.h>
-#include <stdio.h>
-#include <unistd.h>
-#include "TStopwatch.h"
-
-//####################################################################
-
-// Int_t print_progress(Float_t ProgressInPercent) {
-//
-// Int_t nCharacter = printf("\r [");
-// Int_t iBlock;
-//
-// for( iBlock=0; iBlock<ProgressInPercent/2; ++iBlock )
-// {
-// putchar( '=' );
-// nCharacter++;
-// }
-//
-// for( ; iBlock<100/2; ++iBlock )
-// {
-// putchar( ' ' );
-// nCharacter++;
-// }
-//
-// // Int_t sec = TimeInSec%60;
-// // Int_t min = TimeInSec/60;
-// // Int_t hours = TimeInSec/3600;
-//
-// nCharacter += printf( "] %4.0f%%", ProgressInPercent);
-// fflush( stdout );
-//
-// if((Int_t)ProgressInPercent==100)
-// {
-// printf("\r");
-// for(Int_t i=0; i<nCharacter; i++)
-// {
-// putchar( ' ' );
-// }
-// printf("\r ... done! \n");
-// }
-//
-// return nCharacter;
-// }
-
-//####################################################################
-
-// Int_t print_progress(Float_t ProgressInPercent, Int_t TimeInSec) {
-//
-// Int_t nCharacter = printf("\r [");
-// Int_t iBlock;
-//
-// for( iBlock=0; iBlock<ProgressInPercent/2; ++iBlock )
-// {
-// putchar( '=' );
-// nCharacter++;
-// }
-//
-// for( ; iBlock<100/2; ++iBlock )
-// {
-// putchar( ' ' );
-// nCharacter++;
-// }
-//
-// Int_t sec = TimeInSec%60;
-// Int_t min = TimeInSec/60;
-// Int_t hours = TimeInSec/3600;
-//
-// nCharacter += printf( "] %6.2f%% \t %3i:%02i:%02i ", ProgressInPercent, hours, min, sec );
-// fflush( stdout );
-//
-// if(ProgressInPercent==100)
-// {
-// printf("\r");
-// for(Int_t i=0; i<nCharacter; i++)
-// {
-// putchar( ' ' );
-// }
-// printf("\r ...done! \t ( %i:%02i:%02i ) \n", hours, min, sec );
-// }
-//
-// return nCharacter;
-// }
+#include "TROOT.h"
//####################################################################
-// #include "TApplication.h"
-#include <sstream>
-#include <TString.h>
#include "unpacker.h"
-#include "TROOT.h"
+#include <TString.h>
//####################################################################
int main(int argc, char** argv) {
- gROOT->Reset();
+// gROOT->Reset();
TString Dir;
TString File;
-#ifndef UNPACKER_H
-#define UNPACKER_H
-
#define CONTENTIN 1048576 // --> 1 MByte
//-----------------
#include "unpacker.h"
-#include "header.h"
-
+#include "TMath.h"
#include <dirent.h>
-// #include <help.h>
-// #include <time.h>
-// #include <sys/stat.h>
+#include <iostream>
+#include <iomanip>
+
+
+using namespace std;
//-----------------
//####################################################################
return nCharacter;
}
-//####################################################################
-#endif
\ No newline at end of file
+//####################################################################
\ No newline at end of file
-//-----------------
-#ifndef CONFIG_H
-#define CONFIG_H
+#ifndef UNPACKER_H
+#define UNPACKER_H
-#define SAVE 4
-#define ENDING "hld"
-#define CONTENTIN 1048576 // --> 1 MByte
-#define BUFSIZE 32000
-#define MAXSENSORS 64
-#define MAXSTATES 1140
-#define MAXCLUSTERS 1140
-#endif
-//-----------------
-
-// #include <header.h>
-#include <dirent.h>
#include <TFile.h>
#include <TTree.h>
#include <vector>
#include "help.h"
+#include <fstream>
class unpacker {
void anaScurves ();
void saveScurveData ();
-};
\ No newline at end of file
+};
+#endif
\ No newline at end of file