HackAnalysis  2
ReadWriteEvent.h
1 #pragma once
2 #include "include/heputil.h"
3 #include <cassert>
4 #include <cstdlib>
5 #include <cstddef>
6 #include <type_traits>
7 
8 #include <random>
9 #include <cfloat> // for DBL_MAX
10 
11 #include <sstream>
12 #include <string>
13 
14 #include "include/gzstream.h"
15 
16 using namespace std;
17 using namespace HEP;
18 
19 
20 void WriteEvent(HEP::Event &outevent,GZ::ogzstream &outstream, bool writehadrons=false);
21 
22 bool ReadHAEvent(HEP::Event &inevent,GZ::igzstream &instream);
23 
24 
25 
26 // trim from end of string (right)
27 inline std::string& rtrim(std::string& s)
28 {
29  static const char* ws = " \t\n\r\f\v";
30  s.erase(s.find_last_not_of(ws) + 1);
31  return s;
32 }
Simple event class, separating particles into classes.
Definition: heputil.h:227
Modified by Mark Goodsell goodsell@lpthe.jussieu.fr
Definition: ATLAS_SUSY_2018_16.cc:27