Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-09-28 07:02:50

0001 /**
0002  \file
0003  Implementation of class erhic::EventPepsi.
0004  
0005  \author    Thomas Burton
0006  \date      2011-07-07
0007  \copyright 2011 Brookhaven National Lab
0008  */
0009 
0010 #include "eicsmear/erhic/EventPepsi.h"
0011 
0012 #include <sstream>
0013 #include <string>
0014 
0015 namespace erhic {
0016 
0017 bool EventPepsi::Parse(const std::string& line) {
0018   static std::stringstream ss;
0019   ss.str("");
0020   ss.clear();
0021   ss << line;
0022   ss >>
0023   number >> number >>  // Skip first int in the line
0024   genevent >> process >> subprocess >> nucleon >> struckparton >>
0025   partontrck >> trueY >> trueQ2 >> trueX >> trueW2 >> trueNu >>
0026   FixedWeight >> Weight >> dxsec >> ExtraWeight >>
0027   Dilute >> F1 >> F2 >> A1 >> A2 >> R >> DePol >> D >> Eta >> Eps >> Chi >>
0028   gendilut >> genF1 >> genF2 >> genA1 >> genA2 >> genR >> genDepol >>
0029   gend >> geneta >> geneps >> genchi >> SigCorr >> radgamEnucl >> nTracks;
0030   // Protect against errors in the input file or the stream
0031   return !ss.fail();
0032 }
0033 
0034 }  // namespace erhic