Commit fb15e26e authored by CAUDRON Mylène's avatar CAUDRON Mylène
Browse files

Upload New File

parent def6f2bc
#ifndef analysesimuRec_h
#define analysesimuRec_h
#include "TFile.h"
#include "TTree.h"
#include "TChain.h"
#include "TH1F.h"
#include "TF1.h"
#include "TF2.h"
#include "TGraphErrors.h"
#include "TTreeReader.h"
#include "TTreeReaderValue.h"
#include "TTreeReaderArray.h"
#include "TH2D.h"
#include "TLorentzVector.h"
#include "TVector3.h"
#include "TMath.h"
#include "TCanvas.h"
#include "TH3F.h"
#include "TString.h"
#include "reader.h"
#include "TStyle.h"
#include "MParticle.h"
#include "TParticle.h"
#include "dirent.h"
class analysesimuRec {
private:
TCanvas *c1,*c2,*c3, *c4, *c5, *c6, *c7;
hipo::reader reader;
hipo::dictionary factory;
int np;
// MParticle *part;
// initialisation number bin/dim
const static int nbbinp=4;
const static int nbbinq=4;
const static int nbbinx=4;
const static int nbbinz=4;
int nbbin = nbbinx+nbbinz+nbbinp+nbbinq;
int n=0;
double * binz, * binx, * binp, * binq;
float xx[nbbinx];
float ii[nbbinx];
float meanbinx[nbbinx];
float cosh;
float nbevent;
TH1F *cosphi[nbbinx][nbbinz][nbbinp][nbbinq];
TH1F *cos2phi[nbbinx][nbbinz][nbbinp][nbbinq];
TH1F *cossphi[nbbinx][nbbinz][nbbinp][nbbinq];
TGraphErrors *graphx[nbbinz][nbbinp][nbbinq];
TGraphErrors *graphz[nbbinx][nbbinp][nbbinq];
TGraphErrors *graphp[nbbinx][nbbinz][nbbinq];
TGraphErrors *graphq[nbbinx][nbbinz][nbbinp];
TGraphErrors *graphx2[nbbinz][nbbinp][nbbinq];
TGraphErrors *graphz2[nbbinx][nbbinp][nbbinq];
TGraphErrors *graphp2[nbbinx][nbbinz][nbbinq];
TGraphErrors *graphq2[nbbinx][nbbinz][nbbinp];
TH1F *hQ2;
TH1F *hW;
TH1F *hEcalotot;
TH1F *hnpheche;
TH1F *hsf;
TH1F *hpz;
TH1F *hP;
TH1F *hpid;
TH1F *hnphe;
TH1F *hEcal;
TH1F *hducalo;
TH1F *hy;
TH1F *hxB;
TH1F *hz;
TH1F *hPt;
TH1F *hphi;
TH1F *hcos;
TH1F *hcos2;
TH1F *hzbin;
TH1F *hxbin;
TH1F *hQbin;
TH1F *hPbin;
TH1F *hMissingM;
TH1F *hMissingM2;
TH1F *hnumz;
TH1F *hnumQ;
TH1F *hnumP;
TH1F *hnumx;
TH2F *hnpheVSdet;
TH2F *hEcalototVSP;
TH2F *hQ2vsW;
TH2F *hQ2vsxB;
TH2F *hcosvsz;
TH2F *hmmvsQ2;
float Q2;
float W;
float mu;
float y;
float xB;
float z;
float Pt;
TVector3 l;
float phi;
float sign;
float Ebeam;
float M;
float Q2cut;
float Wcut;
float ycut;
float zmincut;
float zmaxcut;
float Ptcut;
MParticle Electron;
MParticle proton;
MParticle beam;
MParticle electron;
MParticle pionm;
MParticle pionp;
MParticle photon;
double Missingm;
float entries;
float mean;
float error;
float entries2;
float mean2;
float error2;
float sentries;
float smean;
float serror;
float sigma;
float sigma2;
float gety;
int nbelectron;
int nbpion;
int nbelectron2;
int nbpion2;
int nbz;
int nbz2;
int nbmean;
int nbread;
hipo::event event;
public:
analysesimuRec();
~analysesimuRec();
void open_file(TString nameFiles);
void fill_graph();
void plot_graph();
int read_eventdata();
void read_eventsimu();
void fill_histo();
void plot_histo();
} ;
#endif //analyse
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment