]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STARLIGHT/starlight/utils/analyse.h
STARLIGHT code and interface
[u/mrichter/AliRoot.git] / STARLIGHT / starlight / utils / analyse.h
diff --git a/STARLIGHT/starlight/utils/analyse.h b/STARLIGHT/starlight/utils/analyse.h
new file mode 100755 (executable)
index 0000000..546ea92
--- /dev/null
@@ -0,0 +1,47 @@
+#ifndef ANALYSE_H
+#define ANALYSE_H
+
+#include "TFile.h"
+#include "TTree.h"
+#include "TLorentzVector.h"
+#include "TClonesArray.h"
+#include "TParticle.h"
+#include "TH1F.h"
+#include <string>
+
+class Analyse 
+{
+ public:
+  Analyse(); //Constructor
+  Analyse(char* infile, Int_t nEvents); //Special constructor
+  ~Analyse(); //Destructor
+  Int_t Init();
+  Int_t NextEvent();
+  TParticle* NextParticle();
+  void doAnalysis(); //Function doing the analysis
+  
+ private:
+  TH1F *fPtEl;       //Histogram of pt of electrons
+  TH1F *fRapEl;      //Histogram of rapidity of electrons
+  TH1F *fInvMassEl;  //Histogram of ivariant mass of electrons
+
+  TH1F *fPtMu;       //Histogram of pt of muons
+  TH1F *fRapMu;      //Histogram of rapidity of muons
+  TH1F *fInvMassMu;  //Histogram of ivariant mass of muons
+
+  TH1F *fPtPi;       //Histogram of pt of pions
+  TH1F *fRapPi;      //Histogram of rapidity of pions
+  TH1F *fInvMassPi;  //Histogram of ivariant mass of pions
+
+  TH1F *fPt1;
+  TH1F *fPt2;
+  
+  FILE *filelist;
+  char *fInfile;
+  Int_t fNParticles;
+  Int_t fNEvents;
+  
+};
+
+#endif