]> jspc29.x-matter.uni-frankfurt.de Git - mvd_soft.git/commitdiff
small changes
authorSamir Amar-Youcef <samir@ikf>
Mon, 23 Mar 2015 14:39:05 +0000 (15:39 +0100)
committerSamir Amar-Youcef <samir@ikf>
Mon, 23 Mar 2015 14:39:05 +0000 (15:39 +0100)
normalmode/unpacker/Makefile
normalmode/unpacker/header.h [deleted file]
normalmode/unpacker/help.h
normalmode/unpacker/main.C
normalmode/unpacker/unpack.C
normalmode/unpacker/unpack.h

index 419ce04b85e4cfe5ccb8768ab92f5b60aa2522c5..550c7044cbafb51e6d7333f7bb473316750e5b2e 100644 (file)
@@ -2,7 +2,7 @@ CC=g++
 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 unpack.C unpack.h help.h header.h
+SOURCES= main.C unpack.C unpack.h help.h
 OBJECTS=$(subst .cc,.o,$(SOURCES))
 EXECUTABLE=Mi26NM
 
diff --git a/normalmode/unpacker/header.h b/normalmode/unpacker/header.h
deleted file mode 100755 (executable)
index 3a13e83..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-#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
index ba033e11d68439a79da27202009ceff77cb9c38c..bee0b0c04e532d7c7cf29bf865d390751e421422 100755 (executable)
@@ -5,92 +5,7 @@
 #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"
 
 //####################################################################
 
index defd0bb4111c115c461aec8faa0c696f56ce1a7a..3863cbae93176173986a2c788869ba228f7c1b23 100644 (file)
@@ -1,17 +1,18 @@
 // #include "config.h"
 
-#include "TApplication.h"
-#include <sstream>
-#include <TString.h>
+// #include "TApplication.h"
+
 #include "unpack.h"
-#include "TROOT.h"
+#include <TString.h>
+#include <sstream>
+// #include "TROOT.h"
 
 //####################################################################
 
 
 int main(int argc, char** argv) {
        
-       gROOT->Reset();
+//     gROOT->Reset();
        
        TString         Dir;
        TString         File;
index 9539df6f1758c71c454a1b2e43f4dda386f31cc1..624c1f5adcaae9cea9ca56129c2b3311d31adac1 100755 (executable)
@@ -1,7 +1,13 @@
-#include "TMath.h" 
+#define CONTENTIN                      1048576                                 // --> 1 MByte
+
+//-----------------
 #include "unpack.h"
-// #include "help.h"
-#include "header.h"
+#include "TMath.h"
+#include "TSystem.h"
+#include <dirent.h>
+#include <iostream>
+#include <iomanip>
+
 
 //####################################################################
 
index 44bd785aa4cfd6c1f0babc9ab97eb0a5d7acfa41..77f07223f31cd916b2afa80bd8ae28548d5db5a0 100755 (executable)
@@ -1,25 +1,15 @@
 #ifndef UNPACK_H
 #define UNPACK_H
 //-----------------
-#ifndef CONFIG_H
-#define CONFIG_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>
 
 using namespace std;