ATLAS Offline Software
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 
8 #include "L1TopoEvent/JetTOB.h"
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 
25 namespace TCS {
26 
28 
29  public:
30 
31  // default constructor
32  TopoASCIIReader(int verbose=0);
33 
34  // destructor
36 
37  // load file
38  void loadInput(const std::string & input);
39 
40  // input validation
41  void validateInput();
42 
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
TCS::TopoASCIIReader::reset
void reset()
Definition: TopoASCIIReader.cxx:225
TCS::TopoASCIIReader::m_inputFile
std::string m_inputFile
Definition: TopoASCIIReader.h:62
TCS::TopoASCIIReader::loadInput
void loadInput(const std::string &input)
Definition: TopoASCIIReader.cxx:24
TCS::TopoASCIIReader::~TopoASCIIReader
~TopoASCIIReader()
Definition: TopoASCIIReader.cxx:19
LArG4FSStartPointFilter.evt
evt
Definition: LArG4FSStartPointFilter.py:42
TCS::TopoASCIIReader::TopoASCIIReader
TopoASCIIReader(int verbose=0)
Definition: TopoASCIIReader.cxx:13
TCS::TopoASCIIReader::m_event
TCS::TopoInputEvent * m_event
Definition: TopoASCIIReader.h:63
TCS::TopoASCIIReader::printFileSummary
void printFileSummary()
Definition: TopoASCIIReader.cxx:220
TopoInputEvent.h
TCS::TopoASCIIReader::m_nEvents
int m_nEvents
Definition: TopoASCIIReader.h:67
TCS::TopoASCIIReader::getNextEvent
bool getNextEvent()
Definition: TopoASCIIReader.cxx:42
TCS::TopoInputEvent
Definition: TopoInputEvent.h:42
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
TCS::TopoASCIIReader::validateInput
void validateInput()
Definition: TopoASCIIReader.cxx:34
TCS::TopoASCIIReader::m_verbosity
int m_verbosity
Definition: TopoASCIIReader.h:64
covarianceTool.verbosity
verbosity
Definition: covarianceTool.py:513
ClusterTOB.h
TCS::TopoASCIIReader::setVerbosity
void setVerbosity(int verbosity)
Definition: TopoASCIIReader.h:43
python.TriggerHandler.verbose
verbose
Definition: TriggerHandler.py:297
TCS
Definition: Global/GlobalSimulation/src/IO/Decision.h:18
TCS::TopoASCIIReader::setInputEvent
void setInputEvent(TCS::TopoInputEvent *evt)
Definition: TopoASCIIReader.h:45
TCS::TopoASCIIReader::m_fs
std::ifstream m_fs
Definition: TopoASCIIReader.h:61
Exception.h
JetTOB.h
TCS::TopoASCIIReader::printEvent
void printEvent()
Definition: TopoASCIIReader.cxx:211
TCS::TopoASCIIReader
Definition: TopoASCIIReader.h:27