From: Dennis Doering Date: Wed, 18 Sep 2013 13:47:29 +0000 (+0200) Subject: Singlerun X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=a96752c0ffd934553f98ce4e84e9a38ca60d0980;p=radhard.git Singlerun --- diff --git a/newCOMBI/ChargeSpektrum.c b/newCOMBI/ChargeSpektrum.c index aafb0a9..88c8f52 100755 --- a/newCOMBI/ChargeSpektrum.c +++ b/newCOMBI/ChargeSpektrum.c @@ -35,16 +35,6 @@ #define DRAW_FITS true #define DATAPATH "/d/salt/data_recovered/maps/DennisDoering/root/Analysedata/" -struct histogram -{ - TH1F* Seed; - TH1F* Sum; - TH1F* Veto; - Int_t inputRun; - Float_t posSeed; - Float_t posSum; - Float_t posVeto; -}; struct laborbook { Int_t inputRun; @@ -56,11 +46,59 @@ struct laborbook TString matrix; TString radDose; }; +struct histogram +{ + TH1F* Seed; + TH1F* Sum; + TH1F* Veto; + Int_t inputRun; + Float_t posSeed; + Float_t posSum; + Float_t posVeto; + struct laborbook laborbookdata; +}; struct histogram GenerateHisto(Int_t inputRun); Float_t FitPerform(TH1F*, Int_t); struct laborbook LaborBuch(Int_t inputRun); +Int_t* ReadRunList(Int_t* numberRuns); void ChargeSpektrum() { + + Int_t numberRuns=0; + ReadRunList(&numberRuns); + Int_t* runList=new Int_t[numberRuns]; + runList=ReadRunList(&numberRuns); + + struct histogram* arrayHisto = new struct histogram[numberRuns]; + for(Int_t lauf=0;laufSetWindowSize(w + (w - c1->GetWw()), h + (h - c1->GetWh())); + + arrayHisto[0].Seed->Draw(""); + for(Int_t lauf=1;laufDraw("same"); + } + TString ergebnisfile="ergebnisfile.dat"; + fstream* fout = new fstream(ergebnisfile,ios::out); + for(Int_t lauf=0;laufclose(); + +/* +cout<GetXaxis()->SetLimits(xmin2*factor2,xmax2*factor2); //arrayHisto.Veto->Draw("same"); cout<> row) + { + + try + { + + + + runList[runLauf]=atoi(row[0].c_str()); + + runLauf++; + } + catch(...) + { + cout << "File ended"; + } + } + *numberRuns=runLauf; + return runList; } \ No newline at end of file