CMS 3D CMS Logo

L1TriggerLutFile.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
13 //
14 //--------------------------------------------------
15 #ifndef L1_TRIGGER_LUT_FILE_H
16 #define L1_TRIGGER_LUT_FILE_H
17 
18 //---------------
19 // C++ Headers --
20 //---------------
21 
22 #include <string>
23 #include <fstream>
24 
25 //----------------------
26 // Base Class Headers --
27 //----------------------
28 
29 //------------------------------------
30 // Collaborating Class Declarations --
31 //------------------------------------
32 
33 // ---------------------
34 // -- Class Interface --
35 // ---------------------
36 
38 public:
40  L1TriggerLutFile(const std::string name = "");
41 
44 
46  virtual ~L1TriggerLutFile();
47 
50 
52  inline const std::string& getName() const { return m_file; }
53 
55  int open();
56 
58  inline bool good() { return m_fin.good(); }
59 
61  inline bool bad() { return m_fin.bad(); }
62 
64  inline void close() { m_fin.close(); }
65 
67  void ignoreLines(int n);
68 
70  int readInteger();
71 
73  int readHex();
74 
77 
78 private:
79  std::ifstream m_fin; // input file stream
80  std::string m_file; // file name
81 };
82 
83 #endif
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
L1TriggerLutFile::open
int open()
open file
Definition: L1TriggerLutFile.cc:68
L1TriggerLutFile
Definition: L1TriggerLutFile.h:37
L1TriggerLutFile::~L1TriggerLutFile
virtual ~L1TriggerLutFile()
destructor
Definition: L1TriggerLutFile.cc:51
L1TriggerLutFile::m_fin
std::ifstream m_fin
Definition: L1TriggerLutFile.h:79
L1TriggerLutFile::ignoreLines
void ignoreLines(int n)
read and ignore n lines from file
Definition: L1TriggerLutFile.cc:82
L1TriggerLutFile::bad
bool bad()
return status of file stream
Definition: L1TriggerLutFile.h:61
L1TriggerLutFile::readInteger
int readInteger()
read one integer from file
Definition: L1TriggerLutFile.cc:91
L1TriggerLutFile::getName
const std::string & getName() const
return filename
Definition: L1TriggerLutFile.h:52
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1TriggerLutFile::L1TriggerLutFile
L1TriggerLutFile(const std::string name="")
constructor
L1TriggerLutFile::m_file
std::string m_file
Definition: L1TriggerLutFile.h:80
L1TriggerLutFile::operator=
L1TriggerLutFile & operator=(const L1TriggerLutFile &)
assignment operator
Definition: L1TriggerLutFile.cc:60
L1TriggerLutFile::good
bool good()
return status of file stream
Definition: L1TriggerLutFile.h:58
L1TriggerLutFile::close
void close()
close file
Definition: L1TriggerLutFile.h:64
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
L1TriggerLutFile::readString
std::string readString()
read one string from file
Definition: L1TriggerLutFile.cc:109
L1TriggerLutFile::readHex
int readHex()
read one hex from file
Definition: L1TriggerLutFile.cc:100