📣 An issue occured with the embedded container registry on October 25 2021, between 10:30 and 12:10 (UTC+2). Any persisting issues should be reported to CC-IN2P3 Support. 🐛

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

Upload New File

parent fb15e26e
#include "analysesimuGen.h"
#include "TFile.h"
#include "TTree.h"
#include "TChain.h"
#include "TGraphErrors.h"
#include "TH1F.h"
#include "TF1.h"
#include "TF2.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"
#include <iostream>
int mainSimuGen(){
// gROOT->SetBatch(kTRUE);
float entries=0;
float mean=0;
float error=0;
float entries2=0;
float mean2=0;
float error2=0;
float sentries=0;
float smean=0;
float serror=0;
float sigma=0;
float sigma2=0;
float gety=0;
analysesimuGen A;
// cout<<"main"<<endl;
string line;
ifstream myfile("simuHarut.txt");
if (myfile.is_open())
{
while (getline (myfile,line))
{
A.open_file(line.c_str());
// cout<<line.c_str()<<endl;
// A.open_file("/home/caudron/Documents/Analyse/Filtered.hipo");
// cout<<"fichier ouvert"<<endl;
int limit=0;
while ( limit<300000 ) {
limit++;
// cout<<limit<<endl;
// reader.next();
// cout<<"return"<<endl;
if(A.read_eventdata()==1) break;
// cout<<"event lu"<<limit<<endl;
// A.fill_histo();
// cout<<"fill histo"<<endl;
A.fill_graph();
A.fill_histo();
// cout<<"graph filled"<<endl;
}
A.plot_graph();
A.plot_histo();
}
}
return 0;
}
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