ATLAS Offline Software
Loading...
Searching...
No Matches
TopoASCIIReader.h
Go to the documentation of this file.
1// Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2
3#ifndef L1TOPOCORESIM_TOPOASCIIREADER
4#define L1TOPOCORESIM_TOPOASCIIREADER
5
10
11#include <vector>
12
13#include <iostream>
14#include <fstream> // for std::ifstream
15#include <istream>
16#include <ostream>
17
18#include <algorithm> // for std::string::iterator
19#include <iterator>
20
21#include <string>
22#include <sstream>
23
24
25namespace TCS {
26
28
29 public:
30
31 // default constructor
33
34 // destructor
36
37 // load file
38 void loadInput(const std::string & input);
39
40 // input validation
41 void validateInput();
42
43 void setVerbosity(int verbosity) { m_verbosity=verbosity; }
44
46
47 // get TOBS for a single event
48 bool getNextEvent();
49
50 // print single event
51 void printEvent();
52
53 // print file summary
54 void printFileSummary();
55
56 // reset all variables
57 void reset();
58
59 private:
60
61 std::ifstream m_fs;
62 std::string m_inputFile { "" };
64 int m_verbosity { 0 };
65
66 //file summary info
67 int m_nEvents { 0 };
68
69 };
70
71
72}
73
74#endif
void loadInput(const std::string &input)
void setVerbosity(int verbosity)
TCS::TopoInputEvent * m_event
TopoASCIIReader(int verbose=0)
void setInputEvent(TCS::TopoInputEvent *evt)
bool verbose
Definition hcg.cxx:73