Joined
Last Seen
-1 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 1
- Downvoting Members
- 3
0 Endorsements
Ranked #107.41K
[code]#include <iostream> #include <fstream> //#include <scientific> using namespace std; main () { ifstream in; ifstream in1; ofstream out; out.open("electrons.dat"); double x,y,z,electronenergydeposit,gammaenergy; int nlines = 0,nlines1=0,electronparent,electrontrack,electronevent,electronevent0=-1,gammaevent=-1,gammatrack,gammaparent,stepNo,process,creatNum; long pos, poscurrentevent=0, posnextevent=-1; // TFile *f = new TFile("Depos.root","RECREATE"); // TFile *f1 = new TFile("gammas.root","RECREATE"); in.open("Depos.dat"); in1.open("gammas.dat"); while (!in.eof()) { in>>electronevent>>x>>y>>z>>electronparent>>electrontrack>>electronenergydeposit; if (electronevent==electronevent0) in1.seekg(poscurrentevent); … |