Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-04-01 23:54:03

0001 
0002 #ifndef L1Trigger_DemonstratorTools_utilities_h
0003 #define L1Trigger_DemonstratorTools_utilities_h
0004 
0005 #include <iosfwd>
0006 
0007 #include "L1Trigger/DemonstratorTools/interface/BoardData.h"
0008 #include "L1Trigger/DemonstratorTools/interface/FileFormat.h"
0009 
0010 namespace l1t::demo {
0011 
0012   // Simple function that converts string to file format enum (for e.g. CMSSW configs)
0013   FileFormat parseFileFormat(const std::string&);
0014 
0015   BoardData read(const std::string& filePath, const FileFormat);
0016 
0017   BoardData read(std::istream&, const FileFormat);
0018 
0019   void write(const BoardData&, const std::string& filePath, const FileFormat);
0020 
0021   void write(const BoardData&, std::ostream&, const FileFormat);
0022 
0023 }  // namespace l1t::demo
0024 
0025 #endif